gem5  v22.1.0.0
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

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

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

◆ ~CheckTable()

gem5::CheckTable::~CheckTable ( )

Definition at line 78 of file

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

◆ CheckTable() [2/2]

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

Member Function Documentation

◆ addCheck()

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

◆ getCheck()

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

Definition at line 121 of file

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

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

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

◆ operator=()

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

◆ print()

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

Definition at line 136 of file

Referenced by gem5::operator<<().

Member Data Documentation

◆ m_check_vector

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

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

Definition at line 69 of file CheckTable.hh.

Referenced by addCheck(), and getCheck().

◆ m_num_readers

int gem5::CheckTable::m_num_readers

Definition at line 72 of file CheckTable.hh.

Referenced by addCheck().

◆ m_num_writers

int gem5::CheckTable::m_num_writers

Definition at line 71 of file CheckTable.hh.

Referenced by addCheck().

◆ m_tester_ptr

RubyTester* gem5::CheckTable::m_tester_ptr

Definition at line 73 of file CheckTable.hh.

Referenced by addCheck().

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

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