summaryrefslogtreecommitdiff
path: root/python/m5
diff options
context:
space:
mode:
authorLisa Hsu <hsul@eecs.umich.edu>2005-03-17 14:34:03 -0500
committerLisa Hsu <hsul@eecs.umich.edu>2005-03-17 14:34:03 -0500
commit3d51dc41329823d46eab055a9200ed579a2141f7 (patch)
tree0f7efc26b918a9e37b6406433c1d0c064bfca7bc /python/m5
parent8b9e38c303a50b773a0b4d6d4e04ebba53ce0d72 (diff)
parent5977324255daabfcc6b0e2138f53e27b55a7e21d (diff)
downloadgem5-3d51dc41329823d46eab055a9200ed579a2141f7.tar.xz
Merge zizzer:/bk/m5 into zed.eecs.umich.edu:/z/hsul/work/m5/pact05
--HG-- extra : convert_revision : a0a10fccc03edcc5164536ea853788b982e332d7
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 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):