gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::ruby::AbstractCacheEntry Class Referenceabstract

#include <AbstractCacheEntry.hh>

Inheritance diagram for gem5::ruby::AbstractCacheEntry:
gem5::ReplaceableEntry

Public Member Functions

 AbstractCacheEntry ()
 
virtual ~AbstractCacheEntry ()=0
 
AccessPermission getPermission () const
 
void changePermission (AccessPermission new_perm)
 
virtual void print (std::ostream &out) const =0
 
virtual DataBlockgetDataBlk ()
 
virtual int & getNumValidBlocks ()
 
void setLocked (int context)
 
void clearLocked ()
 
bool isLocked (int context) const
 
Tick getLastAccess ()
 
void setLastAccess (Tick tick)
 
void setInHtmReadSet (bool val)
 
void setInHtmWriteSet (bool val)
 
bool getInHtmReadSet () const
 
bool getInHtmWriteSet () const
 
virtual void invalidateEntry ()
 
virtual std::string print () const
 Prints relevant information about this entry.
 
- Public Member Functions inherited from gem5::ReplaceableEntry
 ReplaceableEntry ()
 
virtual ~ReplaceableEntry ()=default
 
virtual void setPosition (const uint32_t set, const uint32_t way)
 Set both the set and way.
 
uint32_t getSet () const
 Get set number.
 
uint32_t getWay () const
 Get way number.
 

Public Attributes

int validBlocks
 
Addr m_Address
 
int m_locked
 
AccessPermission m_Permission
 
- Public Attributes inherited from gem5::ReplaceableEntry
std::shared_ptr< replacement_policy::ReplacementDatareplacementData
 Replacement data associated to this entry.
 

Private Attributes

Tick m_last_touch_tick
 
bool m_htmInReadSet
 
bool m_htmInWriteSet
 

Additional Inherited Members

- Protected Attributes inherited from gem5::ReplaceableEntry
uint32_t _set
 Set to which this entry belongs.
 
uint32_t _way
 Way (relative position within the set) to which this entry belongs.
 

Detailed Description

Definition at line 62 of file AbstractCacheEntry.hh.

Constructor & Destructor Documentation

◆ AbstractCacheEntry()

gem5::ruby::AbstractCacheEntry::AbstractCacheEntry ( )

◆ ~AbstractCacheEntry()

gem5::ruby::AbstractCacheEntry::~AbstractCacheEntry ( )
pure virtual

Definition at line 62 of file AbstractCacheEntry.cc.

Member Function Documentation

◆ changePermission()

void gem5::ruby::AbstractCacheEntry::changePermission ( AccessPermission new_perm)

Definition at line 74 of file AbstractCacheEntry.cc.

References m_locked, and m_Permission.

Referenced by gem5::ruby::DirectoryMemory::allocate().

◆ clearLocked()

◆ getDataBlk()

virtual DataBlock & gem5::ruby::AbstractCacheEntry::getDataBlk ( )
inlinevirtual

◆ getInHtmReadSet()

bool gem5::ruby::AbstractCacheEntry::getInHtmReadSet ( ) const

◆ getInHtmWriteSet()

bool gem5::ruby::AbstractCacheEntry::getInHtmWriteSet ( ) const

◆ getLastAccess()

Tick gem5::ruby::AbstractCacheEntry::getLastAccess ( )
inline

Definition at line 113 of file AbstractCacheEntry.hh.

References m_last_touch_tick.

◆ getNumValidBlocks()

virtual int & gem5::ruby::AbstractCacheEntry::getNumValidBlocks ( )
inlinevirtual

Definition at line 92 of file AbstractCacheEntry.hh.

References validBlocks.

◆ getPermission()

AccessPermission gem5::ruby::AbstractCacheEntry::getPermission ( ) const

Definition at line 68 of file AbstractCacheEntry.cc.

References m_Permission.

◆ invalidateEntry()

virtual void gem5::ruby::AbstractCacheEntry::invalidateEntry ( )
inlinevirtual

Definition at line 123 of file AbstractCacheEntry.hh.

Referenced by gem5::ruby::CacheMemory::htmAbortTransaction().

◆ isLocked()

◆ print() [1/2]

virtual std::string gem5::ReplaceableEntry::print ( ) const
inlinevirtual

Prints relevant information about this entry.

Returns
A string containg the contents of this entry.

Reimplemented from gem5::ReplaceableEntry.

Definition at line 118 of file replaceable_entry.hh.

◆ print() [2/2]

virtual void gem5::ruby::AbstractCacheEntry::print ( std::ostream & out) const
pure virtual

Referenced by gem5::ruby::operator<<().

◆ setInHtmReadSet()

void gem5::ruby::AbstractCacheEntry::setInHtmReadSet ( bool val)

◆ setInHtmWriteSet()

void gem5::ruby::AbstractCacheEntry::setInHtmWriteSet ( bool val)

◆ setLastAccess()

◆ setLocked()

void gem5::ruby::AbstractCacheEntry::setLocked ( int context)

Member Data Documentation

◆ m_Address

◆ m_htmInReadSet

bool gem5::ruby::AbstractCacheEntry::m_htmInReadSet
private

Definition at line 127 of file AbstractCacheEntry.hh.

Referenced by AbstractCacheEntry(), getInHtmReadSet(), and setInHtmReadSet().

◆ m_htmInWriteSet

bool gem5::ruby::AbstractCacheEntry::m_htmInWriteSet
private

Definition at line 128 of file AbstractCacheEntry.hh.

Referenced by AbstractCacheEntry(), getInHtmWriteSet(), and setInHtmWriteSet().

◆ m_last_touch_tick

Tick gem5::ruby::AbstractCacheEntry::m_last_touch_tick
private

Definition at line 66 of file AbstractCacheEntry.hh.

Referenced by AbstractCacheEntry(), getLastAccess(), and setLastAccess().

◆ m_locked

int gem5::ruby::AbstractCacheEntry::m_locked

◆ m_Permission

◆ validBlocks

int gem5::ruby::AbstractCacheEntry::validBlocks

Definition at line 91 of file AbstractCacheEntry.hh.

Referenced by getNumValidBlocks().


The documentation for this class was generated from the following files:

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