summaryrefslogtreecommitdiff
path: root/python/m5/config.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/m5/config.py')
-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 712b0cfd1..64ec99490 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -897,6 +897,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):