summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKorey Sewell <ksewell@umich.edu>2009-03-04 13:16:48 -0500
committerKorey Sewell <ksewell@umich.edu>2009-03-04 13:16:48 -0500
commite4aa4ca40c0a5ab5946914cc997e0a9bd288c861 (patch)
treecbe21f73f336fe523485d2747062786e0d6905c4 /src
parent9ee8e685a46ccd5314b93fec178cd73957c5b406 (diff)
downloadgem5-e4aa4ca40c0a5ab5946914cc997e0a9bd288c861.tar.xz
use numCycles instead of simTicks to determine CPI stat in InOrder
Diffstat (limited to 'src')
-rw-r--r--src/cpu/inorder/cpu.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cpu/inorder/cpu.cc b/src/cpu/inorder/cpu.cc
index c22dd1154..94a6efce9 100644
--- a/src/cpu/inorder/cpu.cc
+++ b/src/cpu/inorder/cpu.cc
@@ -355,7 +355,7 @@ InOrderCPU::regStats()
.name(name() + ".cpi_total")
.desc("CPI: Total CPI of All Threads")
.precision(6);
- totalCpi = simTicks / totalCommittedInsts;
+ totalCpi = numCycles / totalCommittedInsts;
ipc
.name(name() + ".ipc")
@@ -373,7 +373,7 @@ InOrderCPU::regStats()
.name(name() + ".ipc_total")
.desc("IPC: Total IPC of All Threads")
.precision(6);
- totalIpc = totalCommittedInsts / simTicks;
+ totalIpc = totalCommittedInsts / numCycles;
BaseCPU::regStats();
}