summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/python/m5/params.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 27bb24bd7..241d4ceaf 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -457,6 +457,9 @@ class Range(ParamValue):
elif isinstance(args[0], Range):
self.first = self.type(args[0].first)
self.second = self.type(args[0].second)
+ elif isinstance(args[0], (list, tuple)):
+ self.first = self.type(args[0][0])
+ self.second = self.type(args[0][1])
else:
self.first = self.type(0)
self.second = self.type(args[0]) - 1