gem5
|
#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 |
RubyTester * | m_tester_ptr |
Check::Check | ( | Addr | address, |
Addr | pc, | ||
int | _num_writers, | ||
int | _num_readers, | ||
RubyTester * | _tester | ||
) |
Definition at line 39 of file Check.cc.
References changeAddress(), m_access_mode, m_pc, m_status, m_store_count, pc, pickInitiatingNode(), pickValue(), Random::random(), and random_mt.
void Check::changeAddress | ( | Addr | address | ) |
|
private |
Definition at line 388 of file Check.cc.
References DPRINTF, m_address, m_initiatingNode, m_status, m_store_count, and m_value.
Referenced by initiate(), and performCallback().
|
inline |
void Check::initiate | ( | ) |
Definition at line 56 of file Check.cc.
References debugPrint(), DPRINTF, RubyTester::getCheckFlush(), initiateAction(), initiateCheck(), initiateFlush(), initiatePrefetch(), m_status, m_tester_ptr, Random::random(), and random_mt.
Referenced by RubyTester::wakeup().
|
private |
Definition at line 168 of file Check.cc.
References curTick(), Packet::dataDynamic(), DPRINTF, Packet::getConstPtr(), Request::getSize(), RubyTester::getWritableCpuPort(), MipsISA::index, m_address, m_num_writers, m_pc, m_status, m_store_count, m_tester_ptr, m_value, RubyTester::masterId(), Random::random(), random_mt, Packet::req, Packet::senderState, MasterPort::sendTimingReq(), Request::setContext(), and MemCmd::WriteReq.
Referenced by initiate().
|
private |
Definition at line 229 of file Check.cc.
References CHECK_SIZE, curTick(), Packet::dataDynamic(), DPRINTF, RubyTester::getReadableCpuPort(), Request::getSize(), MipsISA::index, Request::INST_FETCH, RubyTester::isInstDataCpuPort(), RubyTester::isInstOnlyCpuPort(), m_address, m_num_readers, m_pc, m_status, m_tester_ptr, RubyTester::masterId(), Random::random(), random_mt, MemCmd::ReadReq, Packet::req, Packet::senderState, MasterPort::sendTimingReq(), Flags< T >::set(), and Request::setContext().
Referenced by initiate().
|
private |
Definition at line 139 of file Check.cc.
References CHECK_SIZE, curTick(), DPRINTF, MemCmd::FlushReq, Request::getSize(), RubyTester::getWritableCpuPort(), MipsISA::index, m_address, m_num_writers, m_pc, m_tester_ptr, RubyTester::masterId(), Random::random(), random_mt, Packet::senderState, and MasterPort::sendTimingReq().
Referenced by initiate().
|
private |
Definition at line 82 of file Check.cc.
References curTick(), data, Packet::dataDynamic(), DPRINTF, RubyTester::getReadableCpuPort(), Request::getSize(), MipsISA::index, Request::INST_FETCH, RubyTester::isInstDataCpuPort(), RubyTester::isInstOnlyCpuPort(), m_address, m_num_readers, m_pc, m_tester_ptr, RubyTester::masterId(), Request::PF_EXCLUSIVE, Request::PREFETCH, Random::random(), random_mt, MemCmd::ReadReq, Packet::req, Packet::senderState, MasterPort::sendTimingReq(), Flags< T >::set(), Request::setContext(), and MemCmd::WriteReq.
Referenced by initiate().
Definition at line 283 of file Check.cc.
References CHECK_SIZE, debugPrint(), DPRINTF, SubBlock::getAddress(), SubBlock::getByte(), RubyTester::incrementCheckCompletions(), m_address, m_status, m_store_count, m_tester_ptr, m_value, makeLineAddress(), panic, pickValue(), and SubBlock::setByte().
Referenced by RubyTester::hitCallback().
|
private |
Definition at line 365 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().
|
private |
Definition at line 357 of file Check.cc.
References m_status, m_store_count, m_value, Random::random(), and random_mt.
Referenced by Check(), and performCallback().
void Check::print | ( | std::ostream & | out | ) | const |
Definition at line 376 of file Check.cc.
References m_address, m_initiatingNode, m_status, m_store_count, and m_value.
Referenced by operator<<().
|
private |
|
private |
Definition at line 73 of file Check.hh.
Referenced by changeAddress(), debugPrint(), getAddress(), initiateAction(), initiateCheck(), initiateFlush(), initiatePrefetch(), performCallback(), pickInitiatingNode(), and print().
|
private |
Definition at line 72 of file Check.hh.
Referenced by debugPrint(), pickInitiatingNode(), and print().
|
private |
Definition at line 77 of file Check.hh.
Referenced by initiateCheck(), and initiatePrefetch().
|
private |
Definition at line 76 of file Check.hh.
Referenced by initiateAction(), initiateFlush(), and pickInitiatingNode().
|
private |
Definition at line 74 of file Check.hh.
Referenced by Check(), initiateAction(), initiateCheck(), initiateFlush(), and initiatePrefetch().
|
private |
Definition at line 69 of file Check.hh.
Referenced by changeAddress(), Check(), debugPrint(), initiate(), initiateAction(), initiateCheck(), performCallback(), pickInitiatingNode(), pickValue(), and print().
|
private |
Definition at line 71 of file Check.hh.
Referenced by changeAddress(), Check(), debugPrint(), initiateAction(), performCallback(), pickInitiatingNode(), pickValue(), and print().
|
private |
Definition at line 78 of file Check.hh.
Referenced by initiate(), initiateAction(), initiateCheck(), initiateFlush(), initiatePrefetch(), and performCallback().
|
private |
Definition at line 70 of file Check.hh.
Referenced by debugPrint(), initiateAction(), performCallback(), pickValue(), and print().