cpu, sim: Remove unused System::totalNumInst
This counter gets augmented for every executed instruction but it is not used. It is also overlapping with the BaseCPU::numSimulatedInsts A client willing to know the number of simulated instruction should rely on the interface above. Change-Id: Ic5c805ac3b2e87bbacb365108d4060f53e044b4e Signed-off-by: Giacomo Travaglini <giacomo.travaglini@arm.com> Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/25305 Reviewed-by: Gabe Black <gabe.black@gmail.com> Reviewed-by: Jason Lowe-Power <power.jg@gmail.com> Maintainer: Jason Lowe-Power <power.jg@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com>
This commit is contained in:
@@ -766,7 +766,6 @@ BaseKvmCPU::kvmRun(Tick ticks)
|
||||
baseStats.numCycles += simCyclesExecuted;;
|
||||
stats.committedInsts += instsExecuted;
|
||||
ctrInsts += instsExecuted;
|
||||
system->totalNumInsts += instsExecuted;
|
||||
|
||||
DPRINTF(KvmRun,
|
||||
"KVM: Executed %i instructions in %i cycles "
|
||||
|
||||
@@ -866,7 +866,6 @@ Execute::doInstCommitAccounting(MinorDynInstPtr inst)
|
||||
thread->numInst++;
|
||||
thread->threadStats.numInsts++;
|
||||
cpu.stats.numInsts++;
|
||||
cpu.system->totalNumInsts++;
|
||||
|
||||
/* Act on events related to instruction counts */
|
||||
thread->comInstEventQueue.serviceEvents(thread->numInst);
|
||||
|
||||
@@ -1474,7 +1474,6 @@ FullO3CPU<Impl>::instDone(ThreadID tid, const DynInstPtr &inst)
|
||||
thread[tid]->numInst++;
|
||||
thread[tid]->threadStats.numInsts++;
|
||||
cpuStats.committedInsts[tid]++;
|
||||
system->totalNumInsts++;
|
||||
|
||||
// Check for instruction-count-based events.
|
||||
thread[tid]->comInstEventQueue.serviceEvents(thread[tid]->numInst);
|
||||
|
||||
@@ -166,7 +166,6 @@ BaseSimpleCPU::countInst()
|
||||
t_info.numInst++;
|
||||
t_info.execContextStats.numInsts++;
|
||||
|
||||
system->totalNumInsts++;
|
||||
t_info.thread->funcExeInst++;
|
||||
}
|
||||
t_info.numOp++;
|
||||
|
||||
@@ -148,8 +148,6 @@ TimingSimpleCPU::drainResume()
|
||||
|
||||
// Reschedule any power gating event (if any)
|
||||
schedulePowerGatingEvent();
|
||||
|
||||
system->totalNumInsts = 0;
|
||||
}
|
||||
|
||||
bool
|
||||
|
||||
@@ -229,7 +229,6 @@ System::System(const Params &p)
|
||||
_m5opRange(p.m5ops_base ?
|
||||
RangeSize(p.m5ops_base, 0x10000) :
|
||||
AddrRange(1, 0)), // Create an empty range if disabled
|
||||
totalNumInsts(0),
|
||||
redirectPaths(p.redirect_paths)
|
||||
{
|
||||
if (workload)
|
||||
@@ -439,12 +438,6 @@ System::getDeviceMemory(RequestorID id) const
|
||||
return deviceMemMap.at(id);
|
||||
}
|
||||
|
||||
void
|
||||
System::drainResume()
|
||||
{
|
||||
totalNumInsts = 0;
|
||||
}
|
||||
|
||||
void
|
||||
System::serialize(CheckpointOut &cp) const
|
||||
{
|
||||
|
||||
@@ -592,10 +592,7 @@ class System : public SimObject, public PCEventScope
|
||||
void serialize(CheckpointOut &cp) const override;
|
||||
void unserialize(CheckpointIn &cp) override;
|
||||
|
||||
void drainResume() override;
|
||||
|
||||
public:
|
||||
Counter totalNumInsts;
|
||||
std::map<std::pair<uint32_t,uint32_t>, Tick> lastWorkItemStarted;
|
||||
std::map<uint32_t, Stats::Histogram*> workItemStats;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user