diff options
author | Gabe Black <gabeblack@google.com> | 2017-12-21 20:26:41 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-01-02 07:09:33 +0000 |
commit | 8d68297bf41e8761daf66094b7ec69a6c3f94bd9 (patch) | |
tree | e8a6ae8df135fc1f5ea4b950ea8c43e80c1b66c3 /configs/example | |
parent | c64c6c9ddc7463edaf4517909d8647b6410c2930 (diff) | |
download | gem5-8d68297bf41e8761daf66094b7ec69a6c3f94bd9.tar.xz |
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 <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
Diffstat (limited to 'configs/example')
-rw-r--r-- | configs/example/read_config.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/configs/example/read_config.py b/configs/example/read_config.py index 830bdb8b1..a4f03aa8c 100644 --- a/configs/example/read_config.py +++ b/configs/example/read_config.py @@ -82,8 +82,12 @@ def tick_parser(cast=lambda i: i): 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 |