projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
200246d
)
Make sure we have all values when trying to generate the ini file
author
Nathan Binkert
<binkertn@umich.edu>
Fri, 11 Feb 2005 06:40:49 +0000
(
01:40
-0500)
committer
Nathan Binkert
<binkertn@umich.edu>
Fri, 11 Feb 2005 06:40:49 +0000
(
01:40
-0500)
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
sim/pyconfig/m5config.py
patch
|
blob
|
history
diff --git
a/sim/pyconfig/m5config.py
b/sim/pyconfig/m5config.py
index bbd437b3081ddb8c422fa772f67a85a84daded08..9a48e2fa4b0c3b101a29bf172856051fc1569901 100644
(file)
--- 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):