gem5  v21.1.0.2
Public Member Functions | Private Member Functions | Private Attributes | List of all members
gem5::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 (ruby::NodeID proc, ruby::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

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

Detailed Description

Definition at line 51 of file Check.hh.

Constructor & Destructor Documentation

◆ Check()

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

Member Function Documentation

◆ changeAddress()

void gem5::Check::changeAddress ( Addr  address)

Definition at line 351 of file Check.cc.

References DPRINTF, m_address, m_status, and m_store_count.

Referenced by Check().

◆ debugPrint()

void gem5::Check::debugPrint ( )
private

Definition at line 394 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 gem5::Check::getAddress ( ) const
inline

Definition at line 60 of file Check.hh.

References m_address.

◆ initiate()

void gem5::Check::initiate ( )

◆ initiateAction()

void gem5::Check::initiateAction ( )
private

◆ initiateCheck()

void gem5::Check::initiateCheck ( )
private

◆ initiateFlush()

void gem5::Check::initiateFlush ( )
private

◆ initiatePrefetch()

void gem5::Check::initiatePrefetch ( )
private

◆ performCallback()

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

◆ pickInitiatingNode()

void gem5::Check::pickInitiatingNode ( )
private

◆ pickValue()

void gem5::Check::pickValue ( )
private

Definition at line 362 of file Check.cc.

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

Referenced by Check(), and performCallback().

◆ print()

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

Definition at line 382 of file Check.cc.

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

Referenced by gem5::operator<<().

Member Data Documentation

◆ m_access_mode

ruby::RubyAccessMode gem5::Check::m_access_mode
private

Definition at line 82 of file Check.hh.

Referenced by Check().

◆ m_address

Addr gem5::Check::m_address
private

◆ m_initiatingNode

ruby::NodeID gem5::Check::m_initiatingNode
private

Definition at line 79 of file Check.hh.

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

◆ m_num_readers

int gem5::Check::m_num_readers
private

Definition at line 84 of file Check.hh.

Referenced by initiateCheck(), and initiatePrefetch().

◆ m_num_writers

int gem5::Check::m_num_writers
private

Definition at line 83 of file Check.hh.

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

◆ m_pc

Addr gem5::Check::m_pc
private

Definition at line 81 of file Check.hh.

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

◆ m_status

ruby::TesterStatus gem5::Check::m_status
private

◆ m_store_count

int gem5::Check::m_store_count
private

◆ m_tester_ptr

RubyTester* gem5::Check::m_tester_ptr
private

◆ m_value

uint8_t gem5::Check::m_value
private

Definition at line 77 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 Tue Sep 21 2021 12:27:23 for gem5 by doxygen 1.8.17