gem5
v19.0.0.0
|
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement functionality. More...
#include <replaceable_entry.hh>
Public Member Functions | |
ReplaceableEntry ()=default | |
virtual | ~ReplaceableEntry ()=default |
virtual void | setPosition (const uint32_t set, const uint32_t way) |
Set both the set and way. More... | |
uint32_t | getSet () const |
Get set number. More... | |
uint32_t | getWay () const |
Get way number. More... | |
virtual std::string | print () const |
Prints relevant information about this entry. More... | |
Public Attributes | |
std::shared_ptr< ReplacementData > | replacementData |
Replacement data associated to this entry. More... | |
Protected Attributes | |
uint32_t | _set |
Set to which this entry belongs. More... | |
uint32_t | _way |
Way (relative position within the set) to which this entry belongs. More... | |
A replaceable entry is a basic entry in a 2d table-like structure that needs to have replacement functionality.
This entry is located in a specific row and column of the table (set and way in cache nomenclature), which are stored within the entry itself.
It contains the replacement data pointer, which must be instantiated by the replacement policy before being used.
Definition at line 55 of file replaceable_entry.hh.
|
default |
|
virtualdefault |
|
inline |
Get set number.
Definition at line 96 of file replaceable_entry.hh.
Referenced by StridePrefetcher::PCTable::findVictim(), SetAssociative::regenerateAddr(), SkewedAssociative::regenerateAddr(), and CacheMemory::setMRU().
|
inline |
Get way number.
Definition at line 103 of file replaceable_entry.hh.
Referenced by StridePrefetcher::PCTable::findVictim(), SkewedAssociative::regenerateAddr(), and CacheMemory::setMRU().
|
inlinevirtual |
Prints relevant information about this entry.
Reimplemented in CacheBlk, SectorSubBlk, CompressionBlk, and FALRUBlk.
Definition at line 111 of file replaceable_entry.hh.
References csprintf().
Referenced by CacheBlk::print().
|
inlinevirtual |
Set both the set and way.
Should be called only once.
set | The set of this entry. |
way | The way of this entry. |
Reimplemented in SectorBlk.
Definition at line 85 of file replaceable_entry.hh.
Referenced by BaseIndexingPolicy::setEntry(), SectorBlk::setPosition(), FALRU::tagsInit(), and SectorBlk::~SectorBlk().
|
protected |
Set to which this entry belongs.
Definition at line 61 of file replaceable_entry.hh.
|
protected |
Way (relative position within the set) to which this entry belongs.
Definition at line 66 of file replaceable_entry.hh.
std::shared_ptr<ReplacementData> ReplaceableEntry::replacementData |
Replacement data associated to this entry.
It must be instantiated by the replacement policy before being used.
Definition at line 76 of file replaceable_entry.hh.
Referenced by BaseSetAssoc::accessBlock(), SectorTags::accessBlock(), StridePrefetcher::calculatePrefetch(), SecondChanceRP::getVictim(), SectorTags::insertBlock(), BaseSetAssoc::insertBlock(), BaseSetAssoc::invalidate(), SectorTags::invalidate(), CompressedTags::tagsInit(), BaseSetAssoc::tagsInit(), and SectorTags::tagsInit().