60#include "debug/Mwait.hh"
61#include "debug/SyscallVerbose.hh"
62#include "debug/Thread.hh"
64#include "params/BaseCPU.hh"
89 :
Event(
Event::Progress_Event_Pri), _interval(ival), lastNumInst(0),
90 cpu(_cpu), _repeatEvent(true)
111 DPRINTFN(
"%s progress event, total committed:%i, progress insts committed: "
116 cprintf(
"%lli: %s progress event, total committed:%i, progress insts "
126 return "CPU Progress";
131 _instRequestorId(
p.
system->getRequestorId(this,
"inst")),
132 _dataRequestorId(
p.
system->getRequestorId(this,
"data")),
133 _taskId(context_switch_task_id::
Unknown), _pid(invldPid),
134 _switchedOut(
p.switched_out), _cacheLineSize(
p.
system->cacheLineSize()),
135 modelResetPort(
p.
name +
".model_reset"),
137 previousCycle(0), previousState(CPU_STATE_SLEEP),
138 functionTraceStream(nullptr), currentFunctionStart(0),
139 currentFunctionEnd(0), functionEntryTick(0),
141 addressMonitor(
p.numThreads),
142 syscallRetryLatency(
p.syscallRetryLatency),
143 pwrGatingLatency(
p.pwr_gating_latency),
144 powerGatingOnIdle(
p.power_gating_on_idle),
149 _cpuId = cpuList.size();
153 cpuList.push_back(
this);
155 DPRINTF(SyscallVerbose,
"Constructing CPU with id %d, socket id %d\n",
161 functionTracingEnabled =
false;
162 if (
p.function_trace) {
163 const std::string fname =
csprintf(
"ftrace.%s",
name());
166 currentFunctionStart = currentFunctionEnd = 0;
167 functionEntryTick =
p.function_trace_start;
169 if (
p.function_trace_start == 0) {
170 functionTracingEnabled =
true;
172 Event *
event =
new EventFunctionWrapper(
173 [
this]{ enableFunctionTrace(); },
name(),
true);
174 schedule(
event,
p.function_trace_start);
178 tracer = params().tracer;
180 if (params().isa.size() != numThreads) {
181 fatal(
"Number of ISAs (%i) assigned to the CPU does not equal number "
182 "of threads (%i).\n", params().isa.size(), numThreads);
185 if (!
FullSystem && params().workload.size() != numThreads) {
186 fatal(
"Number of processes (cpu.workload) (%i) assigned to the CPU "
187 "does not equal number of threads (%i).\n",
188 params().workload.size(), numThreads);
191 modelResetPort.onChange([
this](
const bool &new_val) {
195 fetchStats.reserve(numThreads);
196 executeStats.reserve(numThreads);
197 commitStats.reserve(numThreads);
198 for (
int i = 0;
i < numThreads;
i++) {
200 FetchCPUStats* fetchStatptr =
new FetchCPUStats(
this,
i);
201 fetchStatptr->fetchRate = fetchStatptr->numInsts / baseStats.numCycles;
202 fetchStatptr->branchRate = fetchStatptr->numBranches /
204 fetchStats.emplace_back(fetchStatptr);
207 ExecuteCPUStats* executeStatptr =
new ExecuteCPUStats(
this,
i);
208 executeStatptr->instRate = executeStatptr->numInsts /
210 executeStats.emplace_back(executeStatptr);
213 CommitCPUStats* commitStatptr =
new CommitCPUStats(
this,
i);
214 commitStatptr->ipc = commitStatptr->numInsts / baseStats.numCycles;
215 commitStatptr->cpi = baseStats.numCycles / commitStatptr->numInsts;
216 commitStats.emplace_back(commitStatptr);
247 monitor.
armed =
true;
248 monitor.
vAddr = address;
250 DPRINTF(Mwait,
"[tid:%d] Armed monitor (vAddr=0x%lx)\n", tid, address);
263 assert(pkt->
req->hasPaddr());
267 DPRINTF(Mwait,
"[tid:%d] mwait called (vAddr=0x%lx, "
268 "line's paddr=0x%lx)\n", tid, monitor.
vAddr, monitor.
pAddr);
287 int size = block_size;
292 if (secondAddr >
addr)
293 size = secondAddr -
addr;
305 DPRINTF(Mwait,
"[tid:%d] mwait called (vAddr=0x%lx, line's paddr=0x%lx)\n",
314 if (
params().max_insts_any_thread != 0) {
322 if (!
params().simpoint_start_insts.empty()) {
326 if (
params().max_insts_all_threads != 0) {
327 std::string cause =
"all threads reached the max instruction count";
332 int *counter =
new int;
341 if (!
params().switched_out) {
351 if (
params().progress_interval) {
409 : statistics::
Group(parent),
410 ADD_STAT(numCycles, statistics::units::Cycle::get(),
411 "Number of cpu cycles simulated"),
412 ADD_STAT(cpi, statistics::units::Rate<
413 statistics::units::Cycle, statistics::units::Count>::get(),
414 "CPI: cycles per instruction (core level)"),
415 ADD_STAT(ipc, statistics::units::Rate<
416 statistics::units::Count, statistics::units::Cycle>::get(),
417 "IPC: instructions per cycle (core level)"),
418 ADD_STAT(numWorkItemsStarted, statistics::units::Count::get(),
419 "Number of work items this cpu started"),
420 ADD_STAT(numWorkItemsCompleted, statistics::units::Count::get(),
421 "Number of work items this cpu completed")
441 using namespace statistics;
445 for (
int i = 0;
i < size; ++
i) {
446 std::stringstream namestr;
450 }
else if (size == 1)
460 if (if_name ==
"dcache_port")
462 else if (if_name ==
"icache_port")
464 else if (if_name ==
"model_reset")
476 "CPU %s has %i interrupt controllers, but is expecting one "
522 for (
ThreadID tid = 0; tid < size; ++tid) {
533 DPRINTF(Thread,
"CPU in reset, not activating context %d\n",
538 DPRINTF(Thread,
"activate contextId %d\n",
552 DPRINTF(Thread,
"suspend contextId %d\n",
607 assert(oldCPU !=
this);
644 if (old_checker && new_checker) {
676 tc->getIsaPtr()->resetThread();
678 tc->getDecoderPtr()->reset();
680 tc->getMMUPtr()->flushAll();
766 assert(pkt->
req->hasPaddr());
767 if (armed && waiting) {
769 DPRINTF(Mwait,
"pAddr=0x%lx invalidated: waking up core\n",
798 sym_str = it->name();
811 std::string cause =
"simpoint starting point found";
812 for (
size_t i = 0;
i < inst_starts.size(); ++
i) {
820 std::string cause =
"a thread reached the max instruction count";
827 : statistics::
Group(parent),
828 ADD_STAT(simInsts, statistics::units::Count::get(),
829 "Number of instructions simulated"),
830 ADD_STAT(simOps, statistics::units::Count::get(),
831 "Number of ops (including micro ops) simulated"),
832 ADD_STAT(hostInstRate, statistics::units::Rate<
833 statistics::units::Count, statistics::units::Second>::get(),
834 "Simulator instruction rate (inst/s)"),
835 ADD_STAT(hostOpRate, statistics::units::Rate<
836 statistics::units::Count, statistics::units::Second>::get(),
837 "Simulator op (including micro ops) rate (op/s)")
867 : statistics::
Group(parent,
csprintf(
"fetchStats%i", thread_id).c_str()),
868 ADD_STAT(numInsts, statistics::units::Count::get(),
869 "Number of instructions fetched (thread level)"),
870 ADD_STAT(numOps, statistics::units::Count::get(),
871 "Number of ops (including micro ops) fetched (thread level)"),
872 ADD_STAT(fetchRate, statistics::units::Rate<
873 statistics::units::Count, statistics::units::Cycle>::get(),
874 "Number of inst fetches per cycle"),
875 ADD_STAT(numBranches, statistics::units::Count::get(),
876 "Number of branches fetched"),
877 ADD_STAT(branchRate, statistics::units::Ratio::get(),
878 "Number of branch fetches per cycle"),
879 ADD_STAT(icacheStallCycles, statistics::units::Cycle::get(),
880 "ICache total stall cycles"),
881 ADD_STAT(numFetchSuspends, statistics::units::Count::get(),
882 "Number of times Execute suspended instruction fetching")
902 : statistics::
Group(parent,
csprintf(
"executeStats%i", thread_id).c_str()),
903 ADD_STAT(numInsts, statistics::units::Count::get(),
904 "Number of executed instructions"),
905 ADD_STAT(numNop, statistics::units::Count::get(),
906 "Number of nop insts executed"),
907 ADD_STAT(numBranches, statistics::units::Count::get(),
908 "Number of branches executed"),
909 ADD_STAT(numLoadInsts, statistics::units::Count::get(),
910 "Number of load instructions executed"),
911 ADD_STAT(numStoreInsts, statistics::units::Count::get(),
912 "Number of stores executed"),
913 ADD_STAT(instRate, statistics::units::Rate<
914 statistics::units::Count, statistics::units::Cycle>::get(),
915 "Inst execution rate"),
916 ADD_STAT(dcacheStallCycles, statistics::units::Cycle::get(),
917 "DCache total stall cycles"),
918 ADD_STAT(numCCRegReads, statistics::units::Count::get(),
919 "Number of times the CC registers were read"),
920 ADD_STAT(numCCRegWrites, statistics::units::Count::get(),
921 "Number of times the CC registers were written"),
922 ADD_STAT(numFpAluAccesses, statistics::units::Count::get(),
923 "Number of float alu accesses"),
924 ADD_STAT(numFpRegReads, statistics::units::Count::get(),
925 "Number of times the floating registers were read"),
926 ADD_STAT(numFpRegWrites, statistics::units::Count::get(),
927 "Number of times the floating registers were written"),
928 ADD_STAT(numIntAluAccesses, statistics::units::Count::get(),
929 "Number of integer alu accesses"),
930 ADD_STAT(numIntRegReads, statistics::units::Count::get(),
931 "Number of times the integer registers were read"),
932 ADD_STAT(numIntRegWrites, statistics::units::Count::get(),
933 "Number of times the integer registers were written"),
934 ADD_STAT(numMemRefs, statistics::units::Count::get(),
935 "Number of memory refs"),
936 ADD_STAT(numMiscRegReads, statistics::units::Count::get(),
937 "Number of times the Misc registers were read"),
938 ADD_STAT(numMiscRegWrites, statistics::units::Count::get(),
939 "Number of times the Misc registers were written"),
940 ADD_STAT(numVecAluAccesses, statistics::units::Count::get(),
941 "Number of vector alu accesses"),
942 ADD_STAT(numVecPredRegReads, statistics::units::Count::get(),
943 "Number of times the predicate registers were read"),
944 ADD_STAT(numVecPredRegWrites, statistics::units::Count::get(),
945 "Number of times the predicate registers were written"),
946 ADD_STAT(numVecRegReads, statistics::units::Count::get(),
947 "Number of times the vector registers were read"),
948 ADD_STAT(numVecRegWrites, statistics::units::Count::get(),
949 "Number of times the vector registers were written"),
950 ADD_STAT(numDiscardedOps, statistics::units::Count::get(),
951 "Number of ops (including micro ops) which were discarded before "
990 : statistics::
Group(parent,
csprintf(
"commitStats%i", thread_id).c_str()),
991 ADD_STAT(numInsts, statistics::units::Count::get(),
992 "Number of instructions committed (thread level)"),
993 ADD_STAT(numOps, statistics::units::Count::get(),
994 "Number of ops (including micro ops) committed (thread level)"),
995 ADD_STAT(numInstsNotNOP, statistics::units::Count::get(),
996 "Number of instructions committed excluding NOPs or prefetches"),
997 ADD_STAT(numOpsNotNOP, statistics::units::Count::get(),
998 "Number of Ops (including micro ops) Simulated"),
999 ADD_STAT(cpi, statistics::units::Rate<
1000 statistics::units::Cycle, statistics::units::Count>::get(),
1001 "CPI: cycles per instruction (thread level)"),
1002 ADD_STAT(ipc, statistics::units::Rate<
1003 statistics::units::Count, statistics::units::Cycle>::get(),
1004 "IPC: instructions per cycle (thread level)"),
1005 ADD_STAT(numMemRefs, statistics::units::Count::get(),
1006 "Number of memory references committed"),
1007 ADD_STAT(numFpInsts, statistics::units::Count::get(),
1008 "Number of float instructions"),
1009 ADD_STAT(numIntInsts, statistics::units::Count::get(),
1010 "Number of integer instructions"),
1011 ADD_STAT(numLoadInsts, statistics::units::Count::get(),
1012 "Number of load instructions"),
1013 ADD_STAT(numStoreInsts, statistics::units::Count::get(),
1014 "Number of store instructions"),
1015 ADD_STAT(numVecInsts, statistics::units::Count::get(),
1016 "Number of vector instructions"),
1017 ADD_STAT(committedInstType, statistics::units::Count::get(),
1018 "Class of committed instruction."),
1019 ADD_STAT(committedControl, statistics::units::Count::get(),
1020 "Class of control type instructions committed")
1029 .
init(enums::Num_OpClass)
1037 .
init(StaticInstFlags::Flags::Num_Flags)
1040 for (
unsigned i = 0;
i < StaticInstFlags::Flags::Num_Flags;
i++) {
1053 committedControl[gem5::StaticInstFlags::Flags::IsReturn]++;
1055 if (staticInst->
isCall()) {
1056 committedControl[gem5::StaticInstFlags::Flags::IsCall]++;
1059 committedControl[gem5::StaticInstFlags::Flags::IsDirectControl]++;
1063 [gem5::StaticInstFlags::Flags::IsIndirectControl]++;
1066 committedControl[gem5::StaticInstFlags::Flags::IsCondControl]++;
1069 committedControl[gem5::StaticInstFlags::Flags::IsUncondControl]++;
1071 committedControl[gem5::StaticInstFlags::Flags::IsControl]++;
void regStats() override
Callback to set stat parameters.
int findContext(ThreadContext *tc)
Given a Thread Context pointer return the thread num.
RequestorID dataRequestorId() const
Reads this CPU's unique data requestor ID.
probing::PMUUPtr ppRetiredInsts
Instruction commit probe point.
const Cycles pwrGatingLatency
virtual void serializeThread(CheckpointOut &cp, ThreadID tid) const
Serialize a single thread.
virtual Counter totalOps() const =0
void traceFunctionsInternal(Addr pc)
const bool powerGatingOnIdle
void registerThreadContexts()
virtual void haltContext(ThreadID thread_num)
Notify the CPU that the indicated context is now halted.
probing::PMUUPtr ppRetiredLoads
Retired load instructions.
Tick instCnt
Instruction count used for SPARC misc register.
SignalSinkPort< bool > modelResetPort
probing::PMUUPtr ppAllCycles
CPU cycle counter even if any thread Context is suspended.
probing::PMUUPtr ppRetiredInstsPC
void init() override
init() is called after all C++ SimObjects have been created and all ports are connected.
void mwaitAtomic(ThreadID tid, ThreadContext *tc, BaseMMU *mmu)
Addr cacheLineSize() const
Get the cache line size of the system.
void updateCycleCounters(CPUState state)
base method keeping track of cycle progression
probing::PMUUPtr pmuProbePoint(const char *name)
Helper method to instantiate probe points belonging to this object.
void postInterrupt(ThreadID tid, int int_num, int index)
bool mwait(ThreadID tid, PacketPtr pkt)
void unserialize(CheckpointIn &cp) override
Reconstruct the state of this object from a checkpoint.
void scheduleInstStopAnyThread(Counter max_insts)
Schedule an exit event when any threads in the core reach the max_insts instructions using the schedu...
void serialize(CheckpointOut &cp) const override
Serialize this object to the given output stream.
probing::PMUUPtr ppRetiredStores
Retired store instructions.
bool _switchedOut
Is the CPU switched out or active?
Port & getPort(const std::string &if_name, PortID idx=InvalidPortID) override
Get a port on this CPU.
Addr currentFunctionStart
void schedulePowerGatingEvent()
static std::unique_ptr< GlobalStats > globalStats
Pointer to the global stat structure.
virtual Port & getDataPort()=0
Purely virtual method that returns a reference to the data port.
virtual void verifyMemoryMode() const
Verify that the system is in a memory mode supported by the CPU.
void regProbePoints() override
Register probe points for this object.
void scheduleSimpointsInstStop(std::vector< Counter > inst_starts)
Schedule simpoint events using the scheduleInstStop function.
uint32_t taskId() const
Get cpu task id.
virtual void suspendContext(ThreadID thread_num)
Notify the CPU that the indicated context is now suspended.
void enableFunctionTrace()
virtual Port & getInstPort()=0
Purely virtual method that returns a reference to the instruction port.
ThreadID numThreads
Number of threads we're actually simulating (<= SMT_MAX_THREADS).
probing::PMUUPtr ppRetiredBranches
Retired branches (any type)
void deschedulePowerGatingEvent()
virtual void wakeup(ThreadID tid)=0
probing::PMUUPtr ppActiveCycles
CPU cycle counter, only counts if any thread contexts is active.
bool functionTracingEnabled
int cpuId() const
Reads this CPU's ID.
uint32_t _taskId
An intrenal representation of a task identifier within gem5.
std::vector< BaseInterrupts * > interrupts
void startup() override
startup() is the final initialization call before simulation.
virtual void unserializeThread(CheckpointIn &cp, ThreadID tid)
Unserialize one thread.
virtual void switchOut()
Prepare for another CPU to take over execution.
virtual void setReset(bool state)
Set the reset of the CPU to be either asserted or deasserted.
void flushTLBs()
Flush all TLBs in the CPU.
void armMonitor(ThreadID tid, Addr address)
ProbePointArg< bool > * ppSleeping
ProbePoint that signals transitions of threadContexts sets.
static Counter numSimulatedOps()
std::ostream * functionTraceStream
virtual void takeOverFrom(BaseCPU *cpu)
Load the state of a CPU from the previous CPU object, invoked on all new CPUs that are about to be sw...
std::vector< AddressMonitor > addressMonitor
std::vector< ThreadContext * > threadContexts
static std::vector< BaseCPU * > cpuList
Static global cpu list.
EventFunctionWrapper enterPwrGatingEvent
void scheduleInstStop(ThreadID tid, Counter insts, std::string cause)
Schedule an event that exits the simulation loops after a predefined number of instructions.
bool switchedOut() const
Determine if the CPU is switched out.
BaseCPU(const Params ¶ms, bool is_checker=false)
uint32_t _pid
The current OS process ID that is executing on this processor.
virtual void probeInstCommit(const StaticInstPtr &inst, Addr pc)
Helper method to trigger PMU probes for a committed instruction.
uint64_t getCurrentInstCount(ThreadID tid)
Get the number of instructions executed by the specified thread on this CPU.
static Counter numSimulatedInsts()
virtual void activateContext(ThreadID thread_num)
Notify the CPU that the indicated context is now active.
virtual void setThreadContext(ThreadContext *_tc)
virtual void takeOverFrom(BaseMMU *old_mmu)
virtual Fault translateAtomic(const RequestPtr &req, ThreadContext *tc, Mode mode)
CPUProgressEvent(BaseCPU *_cpu, Tick ival=0)
virtual const char * description() const
Return a C string describing the event.
The ClockedObject class extends the SimObject with a clock and accessor functions to relate ticks to ...
ClockedObjectParams Params
Parameters of ClockedObject.
Tick clockEdge(Cycles cycles=Cycles(0)) const
Determine the tick when a cycle begins, by default the current one, but the argument also enables the...
bool is_waiting(ThreadContext *tc)
Determine if the given thread context is currently waiting on a futex wait operation on any of the fu...
virtual std::string name() const
OutputStream * findOrCreate(const std::string &name, bool binary=false)
std::ostream * stream() const
Get the output underlying output stream.
Addr instAddr() const
Returns the memory address of the instruction this PC points to.
A Packet is used to encapsulate a transfer between two objects in the memory system (e....
RequestPtr req
A pointer to the original request.
Ports are used to interface objects to each other.
bool isConnected() const
Is this port currently connected to a peer?
void takeOverFrom(Port *old)
A utility function to make it easier to swap out ports.
void set(enums::PwrState p)
Change the power state of this object to the power state p.
enums::PwrState get() const
ProbePointArg generates a point for the class of Arg.
void assignThreadContext(ContextID context_id)
Static instruction class for unknown (illegal) instructions.
static Root * root()
Use this function to get a pointer to the single Root object in the simulation.
const State & state() const
bool isDirectCtrl() const
bool isUncondCtrl() const
bool isIndirectCtrl() const
bool isLastMicroop() const
void registerThreadContext(ThreadContext *tc)
void replaceThreadContext(ThreadContext *tc, ContextID context_id)
ThreadContext is the external interface to all thread state for anything outside of the CPU.
virtual BaseISA * getIsaPtr() const =0
virtual void takeOverFrom(ThreadContext *old_context)=0
virtual CheckerCPU * getCheckerCpuPtr()=0
@ Suspended
Temporarily inactive.
virtual const PCStateBase & pcState() const =0
virtual int threadId() const =0
virtual BaseMMU * getMMUPtr()=0
virtual Process * getProcessPtr()=0
virtual ContextID contextId() const =0
const_iterator findNearest(Addr addr, Addr &next_addr) const
Find the nearest symbol equal to or less than the supplied address (e.g., the label for the enclosing...
Derived & subname(off_type index, const std::string &name)
Set the subfield name for the given index, and marks this stat to print at the end of simulation.
Derived & precision(int _precision)
Set the precision and marks this stat to print at the end of simulation.
Derived & flags(Flags _flags)
Set the flags and marks this stat to print at the end of simulation.
Derived & prereq(const Stat &prereq)
Set the prerequisite stat and marks this stat to print at the end of simulation.
Derived & functor(const T &func)
Derived & init(size_type size)
Set this vector to have the given size.
ClockedObject declaration and implementation.
#define ADD_STAT(n,...)
Convenience macro to add a stat to a statistics group.
static constexpr T roundDown(const T &val, const U &align)
This function is used to align addresses in memory.
void deschedule(Event &event)
bool scheduled() const
Determine if the current event is scheduled.
void schedule(Event &event, Tick when)
#define fatal_if(cond,...)
Conditional fatal macro that checks the supplied condition and only causes a fatal error if the condi...
#define fatal(...)
This implements a cprintf based fatal() function.
const Params & params() const
ProbeManager * getProbeManager()
Get the probe manager for this object.
virtual Port & getPort(const std::string &if_name, PortID idx=InvalidPortID)
Get a port with a given name and index.
virtual void regStats()
Callback to set stat parameters.
SymbolTable debugSymbolTable
Global unified debugging symbol table (for target).
std::unique_ptr< PMU > PMUUPtr
const FlagsType pdf
Print the percent of the total that this entry represents.
const FlagsType nozero
Don't print if this is zero.
const FlagsType total
Print the total.
double Counter
All counters are of 64-bit values.
const FlagsType dist
Print the distribution.
Copyright (c) 2024 - Pranith Kumar Copyright (c) 2020 Inria All rights reserved.
std::shared_ptr< FaultBase > Fault
int16_t ThreadID
Thread index/ID type.
std::shared_ptr< Request > RequestPtr
statistics::Value & hostSeconds
static const OpClass Num_OpClasses
void cprintf(const char *format, const Args &...args)
Tick curTick()
The universal simulation clock.
std::ostream CheckpointOut
uint64_t Addr
Address type This will probably be moved somewhere else in the near future.
int16_t PortID
Port index/ID type, and a symbolic name for an invalid port id.
bool FullSystem
The FullSystem variable can be used to determine the current mode of simulation.
uint64_t Tick
Tick count type.
int maxThreadsPerCPU
The maximum number of active threads across all cpus.
std::string csprintf(const char *format, const Args &...args)
constexpr decltype(nullptr) NoFault
void ccprintf(cp::Print &print)
Declarations of a non-full system Page Table.
#define UNSERIALIZE_SCALAR(scalar)
#define SERIALIZE_SCALAR(scalar)
bool doMonitor(PacketPtr pkt)
BaseCPUStats(statistics::Group *parent)
statistics::Scalar numInsts
statistics::Scalar numCycles
statistics::Vector committedInstType
void updateComCtrlStats(const StaticInstPtr staticInst)
statistics::Vector committedControl
statistics::Scalar numInsts
CommitCPUStats(statistics::Group *parent, int thread_id)
statistics::Scalar numIntRegReads
statistics::Scalar numVecPredRegReads
statistics::Scalar dcacheStallCycles
statistics::Scalar numCCRegReads
statistics::Scalar numIntRegWrites
statistics::Formula numStoreInsts
statistics::Scalar numMemRefs
statistics::Scalar numMiscRegReads
statistics::Scalar numCCRegWrites
statistics::Scalar numVecPredRegWrites
statistics::Scalar numFpAluAccesses
statistics::Scalar numIntAluAccesses
ExecuteCPUStats(statistics::Group *parent, int thread_id)
statistics::Scalar numVecRegWrites
statistics::Scalar numFpRegReads
statistics::Scalar numVecRegReads
statistics::Scalar numMiscRegWrites
statistics::Scalar numLoadInsts
statistics::Formula fetchRate
statistics::Formula branchRate
statistics::Scalar numBranches
FetchCPUStats(statistics::Group *parent, int thread_id)
statistics::Scalar icacheStallCycles
Global CPU statistics that are merged into the Root object.
statistics::Formula hostInstRate
statistics::Value simInsts
GlobalStats(statistics::Group *parent)
statistics::Formula hostOpRate
const std::string & name()