gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::prefetch::SBOOE::Sandbox Class Reference

Public Member Functions

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

Public Attributes

const int stride
 Sequential stride for this prefetcher.
 

Private Attributes

CircularQueue< SandboxEntryentries
 FIFO queue containing the sandbox entries.
 
unsigned int sandboxScore
 Accesses during the eval period that were present in the sandbox.
 
unsigned int lateScore
 Hits in the sandbox that wouldn't have been filled on time.
 

Detailed Description

Definition at line 98 of file sbooe.hh.

Constructor & Destructor Documentation

◆ Sandbox()

gem5::prefetch::SBOOE::Sandbox::Sandbox ( unsigned int max_entries,
int _stride )
inline

Definition at line 117 of file sbooe.hh.

Member Function Documentation

◆ access()

void gem5::prefetch::SBOOE::Sandbox::access ( Addr line,
Tick tick )

Update score and insert the line address being accessed 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 gem5::X86ISA::addr, gem5::curTick(), entries, gem5::prefetch::SBOOE::SandboxEntry::expectedArrivalTick, lateScore, gem5::prefetch::SBOOE::SandboxEntry::line, sandboxScore, stride, gem5::Clocked::tick, and gem5::prefetch::SBOOE::SandboxEntry::valid.

◆ score()

unsigned int gem5::prefetch::SBOOE::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 136 of file sbooe.hh.

References lateScore, and sandboxScore.

Referenced by gem5::prefetch::SBOOE::access(), and gem5::prefetch::SBOOE::calculatePrefetch().

Member Data Documentation

◆ entries

CircularQueue<SandboxEntry> gem5::prefetch::SBOOE::Sandbox::entries
private

FIFO queue containing the sandbox entries.

Definition at line 102 of file sbooe.hh.

Referenced by access().

◆ lateScore

unsigned int gem5::prefetch::SBOOE::Sandbox::lateScore
private

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

Definition at line 111 of file sbooe.hh.

Referenced by access(), and score().

◆ sandboxScore

unsigned int gem5::prefetch::SBOOE::Sandbox::sandboxScore
private

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

Definition at line 108 of file sbooe.hh.

Referenced by access(), and score().

◆ stride

const int gem5::prefetch::SBOOE::Sandbox::stride

Sequential stride for this prefetcher.

Definition at line 115 of file sbooe.hh.

Referenced by access(), and gem5::prefetch::SBOOE::calculatePrefetch().


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

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