Go to the documentation of this file.
29 #ifndef __CPU_THREAD_STATE_HH__
30 #define __CPU_THREAD_STATE_HH__
157 #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.
void initMemProxies(ThreadContext *tc)
Initialise the physical and virtual port proxies and tie them to the data port of the CPU.
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.
PortProxy & getVirtProxy()
gem5::ThreadState::ThreadStateStats threadStats
Tick lastSuspend
Last time suspend was called on this thread.
PortProxy * virtProxy
A translating port proxy, outgoing only, for functional accesse to virtual addresses.
Basic support for object serialization.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
unsigned storeCondFailures
uint64_t Tick
Tick count type.
This object is a proxy for a port or other object which implements the functional response protocol,...
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 Wed Jul 28 2021 12:10:24 for gem5 by doxygen 1.8.17