summaryrefslogtreecommitdiff
path: root/src/cpu/o3
diff options
context:
space:
mode:
authorAli Saidi <saidi@eecs.umich.edu>2007-09-28 13:21:30 -0400
committerAli Saidi <saidi@eecs.umich.edu>2007-09-28 13:21:30 -0400
commit887cd6a273f8777580fc3a046090c6b5244e9cad (patch)
tree8f053cad51065661938a4e12f7d82ebac4b4cfc8 /src/cpu/o3
parent58c448ced510835631527fa64a0ebd0b497b525b (diff)
downloadgem5-887cd6a273f8777580fc3a046090c6b5244e9cad.tar.xz
Update statistics to use cycles properly instead of ticks
--HG-- extra : convert_revision : 62911280b631ef24720f9ce701d1c19a9b8a9784
Diffstat (limited to 'src/cpu/o3')
-rw-r--r--src/cpu/o3/cpu.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cpu/o3/cpu.cc b/src/cpu/o3/cpu.cc
index 98e200944..b2b7e09c0 100644
--- a/src/cpu/o3/cpu.cc
+++ b/src/cpu/o3/cpu.cc
@@ -1409,7 +1409,8 @@ FullO3CPU<Impl>::wakeCPU()
DPRINTF(Activity, "Waking up CPU\n");
- idleCycles += (curTick - 1) - lastRunningCycle;
+ idleCycles += tickToCycles((curTick - 1) - lastRunningCycle);
+ numCycles += tickToCycles((curTick - 1) - lastRunningCycle);
tickEvent.schedule(nextCycle());
}