gem5  v20.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
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
 

Private Member Functions

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

Private Attributes

std::unordered_map< Addr, ENTRY > m_map
 
int m_number_of_TBEs
 

Detailed Description

template<class ENTRY>
class TBETable< ENTRY >

Definition at line 50 of file TBETable.hh.

Constructor & Destructor Documentation

◆ TBETable() [1/2]

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

Definition at line 53 of file TBETable.hh.

◆ TBETable() [2/2]

template<class ENTRY >
TBETable< ENTRY >::TBETable ( const TBETable< ENTRY > &  obj)
private

Member Function Documentation

◆ allocate()

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

Definition at line 105 of file TBETable.hh.

◆ areNSlotsAvailable()

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

◆ deallocate()

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

Definition at line 114 of file TBETable.hh.

◆ getNullEntry()

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

Definition at line 123 of file TBETable.hh.

◆ isPresent()

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

Definition at line 96 of file TBETable.hh.

References makeLineAddress().

◆ lookup()

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

Definition at line 131 of file TBETable.hh.

◆ operator=()

template<class ENTRY >
TBETable& TBETable< ENTRY >::operator= ( const TBETable< ENTRY > &  obj)
private

◆ print()

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

Definition at line 140 of file TBETable.hh.

Referenced by operator<<().

Member Data Documentation

◆ m_map

template<class ENTRY >
std::unordered_map<Addr, ENTRY> TBETable< ENTRY >::m_map
private

Definition at line 79 of file TBETable.hh.

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

◆ m_number_of_TBEs

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

Definition at line 82 of file TBETable.hh.

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


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

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