gem5  v21.1.0.2
Functions
addr_range_map.test.cc File Reference
#include <gtest/gtest.h>
#include <vector>
#include "base/addr_range_map.hh"

Go to the source code of this file.

Functions

 TEST (AddrRangeMapTest, LegacyTests)
 
 TEST (AddrRangeMapTest, InterleavedTest1)
 Test AddrRangeMap with interleaved address ranges defined by bitmasks. More...
 
 TEST (AddrRangeMapTest, InterleavedTest2)
 Test AddrRangeMap with interleaved address ranges defined by bitmasks. More...
 

Function Documentation

◆ TEST() [1/3]

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::MipsISA::k, and gem5::MipsISA::r.

◆ TEST() [2/3]

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::MipsISA::k, and gem5::MipsISA::r.

◆ TEST() [3/3]

TEST ( AddrRangeMapTest  ,
LegacyTests   
)

Definition at line 50 of file addr_range_map.test.cc.

References gem5::ArmISA::i, gem5::MipsISA::r, and gem5::RangeIn().


Generated on Tue Sep 21 2021 12:26:25 for gem5 by doxygen 1.8.17