Nikos Nikoleris has uploaded this change for review. (
https://gem5-review.googlesource.com/c/public/gem5/+/19151
Change subject: configs: Fix read_config to work with new AddrRange
serialization
......................................................................
configs: Fix read_config to work with new AddrRange serialization
Change-Id: I122c77c34c2f8c75f8b32682be858f651112ce89
Signed-off-by: Nikos Nikoleris <nikos.nikole...@arm.com>
---
M configs/example/read_config.py
1 file changed, 11 insertions(+), 6 deletions(-)
diff --git a/configs/example/read_config.py b/configs/example/read_config.py
index b1e820c..167815c 100644
--- a/configs/example/read_config.py
+++ b/configs/example/read_config.py
@@ -89,12 +89,17 @@
def addr_range_parser(cls, flags, param):
sys.stdout.flush()
- (low, high, intlv_high_bit, xor_high_bit,
- intlv_bits, intlv_match) = param.split(':')
- return m5.objects.AddrRange(
- start=long(low), end=long(high),
- intlvHighBit=long(intlv_high_bit), xorHighBit=long(xor_high_bit),
- intlvBits=long(intlv_bits), intlvMatch=long(intlv_match))
+ _param = param.split(':')
+ (start, end) = _param[0:2]
+ if len(_param) == 2:
+ return m5.objects.AddrRange(start=long(start), end=long(end))
+ else:
+ assert len(_param) > 2
+ intlv_match = _param[2]
+ masks = [ long(m) for m in _param[3:] ]
+ return m5.objects.AddrRange(start=long(start), end=long(end),
+ masks=masks,
intlvMatch=long(intlv_match))
+
def memory_bandwidth_parser(cls, flags, param):
# The string will be in tick/byte
--
To view, visit https://gem5-review.googlesource.com/c/public/gem5/+/19151
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I122c77c34c2f8c75f8b32682be858f651112ce89
Gerrit-Change-Number: 19151
Gerrit-PatchSet: 1
Gerrit-Owner: Nikos Nikoleris <nikos.nikole...@arm.com>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
gem5-dev@gem5.org
http://m5sim.org/mailman/listinfo/gem5-dev