params: Fix the memory bandwidth parameter
authorNathan Binkert <nate@binkert.org>
Sun, 15 Jun 2008 03:42:45 +0000 (20:42 -0700)
committerNathan Binkert <nate@binkert.org>
Sun, 15 Jun 2008 03:42:45 +0000 (20:42 -0700)
src/python/m5/params.py

index c8d0d8f46cb9d61347a81412f14efd6f906e20f2..938278541d0b462899b46b20d39db76e6fb3403b 100644 (file)
@@ -892,7 +892,7 @@ class NetworkBandwidth(float,ParamValue):
 
 class MemoryBandwidth(float,ParamValue):
     cxx_type = 'float'
-    def __new__(self, value):
+    def __new__(cls, value):
         # we want the number of ticks per byte of data
         val = convert.toMemoryBandwidth(value)
         return super(cls, MemoryBandwidth).__new__(cls, val)