diff options
Diffstat (limited to 'src/cpu/o3/cpu.cc')
-rw-r--r-- | src/cpu/o3/cpu.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc index 091c3a6ad..c4bc13fb4 100644 --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -568,7 +568,7 @@ FullO3CPU<Impl>::tick() assert(drainState() != DrainState::Drained); ++numCycles; - ppCycles->notify(1); + updateCycleCounters(BaseCPU::CPU_STATE_ON); // activity = false; @@ -796,6 +796,8 @@ FullO3CPU<Impl>::haltContext(ThreadID tid) deactivateThread(tid); removeThread(tid); + + updateCycleCounters(BaseCPU::CPU_STATE_SLEEP); } template <class Impl> @@ -1771,7 +1773,6 @@ FullO3CPU<Impl>::wakeCPU() --cycles; idleCycles += cycles; numCycles += cycles; - ppCycles->notify(cycles); } schedule(tickEvent, clockEdge()); |