gem5  v22.1.0.0
Public Member Functions | Public Attributes | List of all members
gem5::prefetch::Stride::StrideEntry Struct Reference

Tagged by hashed PCs. More...

#include <stride.hh>

Inheritance diagram for gem5::prefetch::Stride::StrideEntry:
gem5::TaggedEntry gem5::ReplaceableEntry

Public Member Functions

 StrideEntry (const SatCounter8 &init_confidence)
 
void invalidate () override
 Invalidate the block. More...
 
- Public Member Functions inherited from gem5::TaggedEntry
 TaggedEntry ()
 
 ~TaggedEntry ()=default
 
virtual bool isValid () const
 Checks if the entry is valid. More...
 
bool isSecure () const
 Check if this block holds data from the secure memory space. More...
 
virtual Addr getTag () const
 Get tag associated to this block. More...
 
virtual bool matchTag (Addr tag, bool is_secure) const
 Checks if the given tag information corresponds to this entry's. More...
 
virtual void insert (const Addr tag, const bool is_secure)
 Insert the block by assigning it a tag and marking it valid. More...
 
std::string print () const override
 Prints relevant information about this entry. More...
 
- Public Member Functions inherited from gem5::ReplaceableEntry
 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...
 

Public Attributes

Addr lastAddr
 
int stride
 
SatCounter8 confidence
 
- Public Attributes inherited from gem5::ReplaceableEntry
std::shared_ptr< replacement_policy::ReplacementDatareplacementData
 Replacement data associated to this entry. More...
 

Additional Inherited Members

- Protected Member Functions inherited from gem5::TaggedEntry
virtual void setTag (Addr tag)
 Set tag associated to this block. More...
 
virtual void setSecure ()
 Set secure bit. More...
 
virtual void setValid ()
 Set valid bit. More...
 
- Protected Attributes inherited from gem5::ReplaceableEntry
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...
 

Detailed Description

Tagged by hashed PCs.

Definition at line 131 of file stride.hh.

Constructor & Destructor Documentation

◆ StrideEntry()

gem5::prefetch::Stride::StrideEntry::StrideEntry ( const SatCounter8 init_confidence)

Definition at line 67 of file stride.cc.

References invalidate().

Member Function Documentation

◆ invalidate()

void gem5::prefetch::Stride::StrideEntry::invalidate ( )
overridevirtual

Invalidate the block.

Its contents are no longer valid.

Reimplemented from gem5::TaggedEntry.

Definition at line 74 of file stride.cc.

References gem5::TaggedEntry::invalidate(), and gem5::ArmISA::stride.

Referenced by StrideEntry().

Member Data Documentation

◆ confidence

SatCounter8 gem5::prefetch::Stride::StrideEntry::confidence

Definition at line 139 of file stride.hh.

Referenced by gem5::prefetch::Stride::calculatePrefetch().

◆ lastAddr

Addr gem5::prefetch::Stride::StrideEntry::lastAddr

Definition at line 137 of file stride.hh.

Referenced by gem5::prefetch::Stride::calculatePrefetch().

◆ stride

int gem5::prefetch::Stride::StrideEntry::stride

Definition at line 138 of file stride.hh.

Referenced by gem5::prefetch::Stride::calculatePrefetch().


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

Generated on Wed Dec 21 2022 10:24:20 for gem5 by doxygen 1.9.1