gem5 v24.0.0.0
Loading...
Searching...
No Matches
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.
 
 TEST (AddrRangeMapTest, InterleavedTest2)
 Test AddrRangeMap with interleaved address ranges defined by bitmasks.
 

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::AddrRangeMap< V, max_cache_size >::insert(), 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::AddrRangeMap< V, max_cache_size >::insert(), gem5::MipsISA::k, and gem5::MipsISA::r.

◆ TEST() [3/3]

TEST ( AddrRangeMapTest ,
LegacyTests  )

Generated on Tue Jun 18 2024 16:24:08 for gem5 by doxygen 1.11.0