diff options
author | Ali Saidi <saidi@eecs.umich.edu> | 2007-09-28 13:21:30 -0400 |
---|---|---|
committer | Ali Saidi <saidi@eecs.umich.edu> | 2007-09-28 13:21:30 -0400 |
commit | 887cd6a273f8777580fc3a046090c6b5244e9cad (patch) | |
tree | 8f053cad51065661938a4e12f7d82ebac4b4cfc8 /src/cpu/o3 | |
parent | 58c448ced510835631527fa64a0ebd0b497b525b (diff) | |
download | gem5-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.cc | 3 |
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()); } |