gem5  v22.1.0.0
Public Member Functions | Public Attributes | List of all members
gem5::replacement_policy::TreePLRU::TreePLRUReplData Struct Reference

Tree-PLRU-specific implementation of replacement data. More...

#include <tree_plru_rp.hh>

Inheritance diagram for gem5::replacement_policy::TreePLRU::TreePLRUReplData:
gem5::replacement_policy::ReplacementData

Public Member Functions

 TreePLRUReplData (const uint64_t index, std::shared_ptr< PLRUTree > tree)
 Default constructor. More...
 

Public Attributes

const uint64_t index
 Theoretical index of this replacement data in the tree. More...
 
std::shared_ptr< PLRUTreetree
 Shared tree pointer. More...
 

Detailed Description

Tree-PLRU-specific implementation of replacement data.

Each replacement data shares its tree with other entries.

Definition at line 133 of file tree_plru_rp.hh.

Constructor & Destructor Documentation

◆ TreePLRUReplData()

gem5::replacement_policy::TreePLRU::TreePLRUReplData::TreePLRUReplData ( const uint64_t  index,
std::shared_ptr< PLRUTree tree 
)

Default constructor.

Invalidate data.

Parameters
indexIndex of the corresponding entry in the tree.
treeThe shared tree pointer.

Definition at line 99 of file tree_plru_rp.cc.

Member Data Documentation

◆ index

const uint64_t gem5::replacement_policy::TreePLRU::TreePLRUReplData::index

Theoretical index of this replacement data in the tree.

In practice, the corresponding node does not exist, as the tree stores only the nodes that are not leaves.

Definition at line 140 of file tree_plru_rp.hh.

◆ tree

std::shared_ptr<PLRUTree> gem5::replacement_policy::TreePLRU::TreePLRUReplData::tree

Shared tree pointer.

A tree is shared between numLeaves nodes, so that accesses to a replacement data entry updates the PLRU bits of all other replacement data entries in its set.

Definition at line 147 of file tree_plru_rp.hh.


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

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