summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--python/m5/config.py4
-rw-r--r--python/m5/objects/Ethernet.py2
2 files changed, 3 insertions, 3 deletions
diff --git a/python/m5/config.py b/python/m5/config.py
index f7b3f93ab..48d945d14 100644
--- a/python/m5/config.py
+++ b/python/m5/config.py
@@ -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.
diff --git a/python/m5/objects/Ethernet.py b/python/m5/objects/Ethernet.py
index c89505477..61386a08d 100644
--- a/python/m5/objects/Ethernet.py
+++ b/python/m5/objects/Ethernet.py
@@ -12,7 +12,7 @@ class EtherLink(SimObject):
int1 = Param.EtherInt("interface 1")
int2 = Param.EtherInt("interface 2")
delay = Param.Latency('0us', "packet transmit delay")
- speed = Param.NetworkBandwidth('100Mbps', "link speed")
+ speed = Param.NetworkBandwidth('1Gbps', "link speed")
dump = Param.EtherDump(NULL, "dump object")
class EtherBus(SimObject):