gem5
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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::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, m_check_vector, and X86ISA::size().

CheckTable::CheckTable ( const CheckTable obj)
private

Member Function Documentation

void CheckTable::addCheck ( Addr  address)
private
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().

Check * CheckTable::getRandomCheck ( )

Definition at line 111 of file CheckTable.cc.

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

Referenced by RubyTester::wakeup().

CheckTable& CheckTable::operator= ( const CheckTable obj)
private
void CheckTable::print ( std::ostream &  out) const

Definition at line 133 of file CheckTable.cc.

Referenced by operator<<().

Member Data Documentation

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

Definition at line 65 of file CheckTable.hh.

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

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

Definition at line 66 of file CheckTable.hh.

Referenced by addCheck(), and getCheck().

int CheckTable::m_num_readers
private

Definition at line 69 of file CheckTable.hh.

Referenced by addCheck().

int CheckTable::m_num_writers
private

Definition at line 68 of file CheckTable.hh.

Referenced by addCheck().

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 Fri Jun 9 2017 13:04:05 for gem5 by doxygen 1.8.6