use numCycles instead of simTicks to determine CPI stat in InOrder
authorKorey Sewell <ksewell@umich.edu>
Wed, 4 Mar 2009 18:16:48 +0000 (13:16 -0500)
committerKorey Sewell <ksewell@umich.edu>
Wed, 4 Mar 2009 18:16:48 +0000 (13:16 -0500)
src/cpu/inorder/cpu.cc

index c22dd115487a0d22829c6e835053e318d0ecf864..94a6efce90555df7490df20cceea6525d835da43 100644 (file)
@@ -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();
 }