gem5 v24.0.0.0
Loading...
Searching...
No Matches
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.
 

Public Attributes

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

Detailed Description

Tree-PLRU-specific implementation of replacement data.

Each replacement data shares its tree with other entries.

Definition at line 132 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 98 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 139 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 146 of file tree_plru_rp.hh.


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

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