Go to the documentation of this file.
29 #ifndef __CPU_THREAD_STATE_HH__
30 #define __CPU_THREAD_STATE_HH__
143 #endif // __CPU_THREAD_STATE_HH__
This is a simple scalar statistic, like a counter.
Counter numLoad
Number of simulated loads, used for tracking events based on the number of loads committed.
ThreadStateStats(BaseCPU *cpu, const ThreadID &thread)
Struct for holding general thread state that is needed across CPU models.
statistics::Scalar numMemRefs
Stat for number of memory references.
ThreadContext::Status Status
statistics::Scalar numOps
Stat for number ops (including micro ops) committed.
statistics::Scalar numInsts
Stat for number instructions committed.
void unserialize(CheckpointIn &cp) override
Unserialize an object.
void serialize(CheckpointOut &cp) const override
Serialize an object.
uint32_t socketId() const
Reads this CPU's Socket ID.
gem5::ThreadState::ThreadStateStats threadStats
virtual ~ThreadState()=default
Tick lastSuspend
Last time suspend was called on this thread.
Basic support for object serialization.
unsigned storeCondFailures
uint64_t Tick
Tick count type.
void setThreadId(ThreadID id)
ThreadID threadId() const
void setStatus(Status new_status)
Sets the status of this thread.
ContextID contextId() const
void setContextId(ContextID id)
Tick lastActivate
Last time activate was called on this thread.
Counter numInst
Number of instructions committed.
void setProcessPtr(Process *p)
ThreadContext::Status _status
int cpuId() const
Reads this CPU's ID.
Status status() const
Returns the status of this thread.
int ContextID
Globally unique thread context ID.
double Counter
All counters are of 64-bit values.
Counter numOp
Number of ops (including micro ops) committed.
std::ostream CheckpointOut
uint32_t socketId() const
Reference material can be found at the JEDEC website: UFS standard http://www.jedec....
ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process)
Tick readLastActivate() const
Tick readLastSuspend() const
Counter startNumLoad
The number of simulated loads committed prior to this run.
int16_t ThreadID
Thread index/ID type.
Process * getProcessPtr()
Generated on Sun Jul 30 2023 01:56:53 for gem5 by doxygen 1.8.17