gem5  v20.1.0.0
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Check Class Reference

#include <Check.hh>

Public Member Functions

 Check (Addr address, Addr pc, int _num_writers, int _num_readers, RubyTester *_tester)
 
void initiate ()
 
void performCallback (NodeID proc, SubBlock *data, Cycles curTime)
 
Addr getAddress () const
 
void changeAddress (Addr address)
 
void print (std::ostream &out) const
 

Private Member Functions

void initiateFlush ()
 
void initiatePrefetch ()
 
void initiateAction ()
 
void initiateCheck ()
 
void pickValue ()
 
void pickInitiatingNode ()
 
void debugPrint ()
 

Private Attributes

TesterStatus m_status
 
uint8_t m_value
 
int m_store_count
 
NodeID m_initiatingNode
 
Addr m_address
 
Addr m_pc
 
RubyAccessMode m_access_mode
 
int m_num_writers
 
int m_num_readers
 
RubyTesterm_tester_ptr
 

Detailed Description

Definition at line 45 of file Check.hh.

Constructor & Destructor Documentation

◆ Check()

Check::Check ( Addr  address,
Addr  pc,
int  _num_writers,
int  _num_readers,
RubyTester _tester 
)

Member Function Documentation

◆ changeAddress()

void Check::changeAddress ( Addr  address)

Definition at line 348 of file Check.cc.

References DPRINTF, m_address, m_status, and m_store_count.

Referenced by Check().

◆ debugPrint()

void Check::debugPrint ( )
private

Definition at line 389 of file Check.cc.

References DPRINTF, m_address, m_initiatingNode, m_status, m_store_count, and m_value.

Referenced by initiate(), and performCallback().

◆ getAddress()

Addr Check::getAddress ( ) const
inline

Definition at line 53 of file Check.hh.

References m_address.

◆ initiate()

void Check::initiate ( )

◆ initiateAction()

void Check::initiateAction ( )
private

◆ initiateCheck()

void Check::initiateCheck ( )
private

◆ initiateFlush()

void Check::initiateFlush ( )
private

◆ initiatePrefetch()

void Check::initiatePrefetch ( )
private

◆ performCallback()

void Check::performCallback ( NodeID  proc,
SubBlock data,
Cycles  curTime 
)

◆ pickInitiatingNode()

void Check::pickInitiatingNode ( )
private

Definition at line 366 of file Check.cc.

References DPRINTF, m_address, m_initiatingNode, m_num_writers, m_status, m_store_count, Random::random(), and random_mt.

Referenced by Check().

◆ pickValue()

void Check::pickValue ( )
private

Definition at line 358 of file Check.cc.

References m_status, m_store_count, m_value, Random::random(), and random_mt.

Referenced by Check(), and performCallback().

◆ print()

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

Definition at line 377 of file Check.cc.

References m_address, m_initiatingNode, m_status, m_store_count, and m_value.

Referenced by operator<<().

Member Data Documentation

◆ m_access_mode

RubyAccessMode Check::m_access_mode
private

Definition at line 75 of file Check.hh.

Referenced by Check().

◆ m_address

Addr Check::m_address
private

◆ m_initiatingNode

NodeID Check::m_initiatingNode
private

Definition at line 72 of file Check.hh.

Referenced by debugPrint(), pickInitiatingNode(), and print().

◆ m_num_readers

int Check::m_num_readers
private

Definition at line 77 of file Check.hh.

Referenced by initiateCheck(), and initiatePrefetch().

◆ m_num_writers

int Check::m_num_writers
private

Definition at line 76 of file Check.hh.

Referenced by initiateAction(), initiateFlush(), and pickInitiatingNode().

◆ m_pc

Addr Check::m_pc
private

Definition at line 74 of file Check.hh.

Referenced by Check(), initiateAction(), initiateCheck(), initiateFlush(), and initiatePrefetch().

◆ m_status

TesterStatus Check::m_status
private

◆ m_store_count

int Check::m_store_count
private

◆ m_tester_ptr

RubyTester* Check::m_tester_ptr
private

◆ m_value

uint8_t Check::m_value
private

Definition at line 70 of file Check.hh.

Referenced by debugPrint(), initiateAction(), performCallback(), pickValue(), and print().


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