Gabe Black has submitted this change and it was merged. ( https://gem5-review.googlesource.com/6942 )

Change subject: config: Fix parsing AddrRange parameters in read_config.py.
......................................................................

config: Fix parsing AddrRange parameters in read_config.py.

The format of AddrRange parameters was changed, but
config/example/read_config.py wasn't updated for the new format.

Change-Id: Ie0da7aaa47c827bacc2b4f7f44929efd868b8794
Reviewed-on: https://gem5-review.googlesource.com/6942
Reviewed-by: Jason Lowe-Power <[email protected]>
Maintainer: Jason Lowe-Power <[email protected]>
---
M configs/example/read_config.py
1 file changed, 6 insertions(+), 2 deletions(-)

Approvals:
  Jason Lowe-Power: Looks good to me, approved; Looks good to me, approved



diff --git a/configs/example/read_config.py b/configs/example/read_config.py
index 830bdb8..a4f03aa 100644
--- a/configs/example/read_config.py
+++ b/configs/example/read_config.py
@@ -82,8 +82,12 @@

 def addr_range_parser(cls, flags, param):
     sys.stdout.flush()
-    low, high = param.split(':')
-    return m5.objects.AddrRange(long(low), long(high))
+    (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))

 def memory_bandwidth_parser(cls, flags, param):
     # The string will be in tick/byte

--
To view, visit https://gem5-review.googlesource.com/6942
To unsubscribe, or for help writing mail filters, visit https://gem5-review.googlesource.com/settings

Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-MessageType: merged
Gerrit-Change-Id: Ie0da7aaa47c827bacc2b4f7f44929efd868b8794
Gerrit-Change-Number: 6942
Gerrit-PatchSet: 3
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-Reviewer: Gabe Black <[email protected]>
Gerrit-Reviewer: Jason Lowe-Power <[email protected]>
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to