gem5 v24.0.0.0
|
Go to the source code of this file.
Functions | |
TEST (AddrRangeMapTest, LegacyTests) | |
TEST (AddrRangeMapTest, InterleavedTest1) | |
Test AddrRangeMap with interleaved address ranges defined by bitmasks. | |
TEST (AddrRangeMapTest, InterleavedTest2) | |
Test AddrRangeMap with interleaved address ranges defined by bitmasks. | |
TEST | ( | AddrRangeMapTest | , |
InterleavedTest1 | ) |
Test AddrRangeMap with interleaved address ranges defined by bitmasks.
An AddrRangeMap containing a set of N interleaved address ranges, defined with the same start and end address, and including all possible intlvMatch values 0..N-1, must contain the start address. For N-way interleaving, log2(N) selection masks are needed. For N = 16, define the masks as follows,
masks[0] = 1 << 6 masks[1] = 1 << 7 masks[2] = 1 << 8 masks[3] = 1 << 9
Definition at line 88 of file addr_range_map.test.cc.
References gem5::ArmISA::i, gem5::AddrRangeMap< V, max_cache_size >::insert(), gem5::MipsISA::k, and gem5::MipsISA::r.
TEST | ( | AddrRangeMapTest | , |
InterleavedTest2 | ) |
Test AddrRangeMap with interleaved address ranges defined by bitmasks.
An AddrRangeMap containing a set of N interleaved address ranges, defined with the same start and end address, and including all possible intlvMatch values 0..N-1, must contain the start address. For N-way interleaving, log2(N) selection masks are needed. For N = 16, define the masks as described in the CMN-600 Technical Reference Manual [1], section 2.17.3
masks[0] = 1 << 6 | 1 << 10 | 1 << 14 | .. | 1 << 50 masks[1] = 1 << 7 | 1 << 11 | 1 << 15 | .. | 1 << 51 masks[2] = 1 << 8 | 1 << 12 | 1 << 16 | .. | 1 << 48 masks[3] = 1 << 9 | 1 << 13 | 1 << 17 | .. | 1 << 49
[1] https://developer.arm.com/documentation/100180/0302
Definition at line 132 of file addr_range_map.test.cc.
References gem5::ArmISA::i, gem5::AddrRangeMap< V, max_cache_size >::insert(), gem5::MipsISA::k, and gem5::MipsISA::r.
TEST | ( | AddrRangeMapTest | , |
LegacyTests | ) |
Definition at line 50 of file addr_range_map.test.cc.
References gem5::ArmISA::i, gem5::AddrRangeMap< V, max_cache_size >::insert(), gem5::MipsISA::r, and gem5::RangeIn().