gem5  v22.0.0.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
gem5::CheckTable Class Reference

#include <CheckTable.hh>

Public Member Functions

 CheckTable (int _num_writers, int _num_readers, RubyTester *_tester)
 
 ~CheckTable ()
 
CheckgetRandomCheck ()
 
CheckgetCheck (Addr address)
 
void print (std::ostream &out) const
 

Private Member Functions

void addCheck (Addr address)
 
 CheckTable (const CheckTable &obj)
 
CheckTableoperator= (const CheckTable &obj)
 

Private Attributes

std::vector< Check * > m_check_vector
 
std::unordered_map< Addr, Check * > m_lookup_map
 
int m_num_writers
 
int m_num_readers
 
RubyTesterm_tester_ptr
 

Detailed Description

Definition at line 45 of file CheckTable.hh.

Constructor & Destructor Documentation

◆ CheckTable() [1/2]

gem5::CheckTable::CheckTable ( int  _num_writers,
int  _num_readers,
RubyTester _tester 
)

Definition at line 41 of file CheckTable.cc.

References addCheck(), gem5::CHECK_SIZE, DPRINTF, and gem5::ArmISA::i.

◆ ~CheckTable()

gem5::CheckTable::~CheckTable ( )

Definition at line 78 of file CheckTable.cc.

References gem5::ArmISA::i, and m_check_vector.

◆ CheckTable() [2/2]

gem5::CheckTable::CheckTable ( const CheckTable obj)
private

Member Function Documentation

◆ addCheck()

void gem5::CheckTable::addCheck ( Addr  address)
private

◆ getCheck()

Check * gem5::CheckTable::getCheck ( Addr  address)

Definition at line 121 of file CheckTable.cc.

References DPRINTF, gem5::ArmISA::i, and m_lookup_map.

Referenced by gem5::RubyTester::hitCallback().

◆ getRandomCheck()

Check * gem5::CheckTable::getRandomCheck ( )

Definition at line 114 of file CheckTable.cc.

References m_check_vector, gem5::Random::random(), and gem5::random_mt.

Referenced by gem5::RubyTester::wakeup().

◆ operator=()

CheckTable& gem5::CheckTable::operator= ( const CheckTable obj)
private

◆ print()

void gem5::CheckTable::print ( std::ostream &  out) const

Definition at line 136 of file CheckTable.cc.

Referenced by gem5::operator<<().

Member Data Documentation

◆ m_check_vector

std::vector<Check*> gem5::CheckTable::m_check_vector
private

Definition at line 68 of file CheckTable.hh.

Referenced by addCheck(), getRandomCheck(), and ~CheckTable().

◆ m_lookup_map

std::unordered_map<Addr, Check*> gem5::CheckTable::m_lookup_map
private

Definition at line 69 of file CheckTable.hh.

Referenced by addCheck(), and getCheck().

◆ m_num_readers

int gem5::CheckTable::m_num_readers
private

Definition at line 72 of file CheckTable.hh.

Referenced by addCheck().

◆ m_num_writers

int gem5::CheckTable::m_num_writers
private

Definition at line 71 of file CheckTable.hh.

Referenced by addCheck().

◆ m_tester_ptr

RubyTester* gem5::CheckTable::m_tester_ptr
private

Definition at line 73 of file CheckTable.hh.

Referenced by addCheck().


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

Generated on Thu Jul 28 2022 13:32:59 for gem5 by doxygen 1.8.17