From: Korey Sewell Date: Wed, 4 Mar 2009 18:16:48 +0000 (-0500) Subject: use numCycles instead of simTicks to determine CPI stat in InOrder X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=e4aa4ca40c0a5ab5946914cc997e0a9bd288c861;p=gem5.git use numCycles instead of simTicks to determine CPI stat in InOrder --- 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(); }