changeset d979dddf26a5 in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=d979dddf26a5
description:
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:
src/python/m5/params.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diffs (12 lines):
diff -r acc015106ac8 -r d979dddf26a5 src/python/m5/params.py
--- a/src/python/m5/params.py Thu Oct 17 10:20:45 2013 -0500
+++ b/src/python/m5/params.py Thu Oct 17 10:20:45 2013 -0500
@@ -697,7 +697,7 @@
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
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev