Fix-up some config issues
python/m5/config.py:
Make NetworkBandwidth and MemoryBandwidth work
python/m5/objects/Ethernet.py:
Make 1Gbps default for ethernet
--HG--
extra : convert_revision : 59e62f7e62624356ae8d7304598617f60667f040
This commit is contained in:
@@ -1212,7 +1212,7 @@ class NetworkBandwidth(float,ParamValue):
|
||||
return str(self.val)
|
||||
|
||||
def ini_str(self):
|
||||
return '%f' % (ticks_per_sec / self.val)
|
||||
return '%f' % (ticks_per_sec / float(self))
|
||||
|
||||
class MemoryBandwidth(float,ParamValue):
|
||||
def __new__(self, value):
|
||||
@@ -1223,7 +1223,7 @@ class MemoryBandwidth(float,ParamValue):
|
||||
return str(self.val)
|
||||
|
||||
def ini_str(self):
|
||||
return '%f' % (ticks_per_sec / self.val)
|
||||
return '%f' % (ticks_per_sec / float(self))
|
||||
|
||||
#
|
||||
# "Constants"... handy aliases for various values.
|
||||
|
||||
Reference in New Issue
Block a user