gem5 [DEVELOP-FOR-25.0]
Loading...
Searching...
No Matches
gem5::ruby::CHI::MN_TBEStorage< RetryEntry > Class Template Reference

#include <MN_TBEStorage.hh>

Classes

struct  MN_TBEStorageStats
 

Public Member Functions

 MN_TBEStorage (statistics::Group *parent, std::initializer_list< TBEStorage * > _partitions)
 
int size () const
 
int capacity () const
 
int reserved () const
 
int slotsAvailable (int partition) const
 
float utilization () const
 
bool areNSlotsAvailable (int n, int partition, Tick current_time=0) const
 
void incrementReserved (int partition)
 
void decrementReserved (int partition)
 
int addEntryToNewSlot (int partition)
 
void removeEntryFromSlot (int slot, int partition)
 
void emplaceRetryEntry (RetryEntry entry)
 
bool hasPossibleRetry ()
 
RetryEntry popNextRetryEntry ()
 

Private Member Functions

std::list< RetryEntry >::iterator getNextRetryEntryIter ()
 

Private Attributes

gem5::ruby::CHI::MN_TBEStorage::MN_TBEStorageStats m_stats
 
std::vector< TBEStorage * > partitions
 
std::list< RetryEntry > m_retryEntries
 

Detailed Description

template<class RetryEntry>
class gem5::ruby::CHI::MN_TBEStorage< RetryEntry >

Definition at line 67 of file MN_TBEStorage.hh.

Constructor & Destructor Documentation

◆ MN_TBEStorage()

template<class RetryEntry>
gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::MN_TBEStorage ( statistics::Group * parent,
std::initializer_list< TBEStorage * > _partitions )
inline

Definition at line 70 of file MN_TBEStorage.hh.

References m_stats, and partitions.

Member Function Documentation

◆ addEntryToNewSlot()

template<class RetryEntry>
int gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::addEntryToNewSlot ( int partition)
inline

Definition at line 166 of file MN_TBEStorage.hh.

References areNSlotsAvailable(), m_stats, partitions, size(), and utilization().

◆ areNSlotsAvailable()

template<class RetryEntry>
bool gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::areNSlotsAvailable ( int n,
int partition,
Tick current_time = 0 ) const
inline

Definition at line 130 of file MN_TBEStorage.hh.

References gem5::ArmISA::n, and slotsAvailable().

Referenced by addEntryToNewSlot(), getNextRetryEntryIter(), and incrementReserved().

◆ capacity()

template<class RetryEntry>
int gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::capacity ( ) const
inline

Definition at line 89 of file MN_TBEStorage.hh.

References partitions, and gem5::statistics::total.

Referenced by utilization().

◆ decrementReserved()

template<class RetryEntry>
void gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::decrementReserved ( int partition)
inline

Definition at line 151 of file MN_TBEStorage.hh.

References m_stats, partitions, and reserved().

◆ emplaceRetryEntry()

template<class RetryEntry>
void gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::emplaceRetryEntry ( RetryEntry entry)
inline

Definition at line 206 of file MN_TBEStorage.hh.

References m_retryEntries.

◆ getNextRetryEntryIter()

template<class RetryEntry>
std::list< RetryEntry >::iterator gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::getNextRetryEntryIter ( )
inlineprivate

Definition at line 255 of file MN_TBEStorage.hh.

References areNSlotsAvailable(), and m_retryEntries.

Referenced by hasPossibleRetry(), and popNextRetryEntry().

◆ hasPossibleRetry()

template<class RetryEntry>
bool gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::hasPossibleRetry ( )
inline

Definition at line 213 of file MN_TBEStorage.hh.

References getNextRetryEntryIter(), and m_retryEntries.

◆ incrementReserved()

template<class RetryEntry>
void gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::incrementReserved ( int partition)
inline

Definition at line 139 of file MN_TBEStorage.hh.

References areNSlotsAvailable(), m_stats, partitions, and reserved().

◆ popNextRetryEntry()

template<class RetryEntry>
RetryEntry gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::popNextRetryEntry ( )
inline

Definition at line 222 of file MN_TBEStorage.hh.

References getNextRetryEntryIter(), and m_retryEntries.

◆ removeEntryFromSlot()

template<class RetryEntry>
void gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::removeEntryFromSlot ( int slot,
int partition )
inline

Definition at line 190 of file MN_TBEStorage.hh.

References m_stats, partitions, size(), and utilization().

◆ reserved()

template<class RetryEntry>
int gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::reserved ( ) const
inline

Definition at line 100 of file MN_TBEStorage.hh.

References partitions, and gem5::statistics::total.

Referenced by decrementReserved(), and incrementReserved().

◆ size()

template<class RetryEntry>
int gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::size ( ) const
inline

Definition at line 78 of file MN_TBEStorage.hh.

References partitions, and gem5::statistics::total.

Referenced by addEntryToNewSlot(), removeEntryFromSlot(), and utilization().

◆ slotsAvailable()

template<class RetryEntry>
int gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::slotsAvailable ( int partition) const
inline

Definition at line 111 of file MN_TBEStorage.hh.

References partitions.

Referenced by areNSlotsAvailable().

◆ utilization()

template<class RetryEntry>
float gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::utilization ( ) const
inline

Definition at line 123 of file MN_TBEStorage.hh.

References capacity(), and size().

Referenced by addEntryToNewSlot(), and removeEntryFromSlot().

Member Data Documentation

◆ m_retryEntries

template<class RetryEntry>
std::list<RetryEntry> gem5::ruby::CHI::MN_TBEStorage< RetryEntry >::m_retryEntries
private

◆ m_stats

◆ partitions


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

Generated on Mon May 26 2025 09:19:37 for gem5 by doxygen 1.13.2