Use proper cycles for IPC and CPI equations.
authorKevin Lim <ktlim@umich.edu>
Sun, 22 Apr 2007 19:11:54 +0000 (15:11 -0400)
committerKevin Lim <ktlim@umich.edu>
Sun, 22 Apr 2007 19:11:54 +0000 (15:11 -0400)
src/cpu/o3/cpu.cc:
    Use proper cycles for these equations.

--HG--
extra : convert_revision : cd49410eed978c789d788e80462abed6cb89fbae

src/cpu/o3/cpu.cc

index 2e6a43f9c6342a9ba31fc5e9c9ade77834089bcc..a775b66d51b09f8a6cdcfb99b0f1ffd2b7b29480 100644 (file)
@@ -384,25 +384,25 @@ FullO3CPU<Impl>::fullCPURegStats()
         .name(name() + ".cpi")
         .desc("CPI: Cycles Per Instruction")
         .precision(6);
-    cpi = simTicks / committedInsts;
+    cpi = numCycles / committedInsts;
 
     totalCpi
         .name(name() + ".cpi_total")
         .desc("CPI: Total CPI of All Threads")
         .precision(6);
-    totalCpi = simTicks / totalCommittedInsts;
+    totalCpi = numCycles / totalCommittedInsts;
 
     ipc
         .name(name() + ".ipc")
         .desc("IPC: Instructions Per Cycle")
         .precision(6);
-    ipc =  committedInsts / simTicks;
+    ipc =  committedInsts / numCycles;
 
     totalIpc
         .name(name() + ".ipc_total")
         .desc("IPC: Total IPC of All Threads")
         .precision(6);
-    totalIpc =  totalCommittedInsts / simTicks;
+    totalIpc =  totalCommittedInsts / numCycles;
 
 }