gem5  v22.1.0.0
Public Member Functions | Protected Member Functions | Protected Attributes | Private Attributes | List of all members
gem5::ruby::TBETable< ENTRY > Class Template Reference

#include <TBETable.hh>

Public Member Functions

 TBETable (int number_of_TBEs)
 
bool isPresent (Addr address) const
 
void allocate (Addr address)
 
void deallocate (Addr address)
 
bool areNSlotsAvailable (int n, Tick current_time) const
 
ENTRY * getNullEntry ()
 
ENTRY * lookup (Addr address)
 
void print (std::ostream &out) const
 

Protected Member Functions

 TBETable (const TBETable &obj)
 
TBETableoperator= (const TBETable &obj)
 

Protected Attributes

std::unordered_map< Addr, ENTRY > m_map
 

Private Attributes

int m_number_of_TBEs
 

Detailed Description

template<class ENTRY>
class gem5::ruby::TBETable< ENTRY >

Definition at line 56 of file TBETable.hh.

Constructor & Destructor Documentation

◆ TBETable() [1/2]

template<class ENTRY >
gem5::ruby::TBETable< ENTRY >::TBETable ( int  number_of_TBEs)
inline

Definition at line 59 of file TBETable.hh.

◆ TBETable() [2/2]

template<class ENTRY >
gem5::ruby::TBETable< ENTRY >::TBETable ( const TBETable< ENTRY > &  obj)
protected

Member Function Documentation

◆ allocate()

template<class ENTRY >
void gem5::ruby::TBETable< ENTRY >::allocate ( Addr  address)
inline

Definition at line 111 of file TBETable.hh.

◆ areNSlotsAvailable()

template<class ENTRY >
bool gem5::ruby::TBETable< ENTRY >::areNSlotsAvailable ( int  n,
Tick  current_time 
) const
inline

◆ deallocate()

template<class ENTRY >
void gem5::ruby::TBETable< ENTRY >::deallocate ( Addr  address)
inline

Definition at line 120 of file TBETable.hh.

◆ getNullEntry()

template<class ENTRY >
ENTRY * gem5::ruby::TBETable< ENTRY >::getNullEntry
inline

Definition at line 129 of file TBETable.hh.

◆ isPresent()

template<class ENTRY >
bool gem5::ruby::TBETable< ENTRY >::isPresent ( Addr  address) const
inline

Definition at line 102 of file TBETable.hh.

References gem5::ruby::makeLineAddress().

◆ lookup()

template<class ENTRY >
ENTRY * gem5::ruby::TBETable< ENTRY >::lookup ( Addr  address)
inline

Definition at line 137 of file TBETable.hh.

◆ operator=()

template<class ENTRY >
TBETable& gem5::ruby::TBETable< ENTRY >::operator= ( const TBETable< ENTRY > &  obj)
protected

◆ print()

template<class ENTRY >
void gem5::ruby::TBETable< ENTRY >::print ( std::ostream &  out) const
inline

Definition at line 146 of file TBETable.hh.

Referenced by gem5::ruby::operator<<().

Member Data Documentation

◆ m_map

template<class ENTRY >
std::unordered_map<Addr, ENTRY> gem5::ruby::TBETable< ENTRY >::m_map
protected

Definition at line 85 of file TBETable.hh.

Referenced by gem5::ruby::TBETable< ENTRY >::areNSlotsAvailable().

◆ m_number_of_TBEs

template<class ENTRY >
int gem5::ruby::TBETable< ENTRY >::m_number_of_TBEs
private

Definition at line 88 of file TBETable.hh.

Referenced by gem5::ruby::TBETable< ENTRY >::areNSlotsAvailable().


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

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