diff options
author | Korey Sewell <ksewell@umich.edu> | 2009-03-04 13:16:48 -0500 |
---|---|---|
committer | Korey Sewell <ksewell@umich.edu> | 2009-03-04 13:16:48 -0500 |
commit | e4aa4ca40c0a5ab5946914cc997e0a9bd288c861 (patch) | |
tree | cbe21f73f336fe523485d2747062786e0d6905c4 /src/cpu | |
parent | 9ee8e685a46ccd5314b93fec178cd73957c5b406 (diff) | |
download | gem5-e4aa4ca40c0a5ab5946914cc997e0a9bd288c861.tar.xz |
use numCycles instead of simTicks to determine CPI stat in InOrder
Diffstat (limited to 'src/cpu')
-rw-r--r-- | src/cpu/inorder/cpu.cc | 4 |
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(); } |