45 : numInst(0), numOp(0), threadStats(cpu, _tid),
46 numLoad(0), startNumLoad(0),
48 _contextId(0), _threadId(_tid), lastActivate(0), lastSuspend(0),
49 process(_process), storeCondFailures(0)
68 ADD_STAT(numInsts, statistics::units::Count::get(),
69 "Number of Instructions committed"),
70 ADD_STAT(numOps, statistics::units::Count::get(),
71 "Number of Ops committed"),
72 ADD_STAT(numMemRefs, statistics::units::Count::get(),
73 "Number of Memory References")
ThreadContext is the external interface to all thread state for anything outside of the CPU.
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
#define SERIALIZE_ENUM(scalar)
#define UNSERIALIZE_ENUM(scalar)
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
int16_t ThreadID
Thread index/ID type.
std::ostream CheckpointOut
std::string csprintf(const char *format, const Args &...args)
PortProxy Object Declaration.
ThreadStateStats(BaseCPU *cpu, const ThreadID &thread)
ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process)
void serialize(CheckpointOut &cp) const override
Serialize an object.
ThreadContext::Status _status
void unserialize(CheckpointIn &cp) override
Unserialize an object.