gem5  v19.0.0.0
Public Member Functions | Public Attributes | List of all members
DeltaCorrelatingPredictionTables::DCPTEntry Struct Reference

DCPT Table entry datatype. More...

Inheritance diagram for DeltaCorrelatingPredictionTables::DCPTEntry:
TaggedEntry ReplaceableEntry

Public Member Functions

 DCPTEntry (unsigned int num_deltas)
 Constructor. More...
 
void invalidate () override
 Invalidates the entry. More...
 
void addAddress (Addr address, unsigned int delta_num_bits)
 Adds an address to the entry, if the entry already existed, a delta will be generated. More...
 
void getCandidates (std::vector< QueuedPrefetcher::AddrPriority > &pfs, unsigned int mask_bits) const
 Attempt to generate prefetch candidates using the two most recent deltas. More...
 
- Public Member Functions inherited from TaggedEntry
 TaggedEntry ()
 
virtual ~TaggedEntry ()
 
bool isValid () const
 Consult the valid bit. More...
 
void setValid ()
 Sets the entry to valid. More...
 
Addr getTag () const
 Obtain the entry tag. More...
 
void setTag (Addr t)
 Sets the tag of the entry. More...
 
bool isSecure () const
 Consult if this entry refers to a memory in the secure area. More...
 
void setSecure (bool s)
 Sets the secure value bit. More...
 
- Public Member Functions inherited from 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...
 
virtual std::string print () const
 Prints relevant information about this entry. More...
 

Public Attributes

Addr lastAddress
 Last accessed address. More...
 
unsigned int deltaPointer
 Position of the first free entry, or the oldest element, if it is full. More...
 
std::vector< Addrdeltas
 Stored deltas. More...
 
- Public Attributes inherited from ReplaceableEntry
std::shared_ptr< ReplacementDatareplacementData
 Replacement data associated to this entry. More...
 

Additional Inherited Members

- Protected Attributes inherited from 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

DCPT Table entry datatype.

Definition at line 62 of file delta_correlating_prediction_tables.hh.

Constructor & Destructor Documentation

◆ DCPTEntry()

DeltaCorrelatingPredictionTables::DCPTEntry::DCPTEntry ( unsigned int  num_deltas)
inline

Constructor.

Parameters
num_deltasnumber of deltas stored in the entry

Definition at line 78 of file delta_correlating_prediction_tables.hh.

References addAddress(), getCandidates(), and invalidate().

Member Function Documentation

◆ addAddress()

void DeltaCorrelatingPredictionTables::DCPTEntry::addAddress ( Addr  address,
unsigned int  delta_num_bits 
)

Adds an address to the entry, if the entry already existed, a delta will be generated.

Parameters
addressaddress to add
delta_num_bitsnumber of bits of the delta

Definition at line 59 of file delta_correlating_prediction_tables.cc.

Referenced by DeltaCorrelatingPredictionTables::calculatePrefetch(), and DCPTEntry().

◆ getCandidates()

void DeltaCorrelatingPredictionTables::DCPTEntry::getCandidates ( std::vector< QueuedPrefetcher::AddrPriority > &  pfs,
unsigned int  mask_bits 
) const

Attempt to generate prefetch candidates using the two most recent deltas.

Prefetch candidates are added to the provided vector.

Parameters
pfsreference to a vector where candidates will be added
mask_bitsthe number of lower bits that should be masked (ignored) when comparing deltas

Definition at line 84 of file delta_correlating_prediction_tables.cc.

References addr, and ArmISA::i.

Referenced by DeltaCorrelatingPredictionTables::calculatePrefetch(), and DCPTEntry().

◆ invalidate()

void DeltaCorrelatingPredictionTables::DCPTEntry::invalidate ( )
overridevirtual

Invalidates the entry.

Reimplemented from TaggedEntry.

Definition at line 47 of file delta_correlating_prediction_tables.cc.

References TaggedEntry::invalidate().

Referenced by DCPTEntry().

Member Data Documentation

◆ deltaPointer

unsigned int DeltaCorrelatingPredictionTables::DCPTEntry::deltaPointer

Position of the first free entry, or the oldest element, if it is full.

Definition at line 70 of file delta_correlating_prediction_tables.hh.

◆ deltas

std::vector<Addr> DeltaCorrelatingPredictionTables::DCPTEntry::deltas

Stored deltas.

Definition at line 72 of file delta_correlating_prediction_tables.hh.

◆ lastAddress

Addr DeltaCorrelatingPredictionTables::DCPTEntry::lastAddress

Last accessed address.

Definition at line 65 of file delta_correlating_prediction_tables.hh.

Referenced by DeltaCorrelatingPredictionTables::calculatePrefetch().


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

Generated on Fri Feb 28 2020 16:27:10 for gem5 by doxygen 1.8.13