projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ca131a4
)
config: Fix typo in Float param
author
Geoffrey Blake
<Geoffrey.Blake@arm.com>
Tue, 3 Feb 2015 19:25:07 +0000
(14:25 -0500)
committer
Geoffrey Blake
<Geoffrey.Blake@arm.com>
Tue, 3 Feb 2015 19:25:07 +0000
(14:25 -0500)
The Float param was not settable on the command line
due to a typo in the class definition in
python/m5/params.py. This corrects the typo and allows
floats to be set on the command line as intended.
src/python/m5/params.py
patch
|
blob
|
history
diff --git
a/src/python/m5/params.py
b/src/python/m5/params.py
index b7df7c66087240d0d21a1e7bd1c76ce087ffae10..7dc443b2d135ca77cd0ceead109738688d375adb 100644
(file)
--- a/
src/python/m5/params.py
+++ b/
src/python/m5/params.py
@@
-638,7
+638,7
@@
class Cycles(CheckedInt):
class Float(ParamValue, float):
cxx_type = 'double'
- cmd
LineS
ettable = True
+ cmd
_line_s
ettable = True
def __init__(self, value):
if isinstance(value, (int, long, float, NumericParamValue, Float, str)):