summaryrefslogtreecommitdiff
path: root/python/m5
diff options
context:
space:
mode:
Diffstat (limited to 'python/m5')
-rw-r--r--python/m5/config.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/python/m5/config.py b/python/m5/config.py
index 6c21dce93..42aee885b 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -900,6 +900,9 @@ class Value(object):
def __str__(self):
return str(self._getattr())
+ def __len__(self):
+ return len(self._getattr())
+
# Regular parameter.
class _Param(object):
def __init__(self, ptype, *args, **kwargs):