Float should have a c++ param type
authorNathan Binkert <binkertn@umich.edu>
Fri, 11 May 2007 18:48:58 +0000 (11:48 -0700)
committerNathan Binkert <binkertn@umich.edu>
Fri, 11 May 2007 18:48:58 +0000 (11:48 -0700)
--HG--
extra : convert_revision : 150bbe7f31aafb43a75195fc2a365fb3c0ec5673

src/python/m5/params.py

index da7ddd65e10100a5e3a92aea7a4e74eed165ae24..88b16287459f3c828760869a1395c62096cceea7 100644 (file)
@@ -348,7 +348,7 @@ class UdpPort(CheckedInt):  cxx_type = 'uint16_t'; size = 16; unsigned = True
 class Percent(CheckedInt):  cxx_type = 'int'; min = 0; max = 100
 
 class Float(ParamValue, float):
-    pass
+    cxx_type = 'double'
 
 class MemorySize(CheckedInt):
     cxx_type = 'uint64_t'