gem5
v20.1.0.0
|
#include <CheckTable.hh>
Public Member Functions | |
CheckTable (int _num_writers, int _num_readers, RubyTester *_tester) | |
~CheckTable () | |
Check * | getRandomCheck () |
Check * | getCheck (Addr address) |
void | print (std::ostream &out) const |
Private Member Functions | |
void | addCheck (Addr address) |
CheckTable (const CheckTable &obj) | |
CheckTable & | operator= (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 |
RubyTester * | m_tester_ptr |
Definition at line 42 of file CheckTable.hh.
CheckTable::CheckTable | ( | int | _num_writers, |
int | _num_readers, | ||
RubyTester * | _tester | ||
) |
Definition at line 38 of file CheckTable.cc.
References addCheck(), CHECK_SIZE, DPRINTF, and ArmISA::i.
CheckTable::~CheckTable | ( | ) |
Definition at line 75 of file CheckTable.cc.
References ArmISA::i, and m_check_vector.
|
private |
|
private |
Definition at line 83 of file CheckTable.cc.
References bitSelect(), CHECK_SIZE, CHECK_SIZE_BITS, DPRINTF, floorLog2(), ArmISA::i, m_check_vector, m_lookup_map, m_num_readers, m_num_writers, m_tester_ptr, and panic.
Referenced by CheckTable().
Definition at line 118 of file CheckTable.cc.
References DPRINTF, ArmISA::i, and m_lookup_map.
Referenced by RubyTester::hitCallback().
Check * CheckTable::getRandomCheck | ( | ) |
Definition at line 111 of file CheckTable.cc.
References m_check_vector, Random::random(), and random_mt.
Referenced by RubyTester::wakeup().
|
private |
void CheckTable::print | ( | std::ostream & | out | ) | const |
Definition at line 133 of file CheckTable.cc.
Referenced by operator<<().
|
private |
Definition at line 65 of file CheckTable.hh.
Referenced by addCheck(), getRandomCheck(), and ~CheckTable().
Definition at line 66 of file CheckTable.hh.
Referenced by addCheck(), and getCheck().
|
private |
Definition at line 69 of file CheckTable.hh.
Referenced by addCheck().
|
private |
Definition at line 68 of file CheckTable.hh.
Referenced by addCheck().
|
private |
Definition at line 70 of file CheckTable.hh.
Referenced by addCheck().