gem5 v24.1.0.1
|
#include <CacheMemory.hh>
Classes | |
struct | CacheMemoryStats |
Public Types | |
typedef RubyCacheParams | Params |
typedef std::shared_ptr< replacement_policy::ReplacementData > | ReplData |
![]() | |
typedef SimObjectParams | Params |
Public Member Functions | |
CacheMemory (const Params &p) | |
~CacheMemory () | |
void | init () |
init() is called after all C++ SimObjects have been created and all ports are connected. | |
bool | tryCacheAccess (Addr address, RubyRequestType type, DataBlock *&data_ptr) |
bool | testCacheAccess (Addr address, RubyRequestType type, DataBlock *&data_ptr) |
bool | isTagPresent (Addr address) const |
bool | cacheAvail (Addr address) const |
AbstractCacheEntry * | getNullEntry () const |
AbstractCacheEntry * | allocate (Addr address, AbstractCacheEntry *new_entry) |
void | allocateVoid (Addr address, AbstractCacheEntry *new_entry) |
void | deallocate (Addr address) |
Addr | cacheProbe (Addr address) const |
AbstractCacheEntry * | lookup (Addr address) |
const AbstractCacheEntry * | lookup (Addr address) const |
Cycles | getTagLatency () const |
Cycles | getDataLatency () const |
bool | isBlockInvalid (int64_t cache_set, int64_t loc) |
bool | isBlockNotBusy (int64_t cache_set, int64_t loc) |
void | recordCacheContents (int cntrl, CacheRecorder *tr) const |
void | setMRU (Addr address) |
void | setMRU (Addr addr, int occupancy) |
void | setMRU (AbstractCacheEntry *entry) |
int | getReplacementWeight (int64_t set, int64_t loc) |
void | setLocked (Addr addr, int context) |
void | clearLocked (Addr addr) |
void | clearLockedAll (int context) |
bool | isLocked (Addr addr, int context) |
void | print (std::ostream &out) const |
void | printData (std::ostream &out) const |
bool | checkResourceAvailable (CacheResourceType res, Addr addr) |
void | recordRequestType (CacheRequestType requestType, Addr addr) |
void | htmAbortTransaction () |
void | htmCommitTransaction () |
void | setRubySystem (RubySystem *rs) |
int | getCacheSize () const |
int | getCacheAssoc () const |
int | getNumBlocks () const |
Addr | getAddressAtIdx (int idx) const |
void | profileDemandHit () |
void | profileDemandMiss () |
void | profilePrefetchHit () |
void | profilePrefetchMiss () |
![]() | |
const Params & | params () const |
SimObject (const Params &p) | |
virtual | ~SimObject () |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. | |
virtual void | regProbePoints () |
Register probe points for this object. | |
virtual void | regProbeListeners () |
Register probe listeners for this object. | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. | |
virtual Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) |
Get a port with a given name and index. | |
virtual void | startup () |
startup() is the final initialization call before simulation. | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. | |
![]() | |
EventQueue * | eventQueue () const |
void | schedule (Event &event, Tick when) |
void | deschedule (Event &event) |
void | reschedule (Event &event, Tick when, bool always=false) |
void | schedule (Event *event, Tick when) |
void | deschedule (Event *event) |
void | reschedule (Event *event, Tick when, bool always=false) |
void | wakeupEventQueue (Tick when=(Tick) -1) |
This function is not needed by the usual gem5 event loop but may be necessary in derived EventQueues which host gem5 on other schedulers. | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
![]() | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
![]() | |
DrainState | drainState () const |
Return the current drain state of an object. | |
virtual void | notifyFork () |
Notify a child process of a fork. | |
![]() | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. | |
virtual | ~Group () |
virtual void | regStats () |
Callback to set stat parameters. | |
virtual void | resetStats () |
Callback to reset stats. | |
virtual void | preDumpStats () |
Callback before stats are dumped. | |
void | addStat (statistics::Info *info) |
Register a stat with this group. | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. | |
void | mergeStatGroup (Group *block) |
Merge the contents (stats & children) of a block to this block. | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
![]() | |
Named (const std::string &name_) | |
virtual | ~Named ()=default |
virtual std::string | name () const |
Private Member Functions | |
int64_t | addressToCacheSet (Addr address) const |
int | findTagInSet (int64_t line, Addr tag) const |
int | findTagInSetIgnorePermissions (int64_t cacheSet, Addr tag) const |
CacheMemory (const CacheMemory &obj) | |
CacheMemory & | operator= (const CacheMemory &obj) |
Addr | makeLineAddress (Addr addr) const |
Private Attributes | |
bool | m_is_instruction_only_cache |
std::unordered_map< Addr, int > | m_tag_index |
std::vector< std::vector< AbstractCacheEntry * > > | m_cache |
replacement_policy::Base * | m_replacementPolicy_ptr |
We use the replacement policies from the Classic memory system. | |
BankedArray | dataArray |
BankedArray | tagArray |
ALUFreeListArray | atomicALUArray |
int | m_cache_size |
int | m_cache_num_sets |
int | m_cache_num_set_bits |
int | m_cache_assoc |
int | m_start_index_bit |
bool | m_resource_stalls |
int | m_block_size |
std::vector< std::vector< ReplData > > | replacement_data |
We store all the ReplacementData in a 2-dimensional array. | |
bool | m_use_occupancy |
Set to true when using WeightedLRU replacement policy, otherwise, set to false. | |
RubySystem * | m_ruby_system = nullptr |
gem5::ruby::CacheMemory::CacheMemoryStats | cacheMemoryStats |
Additional Inherited Members | |
![]() | |
static void | serializeAll (const std::string &cpt_dir) |
Create a checkpoint by serializing all SimObjects in the system. | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. | |
static void | setSimObjectResolver (SimObjectResolver *resolver) |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
static SimObjectResolver * | getSimObjectResolver () |
There is a single object name resolver, and it is only set when simulation is restoring from checkpoints. | |
![]() | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. | |
static void | generateCheckpointOut (const std::string &cpt_dir, std::ofstream &outstream) |
Generate a checkpoint file so that the serialization can be routed to it. | |
![]() | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. | |
void | signalDrainDone () const |
Signal that an object is drained. | |
![]() | |
const SimObjectParams & | _params |
Cached copy of the object parameters. | |
![]() | |
EventQueue * | eventq |
A pointer to this object's event queue. | |
Definition at line 70 of file CacheMemory.hh.
typedef RubyCacheParams gem5::ruby::CacheMemory::Params |
Definition at line 73 of file CacheMemory.hh.
typedef std::shared_ptr<replacement_policy::ReplacementData> gem5::ruby::CacheMemory::ReplData |
Definition at line 74 of file CacheMemory.hh.
gem5::ruby::CacheMemory::CacheMemory | ( | const Params & | p | ) |
Definition at line 70 of file CacheMemory.cc.
References m_block_size, m_cache_assoc, m_cache_size, m_is_instruction_only_cache, m_replacementPolicy_ptr, m_resource_stalls, m_start_index_bit, m_use_occupancy, and gem5::MipsISA::p.
gem5::ruby::CacheMemory::~CacheMemory | ( | ) |
Definition at line 125 of file CacheMemory.cc.
References gem5::ArmISA::i, m_cache, m_cache_assoc, m_cache_num_sets, and m_replacementPolicy_ptr.
|
private |
|
private |
Definition at line 138 of file CacheMemory.cc.
References gem5::ruby::bitSelect(), m_cache_num_set_bits, m_start_index_bit, and makeLineAddress().
Referenced by allocate(), cacheAvail(), cacheProbe(), checkResourceAvailable(), lookup(), lookup(), and recordRequestType().
AbstractCacheEntry * gem5::ruby::CacheMemory::allocate | ( | Addr | address, |
AbstractCacheEntry * | new_entry | ||
) |
Definition at line 292 of file CacheMemory.cc.
References addressToCacheSet(), cacheAvail(), gem5::curTick(), DPRINTF, gem5::ArmISA::i, gem5::ruby::AbstractCacheEntry::initBlockSize(), isTagPresent(), gem5::ruby::AbstractCacheEntry::m_Address, m_block_size, m_cache, m_cache_assoc, m_replacementPolicy_ptr, m_ruby_system, m_tag_index, makeLineAddress(), panic, replacement_data, gem5::ReplaceableEntry::replacementData, gem5::replacement_policy::Base::reset(), gem5::ArmISA::set, gem5::ruby::AbstractCacheEntry::setRubySystem(), and warn_once.
Referenced by allocateVoid().
|
inline |
Definition at line 106 of file CacheMemory.hh.
References allocate().
bool gem5::ruby::CacheMemory::cacheAvail | ( | Addr | address | ) | const |
Definition at line 270 of file CacheMemory.cc.
References addressToCacheSet(), gem5::ArmISA::i, gem5::ruby::AbstractCacheEntry::m_Address, m_cache, m_cache_assoc, gem5::ruby::AbstractCacheEntry::m_Permission, and makeLineAddress().
Referenced by allocate(), and cacheProbe().
Definition at line 351 of file CacheMemory.cc.
References addressToCacheSet(), cacheAvail(), gem5::ArmISA::i, m_cache, m_cache_assoc, m_replacementPolicy_ptr, and makeLineAddress().
bool gem5::ruby::CacheMemory::checkResourceAvailable | ( | CacheResourceType | res, |
Addr | addr | ||
) |
Definition at line 682 of file CacheMemory.cc.
References gem5::X86ISA::addr, addressToCacheSet(), atomicALUArray, cacheMemoryStats, dataArray, DPRINTF, m_resource_stalls, makeLineAddress(), gem5::ruby::CacheMemory::CacheMemoryStats::numAtomicALUArrayStalls, gem5::ruby::CacheMemory::CacheMemoryStats::numDataArrayStalls, gem5::ruby::CacheMemory::CacheMemoryStats::numTagArrayStalls, panic, tagArray, gem5::ruby::ALUFreeListArray::tryAccess(), and gem5::ruby::BankedArray::tryAccess().
void gem5::ruby::CacheMemory::clearLocked | ( | Addr | addr | ) |
Definition at line 514 of file CacheMemory.cc.
References gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, and lookup().
void gem5::ruby::CacheMemory::clearLockedAll | ( | int | context | ) |
Definition at line 523 of file CacheMemory.cc.
References gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, gem5::ArmISA::i, gem5::ruby::AbstractCacheEntry::isLocked(), gem5::ruby::AbstractCacheEntry::m_Address, m_cache, and gem5::ArmISA::set.
Referenced by gem5::ruby::Sequencer::llscClearLocalMonitor().
void gem5::ruby::CacheMemory::deallocate | ( | Addr | address | ) |
Definition at line 336 of file CacheMemory.cc.
References DPRINTF, gem5::ReplaceableEntry::getSet(), gem5::ReplaceableEntry::getWay(), gem5::replacement_policy::Base::invalidate(), lookup(), m_cache, m_replacementPolicy_ptr, m_tag_index, and gem5::ReplaceableEntry::replacementData.
|
private |
Definition at line 148 of file CacheMemory.cc.
References m_cache, m_tag_index, and makeLineAddress().
|
private |
Definition at line 163 of file CacheMemory.cc.
References m_tag_index, and makeLineAddress().
Addr gem5::ruby::CacheMemory::getAddressAtIdx | ( | int | idx | ) | const |
Definition at line 178 of file CacheMemory.cc.
References gem5::ruby::AbstractCacheEntry::m_Address, m_cache, m_cache_assoc, m_cache_num_sets, gem5::ruby::AbstractCacheEntry::m_Permission, and gem5::ArmISA::set.
Referenced by gem5::ruby::Sequencer::invL1(), and gem5::ruby::VIPERCoalescer::invTCP().
|
inline |
Definition at line 161 of file CacheMemory.hh.
References m_cache_assoc.
|
inline |
Definition at line 160 of file CacheMemory.hh.
References m_cache_size.
|
inline |
Definition at line 122 of file CacheMemory.hh.
References dataArray, and gem5::ruby::BankedArray::getLatency().
|
inline |
Definition at line 99 of file CacheMemory.hh.
|
inline |
Definition at line 162 of file CacheMemory.hh.
References m_cache_assoc, and m_cache_num_sets.
Referenced by gem5::ruby::Sequencer::invL1(), and gem5::ruby::VIPERCoalescer::invTCP().
int gem5::ruby::CacheMemory::getReplacementWeight | ( | int64_t | set, |
int64_t | loc | ||
) |
Definition at line 427 of file CacheMemory.cc.
References m_cache, m_cache_assoc, m_cache_num_sets, and gem5::ArmISA::set.
|
inline |
Definition at line 121 of file CacheMemory.hh.
References gem5::ruby::BankedArray::getLatency(), and tagArray.
void gem5::ruby::CacheMemory::htmAbortTransaction | ( | ) |
Definition at line 735 of file CacheMemory.cc.
References cacheMemoryStats, gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, gem5::ruby::AbstractCacheEntry::getInHtmReadSet(), gem5::ruby::AbstractCacheEntry::getInHtmWriteSet(), gem5::ruby::CacheMemory::CacheMemoryStats::htmTransAbortReadSet, gem5::ruby::CacheMemory::CacheMemoryStats::htmTransAbortWriteSet, gem5::ArmISA::i, gem5::ruby::AbstractCacheEntry::invalidateEntry(), m_cache, gem5::statistics::DistBase< Derived, Stor >::sample(), gem5::ArmISA::set, gem5::ruby::AbstractCacheEntry::setInHtmReadSet(), and gem5::ruby::AbstractCacheEntry::setInHtmWriteSet().
void gem5::ruby::CacheMemory::htmCommitTransaction | ( | ) |
Definition at line 769 of file CacheMemory.cc.
References cacheMemoryStats, gem5::ruby::AbstractCacheEntry::clearLocked(), DPRINTF, gem5::ruby::AbstractCacheEntry::getInHtmReadSet(), gem5::ruby::AbstractCacheEntry::getInHtmWriteSet(), gem5::ruby::CacheMemory::CacheMemoryStats::htmTransCommitReadSet, gem5::ruby::CacheMemory::CacheMemoryStats::htmTransCommitWriteSet, gem5::ArmISA::i, m_cache, gem5::statistics::DistBase< Derived, Stor >::sample(), gem5::ArmISA::set, gem5::ruby::AbstractCacheEntry::setInHtmReadSet(), and gem5::ruby::AbstractCacheEntry::setInHtmWriteSet().
|
virtual |
init() is called after all C++ SimObjects have been created and all ports are connected.
Initializations that are independent of unserialization but rely on a fully instantiated and connected SimObject graph should be done here.
Reimplemented from gem5::SimObject.
Definition at line 104 of file CacheMemory.cc.
References gem5::floorLog2(), gem5::ArmISA::i, gem5::replacement_policy::Base::instantiateEntry(), m_block_size, m_cache, m_cache_assoc, m_cache_num_set_bits, m_cache_num_sets, m_cache_size, m_replacementPolicy_ptr, and replacement_data.
bool gem5::ruby::CacheMemory::isBlockInvalid | ( | int64_t | cache_set, |
int64_t | loc | ||
) |
Definition at line 721 of file CacheMemory.cc.
References m_cache.
bool gem5::ruby::CacheMemory::isBlockNotBusy | ( | int64_t | cache_set, |
int64_t | loc | ||
) |
Definition at line 727 of file CacheMemory.cc.
References m_cache.
bool gem5::ruby::CacheMemory::isLocked | ( | Addr | addr, |
int | context | ||
) |
Definition at line 540 of file CacheMemory.cc.
References DPRINTF, gem5::ruby::AbstractCacheEntry::isLocked(), lookup(), and gem5::ruby::AbstractCacheEntry::m_locked.
bool gem5::ruby::CacheMemory::isTagPresent | ( | Addr | address | ) | const |
Definition at line 254 of file CacheMemory.cc.
References DPRINTF, and lookup().
Referenced by allocate().
AbstractCacheEntry * gem5::ruby::CacheMemory::lookup | ( | Addr | address | ) |
Definition at line 368 of file CacheMemory.cc.
References addressToCacheSet(), findTagInSet(), m_cache, and makeLineAddress().
Referenced by clearLocked(), deallocate(), isLocked(), isTagPresent(), gem5::ruby::Sequencer::llscCheckMonitor(), gem5::ruby::Sequencer::llscClearMonitor(), gem5::ruby::Sequencer::llscLoadLinked(), gem5::ruby::Sequencer::llscStoreConditional(), setLocked(), setMRU(), setMRU(), testCacheAccess(), and tryCacheAccess().
const AbstractCacheEntry * gem5::ruby::CacheMemory::lookup | ( | Addr | address | ) | const |
Definition at line 379 of file CacheMemory.cc.
References addressToCacheSet(), findTagInSet(), m_cache, and makeLineAddress().
Definition at line 221 of file CacheMemory.hh.
References gem5::X86ISA::addr, gem5::floorLog2(), m_block_size, and gem5::ruby::makeLineAddress().
Referenced by addressToCacheSet(), allocate(), cacheAvail(), cacheProbe(), checkResourceAvailable(), findTagInSet(), findTagInSetIgnorePermissions(), lookup(), lookup(), setMRU(), and setMRU().
|
private |
void gem5::ruby::CacheMemory::print | ( | std::ostream & | out | ) | const |
Definition at line 480 of file CacheMemory.cc.
References gem5::ArmISA::i, m_cache, m_cache_assoc, m_cache_num_sets, and gem5::Named::name().
Referenced by gem5::ruby::operator<<().
void gem5::ruby::CacheMemory::printData | ( | std::ostream & | out | ) | const |
Definition at line 499 of file CacheMemory.cc.
void gem5::ruby::CacheMemory::profileDemandHit | ( | ) |
Definition at line 799 of file CacheMemory.cc.
References cacheMemoryStats, and gem5::ruby::CacheMemory::CacheMemoryStats::m_demand_hits.
void gem5::ruby::CacheMemory::profileDemandMiss | ( | ) |
Definition at line 805 of file CacheMemory.cc.
References cacheMemoryStats, and gem5::ruby::CacheMemory::CacheMemoryStats::m_demand_misses.
void gem5::ruby::CacheMemory::profilePrefetchHit | ( | ) |
Definition at line 811 of file CacheMemory.cc.
References cacheMemoryStats, and gem5::ruby::CacheMemory::CacheMemoryStats::m_prefetch_hits.
void gem5::ruby::CacheMemory::profilePrefetchMiss | ( | ) |
Definition at line 817 of file CacheMemory.cc.
References cacheMemoryStats, and gem5::ruby::CacheMemory::CacheMemoryStats::m_prefetch_misses.
void gem5::ruby::CacheMemory::recordCacheContents | ( | int | cntrl, |
CacheRecorder * | tr | ||
) | const |
Definition at line 441 of file CacheMemory.cc.
References gem5::ruby::CacheRecorder::addRecord(), DPRINTF, gem5::ArmISA::i, m_cache, m_cache_assoc, m_cache_num_sets, m_is_instruction_only_cache, gem5::Named::name(), and gem5::RiscvISA::perm.
void gem5::ruby::CacheMemory::recordRequestType | ( | CacheRequestType | requestType, |
Addr | addr | ||
) |
Definition at line 645 of file CacheMemory.cc.
References gem5::X86ISA::addr, addressToCacheSet(), atomicALUArray, cacheMemoryStats, dataArray, DPRINTF, m_resource_stalls, gem5::ruby::CacheMemory::CacheMemoryStats::numAtomicALUOperations, gem5::ruby::CacheMemory::CacheMemoryStats::numDataArrayReads, gem5::ruby::CacheMemory::CacheMemoryStats::numDataArrayWrites, gem5::ruby::CacheMemory::CacheMemoryStats::numTagArrayReads, gem5::ruby::CacheMemory::CacheMemoryStats::numTagArrayWrites, gem5::ruby::ALUFreeListArray::reserve(), gem5::ruby::BankedArray::reserve(), tagArray, and warn.
void gem5::ruby::CacheMemory::setLocked | ( | Addr | addr, |
int | context | ||
) |
Definition at line 505 of file CacheMemory.cc.
References DPRINTF, lookup(), and gem5::ruby::AbstractCacheEntry::setLocked().
void gem5::ruby::CacheMemory::setMRU | ( | AbstractCacheEntry * | entry | ) |
Definition at line 400 of file CacheMemory.cc.
References gem5::curTick(), m_replacementPolicy_ptr, gem5::ReplaceableEntry::replacementData, gem5::ruby::AbstractCacheEntry::setLastAccess(), and gem5::replacement_policy::Base::touch().
void gem5::ruby::CacheMemory::setMRU | ( | Addr | addr, |
int | occupancy | ||
) |
Definition at line 408 of file CacheMemory.cc.
References gem5::curTick(), lookup(), m_replacementPolicy_ptr, m_use_occupancy, makeLineAddress(), gem5::ReplaceableEntry::replacementData, gem5::ruby::AbstractCacheEntry::setLastAccess(), and gem5::replacement_policy::Base::touch().
void gem5::ruby::CacheMemory::setMRU | ( | Addr | address | ) |
Definition at line 390 of file CacheMemory.cc.
References gem5::curTick(), lookup(), m_replacementPolicy_ptr, makeLineAddress(), gem5::ReplaceableEntry::replacementData, gem5::ruby::AbstractCacheEntry::setLastAccess(), and gem5::replacement_policy::Base::touch().
void gem5::ruby::CacheMemory::setRubySystem | ( | RubySystem * | rs | ) |
Definition at line 89 of file CacheMemory.cc.
References atomicALUArray, dataArray, m_block_size, m_ruby_system, gem5::ArmISA::rs, gem5::ruby::ALUFreeListArray::setBlockSize(), gem5::ruby::BankedArray::setClockPeriod(), gem5::ruby::ALUFreeListArray::setClockPeriod(), and tagArray.
bool gem5::ruby::CacheMemory::testCacheAccess | ( | Addr | address, |
RubyRequestType | type, | ||
DataBlock *& | data_ptr | ||
) |
Definition at line 229 of file CacheMemory.cc.
References gem5::curTick(), DPRINTF, gem5::ruby::AbstractCacheEntry::getDataBlk(), lookup(), gem5::ruby::AbstractCacheEntry::m_Permission, m_replacementPolicy_ptr, gem5::ReplaceableEntry::replacementData, gem5::ruby::AbstractCacheEntry::setLastAccess(), and gem5::replacement_policy::Base::touch().
bool gem5::ruby::CacheMemory::tryCacheAccess | ( | Addr | address, |
RubyRequestType | type, | ||
DataBlock *& | data_ptr | ||
) |
Definition at line 198 of file CacheMemory.cc.
References gem5::curTick(), DPRINTF, gem5::ruby::AbstractCacheEntry::getDataBlk(), lookup(), gem5::ruby::AbstractCacheEntry::m_Permission, m_replacementPolicy_ptr, gem5::ReplaceableEntry::replacementData, gem5::ruby::AbstractCacheEntry::setLastAccess(), gem5::replacement_policy::Base::touch(), and gem5::X86ISA::type.
|
private |
Definition at line 192 of file CacheMemory.hh.
Referenced by checkResourceAvailable(), recordRequestType(), and setRubySystem().
|
private |
|
private |
Definition at line 190 of file CacheMemory.hh.
Referenced by checkResourceAvailable(), getDataLatency(), recordRequestType(), and setRubySystem().
|
private |
Definition at line 200 of file CacheMemory.hh.
Referenced by allocate(), CacheMemory(), init(), makeLineAddress(), and setRubySystem().
|
private |
Definition at line 185 of file CacheMemory.hh.
Referenced by allocate(), cacheAvail(), cacheProbe(), clearLockedAll(), deallocate(), findTagInSet(), getAddressAtIdx(), getReplacementWeight(), htmAbortTransaction(), htmCommitTransaction(), init(), isBlockInvalid(), isBlockNotBusy(), lookup(), lookup(), print(), recordCacheContents(), and ~CacheMemory().
|
private |
Definition at line 197 of file CacheMemory.hh.
Referenced by allocate(), cacheAvail(), CacheMemory(), cacheProbe(), getAddressAtIdx(), getCacheAssoc(), getNumBlocks(), getReplacementWeight(), init(), print(), recordCacheContents(), and ~CacheMemory().
|
private |
Definition at line 196 of file CacheMemory.hh.
Referenced by addressToCacheSet(), and init().
|
private |
Definition at line 195 of file CacheMemory.hh.
Referenced by getAddressAtIdx(), getNumBlocks(), getReplacementWeight(), init(), print(), recordCacheContents(), and ~CacheMemory().
|
private |
Definition at line 194 of file CacheMemory.hh.
Referenced by CacheMemory(), getCacheSize(), and init().
|
private |
Definition at line 180 of file CacheMemory.hh.
Referenced by CacheMemory(), and recordCacheContents().
|
private |
We use the replacement policies from the Classic memory system.
Definition at line 188 of file CacheMemory.hh.
Referenced by allocate(), CacheMemory(), cacheProbe(), deallocate(), init(), setMRU(), setMRU(), setMRU(), testCacheAccess(), tryCacheAccess(), and ~CacheMemory().
|
private |
Definition at line 199 of file CacheMemory.hh.
Referenced by CacheMemory(), checkResourceAvailable(), and recordRequestType().
|
private |
Definition at line 218 of file CacheMemory.hh.
Referenced by allocate(), and setRubySystem().
|
private |
Definition at line 198 of file CacheMemory.hh.
Referenced by addressToCacheSet(), and CacheMemory().
|
private |
Definition at line 184 of file CacheMemory.hh.
Referenced by allocate(), deallocate(), findTagInSet(), and findTagInSetIgnorePermissions().
|
private |
Set to true when using WeightedLRU replacement policy, otherwise, set to false.
Definition at line 216 of file CacheMemory.hh.
Referenced by CacheMemory(), and setMRU().
|
private |
We store all the ReplacementData in a 2-dimensional array.
By doing this, we can use all replacement policies from Classic system. Ruby cache will deallocate cache entry every time we evict the cache block so we cannot store the ReplacementData inside the cache entry. Instantiate ReplacementData for multiple times will break replacement policy like TreePLRU.
Definition at line 210 of file CacheMemory.hh.
Referenced by allocate(), and init().
|
private |
Definition at line 191 of file CacheMemory.hh.
Referenced by checkResourceAvailable(), getTagLatency(), recordRequestType(), and setRubySystem().