36#ifndef CPU_TESTERS_PROTOCOL_TESTER_TESTER_THREAD_HH_
37#define CPU_TESTERS_PROTOCOL_TESTER_TESTER_THREAD_HH_
93 void setDesc(std::string _description) {
desc = _description; }
95 const std::string
name()
const override {
return desc; }
114 return "Tester deadlock check";
206 std::stringstream&
ss)
const;
static const int INVALID_VALUE
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
Cycles is a wrapper class for representing cycle counts, i.e.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
DeadlockCheckEvent(TesterThread *_thread)
const std::string name() const override
void setDesc(std::string _description)
const std::string name() const override
TesterThreadEvent(TesterThread *_thread, std::string _description)
TesterThread(const Params &p)
AddressManager * addrManager
AddressManager::Value Value
void attachTesterThreadToPorts(ProtocolTester *_tester, ProtocolTester::SeqPort *_port, ProtocolTester::GMTokenPort *_tokenPort=nullptr, ProtocolTester::SeqPort *_sqcPort=nullptr, ProtocolTester::SeqPort *_scalarPort=nullptr)
virtual void issueReleaseOp()=0
OutstandingReqTable outstandingAtomics
AddressManager::Location Location
void scheduleDeadlockCheckEvent()
void validateAtomicResp(Location loc, int lane, Value ret_val)
ProtocolTester::SeqPort * port
bool checkDRF(Location atomic_loc, Location loc, bool isStore) const
void printAllOutstandingReqs(std::stringstream &ss) const
DeadlockCheckEvent deadlockCheckEvent
virtual void issueAcquireOp()=0
ProtocolTester::SeqPort * scalarPort
OutstandingReqTable outstandingStores
void addOutstandingReqs(OutstandingReqTable &req_table, Addr addr, int lane, Location loc, Value stored_val=AddressManager::INVALID_VALUE)
virtual void issueStoreOps()=0
OutstandingReqTable outstandingLoads
ProtocolTester::GMTokenPort * tokenPort
EpisodeHistory episodeHistory
OutstandingReq popOutstandingReq(OutstandingReqTable &req_table, Addr address)
const Episode::Action * curAction
virtual void issueAtomicOps()=0
ProtocolTester::SeqPort * sqcPort
void printOutstandingReqs(const OutstandingReqTable &table, std::stringstream &ss) const
TesterThreadParams Params
virtual void issueLoadOps()=0
std::unordered_map< Addr, OutstandingReqList > OutstandingReqTable
std::vector< Episode * > EpisodeHistory
virtual void hitCallback(PacketPtr pkt)=0
TesterThreadEvent threadEvent
std::vector< OutstandingReq > OutstandingReqList
const std::string & getName() const
int getTesterThreadId() const
void validateLoadResp(Location loc, int lane, Value ret_val)
ClockedObject declaration and implementation.
static const Priority CPU_Tick_Pri
CPU ticks must come after other associated CPU events (such as writebacks).
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
OutstandingReq(int _lane, Location _loc, Value _val, Cycles _cycle)