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

Public Member Functions

 Sandbox (unsigned int max_entries, int _stride)
 
void insert (Addr line, Tick tick)
 Insert the line address being accessed to the cache into the FIFO queue of the sandbox. More...
 
unsigned int score () const
 Calculate the useful score. More...
 

Public Attributes

std::vector< SandboxEntryentries
 FIFO queue. More...
 
unsigned int sandboxScore
 Accesses during the eval period that were present in the sandbox. More...
 
unsigned int lateScore
 Hits in the sandbox that wouldn't have been filled on time. More...
 
unsigned int index
 Index of the oldest entry in the FIFO. More...
 
const int stride
 Sequential stride for this prefetcher. More...
 

Detailed Description

Definition at line 94 of file sbooe.hh.

Constructor & Destructor Documentation

◆ Sandbox()

SBOOEPrefetcher::Sandbox::Sandbox ( unsigned int  max_entries,
int  _stride 
)
inline

Member Function Documentation

◆ insert()

void SBOOEPrefetcher::Sandbox::insert ( Addr  line,
Tick  tick 
)

Insert the line address being accessed to the cache into the FIFO queue of the sandbox.

Parameters
lineLine address being accessed
tickTick in which the access is expected to be filled

Definition at line 57 of file sbooe.cc.

References MipsISA::index, ArmISA::stride, and Clocked::tick.

◆ score()

unsigned int SBOOEPrefetcher::Sandbox::score ( ) const
inline

Calculate the useful score.

Returns
Useful score of the sandbox. Sandbox score adjusted by by the late score

Definition at line 127 of file sbooe.hh.

Referenced by SBOOEPrefetcher::access(), and SBOOEPrefetcher::calculatePrefetch().

Member Data Documentation

◆ entries

std::vector<SandboxEntry> SBOOEPrefetcher::Sandbox::entries

FIFO queue.

Max entries is 'sandboxEntries'

Definition at line 96 of file sbooe.hh.

◆ index

unsigned int SBOOEPrefetcher::Sandbox::index

Index of the oldest entry in the FIFO.

Definition at line 105 of file sbooe.hh.

◆ lateScore

unsigned int SBOOEPrefetcher::Sandbox::lateScore

Hits in the sandbox that wouldn't have been filled on time.

Definition at line 103 of file sbooe.hh.

◆ sandboxScore

unsigned int SBOOEPrefetcher::Sandbox::sandboxScore

Accesses during the eval period that were present in the sandbox.

Definition at line 101 of file sbooe.hh.

◆ stride

const int SBOOEPrefetcher::Sandbox::stride

Sequential stride for this prefetcher.

Definition at line 107 of file sbooe.hh.

Referenced by SBOOEPrefetcher::calculatePrefetch().


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

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