gem5
v20.1.0.0
|
#include <CacheMemory.hh>
Public Types | |
typedef RubyCacheParams | Params |
typedef std::shared_ptr< ReplacementData > | ReplData |
Public Types inherited from SimObject | |
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. More... | |
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 |
void | regStats () |
Callback to set stat parameters. More... | |
bool | checkResourceAvailable (CacheResourceType res, Addr addr) |
void | recordRequestType (CacheRequestType requestType, Addr addr) |
void | htmAbortTransaction () |
void | htmCommitTransaction () |
int | getCacheSize () const |
int | getCacheAssoc () const |
int | getNumBlocks () const |
Addr | getAddressAtIdx (int idx) const |
Public Member Functions inherited from SimObject | |
const Params * | params () const |
SimObject (const Params *_params) | |
virtual | ~SimObject () |
virtual const std::string | name () const |
virtual void | loadState (CheckpointIn &cp) |
loadState() is called on each SimObject when restoring from a checkpoint. More... | |
virtual void | initState () |
initState() is called on each SimObject when not restoring from a checkpoint. More... | |
virtual void | regProbePoints () |
Register probe points for this object. More... | |
virtual void | regProbeListeners () |
Register probe listeners for this object. More... | |
ProbeManager * | getProbeManager () |
Get the probe manager for this object. More... | |
virtual Port & | getPort (const std::string &if_name, PortID idx=InvalidPortID) |
Get a port with a given name and index. More... | |
virtual void | startup () |
startup() is the final initialization call before simulation. More... | |
DrainState | drain () override |
Provide a default implementation of the drain interface for objects that don't need draining. More... | |
virtual void | memWriteback () |
Write back dirty buffers to memory using functional writes. More... | |
virtual void | memInvalidate () |
Invalidate the contents of memory buffers. More... | |
void | serialize (CheckpointOut &cp) const override |
Serialize an object. More... | |
void | unserialize (CheckpointIn &cp) override |
Unserialize an object. More... | |
Public Member Functions inherited from EventManager | |
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. More... | |
void | setCurTick (Tick newVal) |
EventManager (EventManager &em) | |
Event manger manages events in the event queue. More... | |
EventManager (EventManager *em) | |
EventManager (EventQueue *eq) | |
Public Member Functions inherited from Serializable | |
Serializable () | |
virtual | ~Serializable () |
void | serializeSection (CheckpointOut &cp, const char *name) const |
Serialize an object into a new section. More... | |
void | serializeSection (CheckpointOut &cp, const std::string &name) const |
void | unserializeSection (CheckpointIn &cp, const char *name) |
Unserialize an a child object. More... | |
void | unserializeSection (CheckpointIn &cp, const std::string &name) |
Public Member Functions inherited from Drainable | |
DrainState | drainState () const |
Return the current drain state of an object. More... | |
virtual void | notifyFork () |
Notify a child process of a fork. More... | |
Public Member Functions inherited from Stats::Group | |
Group (Group *parent, const char *name=nullptr) | |
Construct a new statistics group. More... | |
virtual | ~Group () |
virtual void | resetStats () |
Callback to reset stats. More... | |
virtual void | preDumpStats () |
Callback before stats are dumped. More... | |
void | addStat (Stats::Info *info) |
Register a stat with this group. More... | |
const std::map< std::string, Group * > & | getStatGroups () const |
Get all child groups associated with this object. More... | |
const std::vector< Info * > & | getStats () const |
Get all stats associated with this object. More... | |
void | addStatGroup (const char *name, Group *block) |
Add a stat block as a child of this block. More... | |
const Info * | resolveStat (std::string name) const |
Resolve a stat by its name within this group. More... | |
Group ()=delete | |
Group (const Group &)=delete | |
Group & | operator= (const Group &)=delete |
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) |
Private Attributes | |
bool | m_is_instruction_only_cache |
std::unordered_map< Addr, int > | m_tag_index |
std::vector< std::vector< AbstractCacheEntry * > > | m_cache |
BaseReplacementPolicy * | m_replacementPolicy_ptr |
We use BaseReplacementPolicy from Classic system here, hence we can use different replacement policies from Classic system in Ruby system. More... | |
BankedArray | dataArray |
BankedArray | tagArray |
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. More... | |
bool | m_use_occupancy |
Set to true when using WeightedLRU replacement policy, otherwise, set to false. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from SimObject | |
static void | serializeAll (CheckpointOut &cp) |
Serialize all SimObjects in the system. More... | |
static SimObject * | find (const char *name) |
Find the SimObject with the given name and return a pointer to it. More... | |
Static Public Member Functions inherited from Serializable | |
static const std::string & | currentSection () |
Gets the fully-qualified name of the active section. More... | |
static void | serializeAll (const std::string &cpt_dir) |
Serializes all the SimObjects. More... | |
static void | unserializeGlobals (CheckpointIn &cp) |
Protected Member Functions inherited from Drainable | |
Drainable () | |
virtual | ~Drainable () |
virtual void | drainResume () |
Resume execution after a successful drain. More... | |
void | signalDrainDone () const |
Signal that an object is drained. More... | |
Protected Attributes inherited from SimObject | |
const SimObjectParams * | _params |
Cached copy of the object parameters. More... | |
Protected Attributes inherited from EventManager | |
EventQueue * | eventq |
A pointer to this object's event queue. More... | |
Definition at line 63 of file CacheMemory.hh.
typedef RubyCacheParams CacheMemory::Params |
Definition at line 66 of file CacheMemory.hh.
typedef std::shared_ptr<ReplacementData> CacheMemory::ReplData |
Definition at line 67 of file CacheMemory.hh.
CacheMemory::CacheMemory | ( | const Params * | p | ) |
Definition at line 71 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 MipsISA::p.
CacheMemory::~CacheMemory | ( | ) |
Definition at line 113 of file CacheMemory.cc.
References ArmISA::i, ArmISA::j, m_cache, m_cache_assoc, m_cache_num_sets, and m_replacementPolicy_ptr.
|
private |
|
private |
Definition at line 126 of file CacheMemory.cc.
References bitSelect(), m_cache_num_set_bits, m_start_index_bit, and makeLineAddress().
Referenced by allocate(), cacheAvail(), cacheProbe(), checkResourceAvailable(), lookup(), and recordRequestType().
AbstractCacheEntry * CacheMemory::allocate | ( | Addr | address, |
AbstractCacheEntry * | new_entry | ||
) |
Definition at line 269 of file CacheMemory.cc.
References addressToCacheSet(), cacheAvail(), curTick(), DPRINTF, ArmISA::i, isTagPresent(), m_cache, m_cache_assoc, m_replacementPolicy_ptr, m_tag_index, makeLineAddress(), panic, replacement_data, ReplaceableEntry::replacementData, BaseReplacementPolicy::reset(), and warn_once.
Referenced by allocateVoid().
|
inline |
Definition at line 99 of file CacheMemory.hh.
References allocate().
bool CacheMemory::cacheAvail | ( | Addr | address | ) | const |
Definition at line 247 of file CacheMemory.cc.
References addressToCacheSet(), ArmISA::i, AbstractCacheEntry::m_Address, m_cache, m_cache_assoc, AbstractCacheEntry::m_Permission, and makeLineAddress().
Referenced by allocate(), and cacheProbe().
Definition at line 325 of file CacheMemory.cc.
References addressToCacheSet(), cacheAvail(), ArmISA::i, m_cache, m_cache_assoc, m_replacementPolicy_ptr, and makeLineAddress().
bool CacheMemory::checkResourceAvailable | ( | CacheResourceType | res, |
Addr | addr | ||
) |
Definition at line 676 of file CacheMemory.cc.
References addr, addressToCacheSet(), dataArray, DPRINTF, m_resource_stalls, numDataArrayStalls, numTagArrayStalls, panic, tagArray, and BankedArray::tryAccess().
void CacheMemory::clearLocked | ( | Addr | addr | ) |
Definition at line 487 of file CacheMemory.cc.
References AbstractCacheEntry::clearLocked(), DPRINTF, and lookup().
void CacheMemory::clearLockedAll | ( | int | context | ) |
Definition at line 496 of file CacheMemory.cc.
References AbstractCacheEntry::clearLocked(), DPRINTF, ArmISA::i, AbstractCacheEntry::isLocked(), ArmISA::j, AbstractCacheEntry::m_Address, and m_cache.
Referenced by Sequencer::llscClearLocalMonitor().
void CacheMemory::deallocate | ( | Addr | address | ) |
Definition at line 310 of file CacheMemory.cc.
References DPRINTF, ReplaceableEntry::getSet(), ReplaceableEntry::getWay(), BaseReplacementPolicy::invalidate(), lookup(), m_cache, m_replacementPolicy_ptr, m_tag_index, and ReplaceableEntry::replacementData.
|
private |
Definition at line 136 of file CacheMemory.cc.
References m_cache, m_tag_index, and makeLineAddress().
Referenced by lookup().
|
private |
Definition at line 151 of file CacheMemory.cc.
References m_tag_index, and makeLineAddress().
Addr CacheMemory::getAddressAtIdx | ( | int | idx | ) | const |
Definition at line 166 of file CacheMemory.cc.
References AbstractCacheEntry::m_Address, m_cache, m_cache_assoc, m_cache_num_sets, and AbstractCacheEntry::m_Permission.
Referenced by VIPERCoalescer::invTCP().
|
inline |
Definition at line 177 of file CacheMemory.hh.
References m_cache_assoc.
|
inline |
Definition at line 176 of file CacheMemory.hh.
References m_cache_size.
|
inline |
Definition at line 115 of file CacheMemory.hh.
References dataArray, and BankedArray::getLatency().
|
inline |
Definition at line 92 of file CacheMemory.hh.
|
inline |
Definition at line 178 of file CacheMemory.hh.
References m_cache_assoc, and m_cache_num_sets.
Referenced by VIPERCoalescer::invTCP().
int CacheMemory::getReplacementWeight | ( | int64_t | set, |
int64_t | loc | ||
) |
Definition at line 400 of file CacheMemory.cc.
References m_cache, m_cache_assoc, and m_cache_num_sets.
|
inline |
Definition at line 114 of file CacheMemory.hh.
References BankedArray::getLatency(), and tagArray.
void CacheMemory::htmAbortTransaction | ( | ) |
Definition at line 720 of file CacheMemory.cc.
References AbstractCacheEntry::clearLocked(), DPRINTF, AbstractCacheEntry::getInHtmReadSet(), AbstractCacheEntry::getInHtmWriteSet(), htmTransAbortReadSet, htmTransAbortWriteSet, ArmISA::i, AbstractCacheEntry::invalidateEntry(), ArmISA::j, m_cache, Stats::DistBase< Derived, Stor >::sample(), AbstractCacheEntry::setInHtmReadSet(), and AbstractCacheEntry::setInHtmWriteSet().
void CacheMemory::htmCommitTransaction | ( | ) |
Definition at line 754 of file CacheMemory.cc.
References AbstractCacheEntry::clearLocked(), DPRINTF, AbstractCacheEntry::getInHtmReadSet(), AbstractCacheEntry::getInHtmWriteSet(), htmTransCommitReadSet, htmTransCommitWriteSet, ArmISA::i, ArmISA::j, m_cache, Stats::DistBase< Derived, Stor >::sample(), AbstractCacheEntry::setInHtmReadSet(), and 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 SimObject.
Definition at line 90 of file CacheMemory.cc.
References floorLog2(), RubySystem::getBlockSizeBytes(), ArmISA::i, BaseReplacementPolicy::instantiateEntry(), ArmISA::j, 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 CacheMemory::isBlockInvalid | ( | int64_t | cache_set, |
int64_t | loc | ||
) |
Definition at line 706 of file CacheMemory.cc.
References m_cache.
bool CacheMemory::isBlockNotBusy | ( | int64_t | cache_set, |
int64_t | loc | ||
) |
Definition at line 712 of file CacheMemory.cc.
References m_cache.
bool CacheMemory::isLocked | ( | Addr | addr, |
int | context | ||
) |
Definition at line 513 of file CacheMemory.cc.
References DPRINTF, AbstractCacheEntry::isLocked(), lookup(), and AbstractCacheEntry::m_locked.
bool CacheMemory::isTagPresent | ( | Addr | address | ) | const |
Definition at line 231 of file CacheMemory.cc.
References DPRINTF, and lookup().
Referenced by allocate().
AbstractCacheEntry * CacheMemory::lookup | ( | Addr | address | ) |
Definition at line 342 of file CacheMemory.cc.
References addressToCacheSet(), findTagInSet(), m_cache, and makeLineAddress().
Referenced by clearLocked(), deallocate(), isLocked(), isTagPresent(), Sequencer::llscCheckMonitor(), Sequencer::llscClearMonitor(), Sequencer::llscLoadLinked(), Sequencer::llscStoreConditional(), setLocked(), setMRU(), testCacheAccess(), and tryCacheAccess().
const AbstractCacheEntry * CacheMemory::lookup | ( | Addr | address | ) | const |
Definition at line 353 of file CacheMemory.cc.
References addressToCacheSet(), findTagInSet(), m_cache, and makeLineAddress().
|
private |
void CacheMemory::print | ( | std::ostream & | out | ) | const |
Definition at line 453 of file CacheMemory.cc.
References ArmISA::i, ArmISA::j, m_cache, m_cache_assoc, m_cache_num_sets, and SimObject::name().
Referenced by operator<<().
void CacheMemory::printData | ( | std::ostream & | out | ) | const |
Definition at line 472 of file CacheMemory.cc.
void CacheMemory::recordCacheContents | ( | int | cntrl, |
CacheRecorder * | tr | ||
) | const |
Definition at line 414 of file CacheMemory.cc.
References CacheRecorder::addRecord(), DPRINTF, ArmISA::i, ArmISA::j, m_cache, m_cache_assoc, m_cache_num_sets, m_is_instruction_only_cache, SimObject::name(), and RiscvISA::perm.
void CacheMemory::recordRequestType | ( | CacheRequestType | requestType, |
Addr | addr | ||
) |
Definition at line 644 of file CacheMemory.cc.
References addr, addressToCacheSet(), dataArray, DPRINTF, m_resource_stalls, numDataArrayReads, numDataArrayWrites, numTagArrayReads, numTagArrayWrites, BankedArray::reserve(), tagArray, and warn.
|
virtual |
Callback to set stat parameters.
This callback is typically used for complex stats (e.g., distributions) that need parameters in addition to a name and a description. Stat names and descriptions should typically be set from the constructor usingo from the constructor using the ADD_STAT macro.
Reimplemented from Stats::Group.
Definition at line 523 of file CacheMemory.cc.
References Stats::DataWrap< Derived, InfoProxyType >::desc(), Stats::dist, Stats::DataWrap< Derived, InfoProxyType >::flags(), htmTransAbortReadSet, htmTransAbortWriteSet, htmTransCommitReadSet, htmTransCommitWriteSet, ArmISA::i, Stats::VectorBase< Derived, Stor >::init(), Stats::Histogram::init(), m_accessModeType, m_demand_accesses, m_demand_hits, m_demand_misses, m_hw_prefetches, m_prefetches, m_sw_prefetches, SimObject::name(), Stats::DataWrap< Derived, InfoProxyType >::name(), Stats::nonan, Stats::nozero, numDataArrayReads, numDataArrayStalls, numDataArrayWrites, numTagArrayReads, numTagArrayStalls, numTagArrayWrites, Stats::pdf, Stats::Group::regStats(), Stats::DataWrapVec< Derived, InfoProxyType >::subname(), and Stats::total.
void CacheMemory::setLocked | ( | Addr | addr, |
int | context | ||
) |
Definition at line 478 of file CacheMemory.cc.
References DPRINTF, lookup(), and AbstractCacheEntry::setLocked().
void CacheMemory::setMRU | ( | AbstractCacheEntry * | entry | ) |
Definition at line 374 of file CacheMemory.cc.
References curTick(), m_replacementPolicy_ptr, ReplaceableEntry::replacementData, AbstractCacheEntry::setLastAccess(), and BaseReplacementPolicy::touch().
void CacheMemory::setMRU | ( | Addr | addr, |
int | occupancy | ||
) |
Definition at line 382 of file CacheMemory.cc.
References curTick(), lookup(), m_replacementPolicy_ptr, m_use_occupancy, makeLineAddress(), ReplaceableEntry::replacementData, AbstractCacheEntry::setLastAccess(), and BaseReplacementPolicy::touch().
void CacheMemory::setMRU | ( | Addr | address | ) |
Definition at line 364 of file CacheMemory.cc.
References curTick(), lookup(), m_replacementPolicy_ptr, makeLineAddress(), ReplaceableEntry::replacementData, AbstractCacheEntry::setLastAccess(), and BaseReplacementPolicy::touch().
Definition at line 211 of file CacheMemory.cc.
References curTick(), DPRINTF, AbstractCacheEntry::getDataBlk(), lookup(), AbstractCacheEntry::m_Permission, m_replacementPolicy_ptr, ReplaceableEntry::replacementData, AbstractCacheEntry::setLastAccess(), and BaseReplacementPolicy::touch().
Definition at line 186 of file CacheMemory.cc.
References curTick(), DPRINTF, AbstractCacheEntry::getDataBlk(), lookup(), AbstractCacheEntry::m_Permission, m_replacementPolicy_ptr, ReplaceableEntry::replacementData, AbstractCacheEntry::setLastAccess(), BaseReplacementPolicy::touch(), and type.
|
private |
Definition at line 209 of file CacheMemory.hh.
Referenced by checkResourceAvailable(), getDataLatency(), and recordRequestType().
Stats::Histogram CacheMemory::htmTransAbortReadSet |
Definition at line 173 of file CacheMemory.hh.
Referenced by htmAbortTransaction(), and regStats().
Stats::Histogram CacheMemory::htmTransAbortWriteSet |
Definition at line 174 of file CacheMemory.hh.
Referenced by htmAbortTransaction(), and regStats().
Stats::Histogram CacheMemory::htmTransCommitReadSet |
Definition at line 171 of file CacheMemory.hh.
Referenced by htmCommitTransaction(), and regStats().
Stats::Histogram CacheMemory::htmTransCommitWriteSet |
Definition at line 172 of file CacheMemory.hh.
Referenced by htmCommitTransaction(), and regStats().
Stats::Vector CacheMemory::m_accessModeType |
Definition at line 160 of file CacheMemory.hh.
Referenced by regStats().
|
private |
Definition at line 218 of file CacheMemory.hh.
Referenced by CacheMemory(), and init().
|
private |
Definition at line 201 of file CacheMemory.hh.
Referenced by allocate(), cacheAvail(), cacheProbe(), clearLockedAll(), deallocate(), findTagInSet(), getAddressAtIdx(), getReplacementWeight(), htmAbortTransaction(), htmCommitTransaction(), init(), isBlockInvalid(), isBlockNotBusy(), lookup(), print(), recordCacheContents(), and ~CacheMemory().
|
private |
Definition at line 215 of file CacheMemory.hh.
Referenced by allocate(), cacheAvail(), CacheMemory(), cacheProbe(), getAddressAtIdx(), getCacheAssoc(), getNumBlocks(), getReplacementWeight(), init(), print(), recordCacheContents(), and ~CacheMemory().
|
private |
Definition at line 214 of file CacheMemory.hh.
Referenced by addressToCacheSet(), and init().
|
private |
Definition at line 213 of file CacheMemory.hh.
Referenced by getAddressAtIdx(), getNumBlocks(), getReplacementWeight(), init(), print(), recordCacheContents(), and ~CacheMemory().
|
private |
Definition at line 212 of file CacheMemory.hh.
Referenced by CacheMemory(), getCacheSize(), and init().
Stats::Formula CacheMemory::m_demand_accesses |
Definition at line 154 of file CacheMemory.hh.
Referenced by regStats().
Stats::Scalar CacheMemory::m_demand_hits |
Definition at line 152 of file CacheMemory.hh.
Referenced by regStats().
Stats::Scalar CacheMemory::m_demand_misses |
Definition at line 153 of file CacheMemory.hh.
Referenced by regStats().
Stats::Scalar CacheMemory::m_hw_prefetches |
Definition at line 157 of file CacheMemory.hh.
Referenced by regStats().
|
private |
Definition at line 196 of file CacheMemory.hh.
Referenced by CacheMemory(), and recordCacheContents().
Stats::Formula CacheMemory::m_prefetches |
Definition at line 158 of file CacheMemory.hh.
Referenced by regStats().
|
private |
We use BaseReplacementPolicy from Classic system here, hence we can use different replacement policies from Classic system in Ruby system.
Definition at line 207 of file CacheMemory.hh.
Referenced by allocate(), CacheMemory(), cacheProbe(), deallocate(), init(), setMRU(), testCacheAccess(), tryCacheAccess(), and ~CacheMemory().
|
private |
Definition at line 217 of file CacheMemory.hh.
Referenced by CacheMemory(), checkResourceAvailable(), and recordRequestType().
|
private |
Definition at line 216 of file CacheMemory.hh.
Referenced by addressToCacheSet(), and CacheMemory().
Stats::Scalar CacheMemory::m_sw_prefetches |
Definition at line 156 of file CacheMemory.hh.
Referenced by regStats().
|
private |
Definition at line 200 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 234 of file CacheMemory.hh.
Referenced by CacheMemory(), and setMRU().
Stats::Scalar CacheMemory::numDataArrayReads |
Definition at line 162 of file CacheMemory.hh.
Referenced by recordRequestType(), and regStats().
Stats::Scalar CacheMemory::numDataArrayStalls |
Definition at line 168 of file CacheMemory.hh.
Referenced by checkResourceAvailable(), and regStats().
Stats::Scalar CacheMemory::numDataArrayWrites |
Definition at line 163 of file CacheMemory.hh.
Referenced by recordRequestType(), and regStats().
Stats::Scalar CacheMemory::numTagArrayReads |
Definition at line 164 of file CacheMemory.hh.
Referenced by recordRequestType(), and regStats().
Stats::Scalar CacheMemory::numTagArrayStalls |
Definition at line 167 of file CacheMemory.hh.
Referenced by checkResourceAvailable(), and regStats().
Stats::Scalar CacheMemory::numTagArrayWrites |
Definition at line 165 of file CacheMemory.hh.
Referenced by recordRequestType(), and regStats().
|
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 228 of file CacheMemory.hh.
Referenced by allocate(), and init().
|
private |
Definition at line 210 of file CacheMemory.hh.
Referenced by checkResourceAvailable(), getTagLatency(), and recordRequestType().