gem5 v24.0.0.0
Loading...
Searching...
No Matches
gem5::replacement_policy Namespace Reference

Classes

class  Base
 A common base class of cache replacement policy objects. More...
 
class  BIP
 
class  BRRIP
 
class  Dueling
 This replacement policy duels two replacement policies to find out which one provides the best results. More...
 
class  FIFO
 
class  LFU
 
class  LRU
 
class  MRU
 
class  Random
 
struct  ReplacementData
 The replacement data needed by replacement policies. More...
 
class  SecondChance
 
class  SHiP
 
class  SHiPMem
 SHiP that Uses memory addresses as signatures. More...
 
class  SHiPPC
 SHiP that Uses PCs as signatures. More...
 
class  TreePLRU
 
class  WeightedLRU
 

Functions

static uint64_t parentIndex (const uint64_t index)
 Get the index of the parent of the given indexed subtree.
 
static uint64_t leftSubtreeIndex (const uint64_t index)
 Get index of the subtree on the left of the given indexed tree.
 
static uint64_t rightSubtreeIndex (const uint64_t index)
 Get index of the subtree on the right of the given indexed tree.
 
static bool isRightSubtree (const uint64_t index)
 Find out if the subtree at index corresponds to the right or left subtree of its parent tree.
 

Function Documentation

◆ isRightSubtree()

static bool gem5::replacement_policy::isRightSubtree ( const uint64_t index)
static

Find out if the subtree at index corresponds to the right or left subtree of its parent tree.

Parameters
indexThe index of the subtree.
Returns
True if it is a right subtree, false otherwise.

Definition at line 93 of file tree_plru_rp.cc.

References gem5::MipsISA::index.

Referenced by gem5::replacement_policy::TreePLRU::invalidate(), and gem5::replacement_policy::TreePLRU::touch().

◆ leftSubtreeIndex()

static uint64_t gem5::replacement_policy::leftSubtreeIndex ( const uint64_t index)
static

Get index of the subtree on the left of the given indexed tree.

Parameters
indexThe index of the queried tree.
Returns
The index of the subtree to the left of the queried tree.

Definition at line 68 of file tree_plru_rp.cc.

References gem5::MipsISA::index.

Referenced by gem5::replacement_policy::TreePLRU::getVictim().

◆ parentIndex()

static uint64_t gem5::replacement_policy::parentIndex ( const uint64_t index)
static

Get the index of the parent of the given indexed subtree.

Parameters
Indexof the queried tree.
Returns
The index of the parent tree.

Definition at line 56 of file tree_plru_rp.cc.

References gem5::MipsISA::index.

Referenced by gem5::replacement_policy::TreePLRU::invalidate(), and gem5::replacement_policy::TreePLRU::touch().

◆ rightSubtreeIndex()

static uint64_t gem5::replacement_policy::rightSubtreeIndex ( const uint64_t index)
static

Get index of the subtree on the right of the given indexed tree.

Parameters
indexThe index of the queried tree.
Returns
The index of the subtree to the right of the queried tree.

Definition at line 80 of file tree_plru_rp.cc.

References gem5::MipsISA::index.

Referenced by gem5::replacement_policy::TreePLRU::getVictim().


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