# Node ID 1dd33bc912afc082466d31d1fd7203a769ed5ba1 # Parent 28813f821ac4d4f986e8b96132ea69e761a57eae diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc --- a/src/cpu/o3/cpu.cc +++ b/src/cpu/o3/cpu.cc @@ -746,12 +746,13 @@ deactivateThread(tid); // If this was the last thread then unschedule the tick event. - if (activeThreads.size() == 0) + if (activeThreads.size() == 0) { unscheduleTickEvent(); + lastRunningCycle = curCycle(); + _status = Idle; + } DPRINTF(Quiesce, "Suspending Context\n"); - lastRunningCycle = curCycle(); - _status = Idle; } template