summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2005-02-11 01:40:49 -0500
committerNathan Binkert <binkertn@umich.edu>2005-02-11 01:40:49 -0500
commit60b263466e35139ee2c773cac6c96622be990fda (patch)
tree5f98c112525fb2247e98435c35fe89bb7a2a9b64 /sim
parent200246d1cadd3cf671860e14aad9632671d63537 (diff)
downloadgem5-60b263466e35139ee2c773cac6c96622be990fda.tar.xz
Make sure we have all values when trying to generate the ini file
sim/pyconfig/m5config.py: When getting all values, make sure we get the ones that are parameter defaults as well. --HG-- extra : convert_revision : 2b1c4b2f27dfab17ef9df18d7e5936e4a00bb12e
Diffstat (limited to 'sim')
-rw-r--r--sim/pyconfig/m5config.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/sim/pyconfig/m5config.py b/sim/pyconfig/m5config.py
index bbd437b30..9a48e2fa4 100644
--- a/sim/pyconfig/m5config.py
+++ b/sim/pyconfig/m5config.py
@@ -350,6 +350,13 @@ class MetaConfigNode(type):
for p,v in c._values.iteritems():
if not values.has_key(p):
values[p] = v
+ for p,v in c._params.iteritems():
+ if not values.has_key(p) and hasattr(v, 'default'):
+ v.valid(v.default)
+ v = v.default
+ cls._setvalue(p, v)
+ values[p] = v
+
return values
def _getvalue(cls, name, default = AttributeError):