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

Constructor & Destructor Documentation

◆ CheckTable() [1/2]

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::~CheckTable ( )

Definition at line 75 of file CheckTable.cc.

References ArmISA::i, and m_check_vector.

◆ CheckTable() [2/2]

CheckTable::CheckTable ( const CheckTable obj)
private

Member Function Documentation

◆ addCheck()

void CheckTable::addCheck ( Addr  address)
private

◆ getCheck()

Check * CheckTable::getCheck ( Addr  address)

Definition at line 118 of file CheckTable.cc.

References DPRINTF, ArmISA::i, and m_lookup_map.

Referenced by RubyTester::hitCallback().

◆ getRandomCheck()

Check * CheckTable::getRandomCheck ( )

Definition at line 111 of file CheckTable.cc.

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

Referenced by RubyTester::wakeup().

◆ operator=()

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

◆ print()

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

Definition at line 133 of file CheckTable.cc.

Referenced by operator<<().

Member Data Documentation

◆ m_check_vector

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

Definition at line 65 of file CheckTable.hh.

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

◆ m_lookup_map

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

Definition at line 66 of file CheckTable.hh.

Referenced by addCheck(), and getCheck().

◆ m_num_readers

int CheckTable::m_num_readers
private

Definition at line 69 of file CheckTable.hh.

Referenced by addCheck().

◆ m_num_writers

int CheckTable::m_num_writers
private

Definition at line 68 of file CheckTable.hh.

Referenced by addCheck().

◆ m_tester_ptr

RubyTester* CheckTable::m_tester_ptr
private

Definition at line 70 of file CheckTable.hh.

Referenced by addCheck().


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

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