# HG changeset patch
# User Korey Sewell <[email protected]>
# Date 1236007005 18000
# Node ID 8340f7c1862ea4bcb29e6e018dbdb8ae19b282ce
# Parent  5e7899a2692f4b048620400643d320817af20624
use numCycles instead of simTicks to determine CPI stat in InOrder

diff -r 5e7899a2692f -r 8340f7c1862e src/cpu/inorder/cpu.cc
--- a/src/cpu/inorder/cpu.cc    Sat Feb 28 20:14:22 2009 -0500
+++ b/src/cpu/inorder/cpu.cc    Mon Mar 02 10:16:45 2009 -0500
@@ -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();
 }
_______________________________________________
m5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/m5-dev

Reply via email to