summaryrefslogtreecommitdiff
path: root/src/python/m5
diff options
context:
space:
mode:
authorGeoffrey Blake <Geoffrey.Blake@arm.com>2013-10-17 10:20:45 -0500
committerGeoffrey Blake <Geoffrey.Blake@arm.com>2013-10-17 10:20:45 -0500
commit2b9138135ee5c751136bb53738a44211557961f9 (patch)
treeaf2b93770e94779985ffe6b51b0f0fd6258b51b4 /src/python/m5
parent3d582c767a2891d4a4ab8defa8929b061cbcee18 (diff)
downloadgem5-2b9138135ee5c751136bb53738a44211557961f9.tar.xz
config: Fix ommission of number base in ethernet address param
The ethernet address param tries to convert a hexadecimal string using int() in python, which defaults to base 10, need to specify base 16 in this case.
Diffstat (limited to 'src/python/m5')
-rw-r--r--src/python/m5/params.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/python/m5/params.py b/src/python/m5/params.py
index 1e8c24584..981bb0d37 100644
--- a/src/python/m5/params.py
+++ b/src/python/m5/params.py
@@ -697,7 +697,7 @@ class EthernetAddr(ParamValue):
raise TypeError, 'invalid ethernet address %s' % value
for byte in bytes:
- if not 0 <= int(byte) <= 0xff:
+ if not 0 <= int(byte, base=16) <= 0xff:
raise TypeError, 'invalid ethernet address %s' % value
self.value = value