projects
/
gem5.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9ee8e68
)
use numCycles instead of simTicks to determine CPI stat in InOrder
author
Korey Sewell
<ksewell@umich.edu>
Wed, 4 Mar 2009 18:16:48 +0000
(13:16 -0500)
committer
Korey Sewell
<ksewell@umich.edu>
Wed, 4 Mar 2009 18:16:48 +0000
(13:16 -0500)
src/cpu/inorder/cpu.cc
patch
|
blob
|
history
diff --git
a/src/cpu/inorder/cpu.cc
b/src/cpu/inorder/cpu.cc
index c22dd115487a0d22829c6e835053e318d0ecf864..94a6efce90555df7490df20cceea6525d835da43 100644
(file)
--- 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 =
simTick
s / totalCommittedInsts;
+ totalCpi =
numCycle
s / 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 /
simTick
s;
+ totalIpc = totalCommittedInsts /
numCycle
s;
BaseCPU::regStats();
}