Go to the documentation of this file.
29 #ifndef __CPU_THREAD_STATE_HH__
30 #define __CPU_THREAD_STATE_HH__
32 #include "arch/types.hh"
33 #include "config/the_isa.hh"
174 #endif // __CPU_THREAD_STATE_HH__
Stats::Scalar numInsts
Stat for number instructions committed.
void setProcessPtr(Process *p)
Process * getProcessPtr()
int16_t ThreadID
Thread index/ID type.
Tick lastActivate
Last time activate was called on this thread.
Basic support for object serialization.
PortProxy * virtProxy
A translating port proxy, outgoing only, for functional accesse to virtual addresses.
int ContextID
Globally unique thread context ID.
uint32_t socketId() const
uint64_t Tick
Tick count type.
void setStatus(Status new_status)
Sets the status of this thread.
void setThreadId(ThreadID id)
uint32_t socketId() const
Reads this CPU's Socket ID.
This is a simple scalar statistic, like a counter.
Struct for holding general thread state that is needed across CPU models.
ThreadContext::Status _status
int64_t Counter
Statistics counter type.
Counter numLoad
Number of simulated loads, used for tracking events based on the number of loads committed.
ThreadContext is the external interface to all thread state for anything outside of the CPU.
Counter numOp
Number of ops (including micro ops) committed.
Tick lastSuspend
Last time suspend was called on this thread.
PortProxy & getPhysProxy()
Counter numInst
Number of instructions committed.
void setFuncExeInst(Counter new_val)
Sets the total number of instructions functionally executed and committed.
PortProxy * physProxy
A port proxy outgoing only for functional accesses to physical addresses.
void setContextId(ContextID id)
ThreadState(BaseCPU *cpu, ThreadID _tid, Process *_process)
Stats::Scalar numOps
Stat for number ops (including micro ops) committed.
Status status() const
Returns the status of this thread.
This object is a proxy for a port or other object which implements the functional response protocol,...
Stats::Scalar numMemRefs
Stat for number of memory references.
void initMemProxies(ThreadContext *tc)
Initialise the physical and virtual port proxies and tie them to the data port of the CPU.
PortProxy & getVirtProxy()
unsigned storeCondFailures
void unserialize(CheckpointIn &cp) override
Unserialize an object.
Tick readLastSuspend() const
std::ostream CheckpointOut
ThreadID threadId() const
ThreadStateStats(BaseCPU *cpu, ThreadState *thread)
Tick readLastActivate() const
ThreadState::ThreadStateStats threadStats
ContextID contextId() const
int cpuId() const
Reads this CPU's ID.
ThreadContext::Status Status
Counter startNumLoad
The number of simulated loads committed prior to this run.
void serialize(CheckpointOut &cp) const override
Serialize an object.
Counter readFuncExeInst() const
Reads the number of instructions functionally executed and committed.
Generated on Wed Sep 30 2020 14:02:09 for gem5 by doxygen 1.8.17