config: Fix typo in Float param

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.
This commit is contained in:
Geoffrey Blake 2015-02-03 14:25:07 -05:00
parent ca131a4196
commit 3e33786db8

View file

@ -638,7 +638,7 @@ class Cycles(CheckedInt):
class Float(ParamValue, float):
cxx_type = 'double'
cmdLineSettable = True
cmd_line_settable = True
def __init__(self, value):
if isinstance(value, (int, long, float, NumericParamValue, Float, str)):