gem5
v19.0.0.0
|
#include <AbstractCacheEntry.hh>
Public Member Functions | |
AbstractCacheEntry () | |
virtual | ~AbstractCacheEntry ()=0 |
AccessPermission | getPermission () const |
void | changePermission (AccessPermission new_perm) |
virtual void | print (std::ostream &out) const =0 |
virtual DataBlock & | getDataBlk () |
virtual int & | getNumValidBlocks () |
void | setLocked (int context) |
void | clearLocked () |
bool | isLocked (int context) const |
Tick | getLastAccess () |
void | setLastAccess (Tick tick) |
![]() | |
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 | |
int | validBlocks |
Addr | m_Address |
int | m_locked |
AccessPermission | m_Permission |
![]() | |
std::shared_ptr< ReplacementData > | replacementData |
Replacement data associated to this entry. More... | |
Private Attributes | |
Tick | m_last_touch_tick |
Additional Inherited Members | |
![]() | |
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... | |
Definition at line 45 of file AbstractCacheEntry.hh.
AbstractCacheEntry::AbstractCacheEntry | ( | ) |
Definition at line 34 of file AbstractCacheEntry.cc.
References m_Address, m_last_touch_tick, m_locked, and m_Permission.
|
pure virtual |
Definition at line 42 of file AbstractCacheEntry.cc.
void AbstractCacheEntry::changePermission | ( | AccessPermission | new_perm | ) |
Definition at line 54 of file AbstractCacheEntry.cc.
References m_locked, and m_Permission.
Referenced by DirectoryMemory::allocate().
void AbstractCacheEntry::clearLocked | ( | ) |
Definition at line 71 of file AbstractCacheEntry.cc.
References DPRINTF, m_Address, and m_locked.
Referenced by getNumValidBlocks(), Sequencer::handleLlsc(), and Sequencer::invalidateSC().
|
inlinevirtual |
Definition at line 63 of file AbstractCacheEntry.hh.
References panic.
Referenced by CacheMemory::testCacheAccess(), and CacheMemory::tryCacheAccess().
|
inline |
Definition at line 88 of file AbstractCacheEntry.hh.
References m_last_touch_tick.
|
inlinevirtual |
Definition at line 67 of file AbstractCacheEntry.hh.
References clearLocked(), isLocked(), setLocked(), and validBlocks.
AccessPermission AbstractCacheEntry::getPermission | ( | ) | const |
Definition at line 48 of file AbstractCacheEntry.cc.
References m_Permission.
bool AbstractCacheEntry::isLocked | ( | int | context | ) | const |
Definition at line 78 of file AbstractCacheEntry.cc.
References DPRINTF, m_Address, and m_locked.
Referenced by getNumValidBlocks(), Sequencer::handleLlsc(), and Sequencer::invalidateSC().
|
pure virtual |
Referenced by operator<<().
|
inline |
Definition at line 91 of file AbstractCacheEntry.hh.
void AbstractCacheEntry::setLocked | ( | int | context | ) |
Definition at line 64 of file AbstractCacheEntry.cc.
References DPRINTF, m_Address, and m_locked.
Referenced by getNumValidBlocks(), and Sequencer::handleLlsc().
Addr AbstractCacheEntry::m_Address |
Definition at line 79 of file AbstractCacheEntry.hh.
Referenced by AbstractCacheEntry(), CacheMemory::allocate(), CacheMemory::cacheAvail(), clearLocked(), CacheMemory::getAddressAtIdx(), isLocked(), and setLocked().
|
private |
Definition at line 49 of file AbstractCacheEntry.hh.
Referenced by AbstractCacheEntry(), and getLastAccess().
int AbstractCacheEntry::m_locked |
Definition at line 82 of file AbstractCacheEntry.hh.
Referenced by AbstractCacheEntry(), changePermission(), clearLocked(), isLocked(), and setLocked().
AccessPermission AbstractCacheEntry::m_Permission |
Definition at line 84 of file AbstractCacheEntry.hh.
Referenced by AbstractCacheEntry(), CacheMemory::cacheAvail(), changePermission(), CacheMemory::getAddressAtIdx(), getPermission(), and CacheMemory::tryCacheAccess().
int AbstractCacheEntry::validBlocks |
Definition at line 66 of file AbstractCacheEntry.hh.
Referenced by getNumValidBlocks().