sim ticks should be the number of elapsed ticks, not curTick
authorNathan Binkert <binkertn@umich.edu>
Fri, 23 Jul 2004 04:24:24 +0000 (00:24 -0400)
committerNathan Binkert <binkertn@umich.edu>
Fri, 23 Jul 2004 04:24:24 +0000 (00:24 -0400)
--HG--
extra : convert_revision : 709753255e3e0425940b49e5df0271105935f3d4

sim/stat_control.cc

index 9a4313a614cac0aaf8693db2c55ed5282f09ca93..8a8eaa7907e3926fd9ba69788c30aa9f004ed912 100644 (file)
@@ -80,6 +80,12 @@ statElapsedTime()
     return elapsed();
 }
 
+Tick
+statElapsedTicks()
+{
+    return curTick - startTick;
+}
+
 SimTicksReset simTicksReset;
 
 void
@@ -105,7 +111,7 @@ InitSimStats()
         ;
 
     simTicks
-        .scalar(curTick)
+        .functor(statElapsedTicks)
         .name("sim_ticks")
         .desc("Number of ticks simulated")
         ;