gem5  v20.1.0.0
Public Member Functions | Public Attributes | List of all members
TreePLRURP::TreePLRUReplData Struct Reference

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

#include <tree_plru_rp.hh>

Inheritance diagram for TreePLRURP::TreePLRUReplData:
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 126 of file tree_plru_rp.hh.

Constructor & Destructor Documentation

◆ TreePLRUReplData()

TreePLRURP::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 92 of file tree_plru_rp.cc.

Member Data Documentation

◆ index

const uint64_t TreePLRURP::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 133 of file tree_plru_rp.hh.

◆ tree

std::shared_ptr<PLRUTree> TreePLRURP::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 140 of file tree_plru_rp.hh.


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

Generated on Wed Sep 30 2020 14:02:33 for gem5 by doxygen 1.8.17