From 2b9138135ee5c751136bb53738a44211557961f9 Mon Sep 17 00:00:00 2001 From: Geoffrey Blake Date: Thu, 17 Oct 2013 10:20:45 -0500 Subject: [PATCH] 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. --- src/python/m5/params.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.30.2