diff -r d4e08e83f4fa -r e69b70e188a9 src/sim/stat_control.cc --- a/src/sim/stat_control.cc Thu Dec 01 00:15:26 2011 -0800 +++ b/src/sim/stat_control.cc Thu Dec 01 00:29:45 2011 -0800 @@ -53,6 +53,7 @@ Stats::Formula simSeconds; Stats::Value simTicks; +Stats::Value simCurTicks; Stats::Value simFreq; namespace Stats { @@ -85,6 +86,12 @@ return curTick() - startTick; } +Tick +statCurTicks() +{ + return curTick(); +} + SimTicksReset simTicksReset; struct Global @@ -126,6 +133,13 @@ .desc("Number of ticks simulated") ; + simCurTicks + .functor(statCurTicks) + .name("sim_cur_ticks") + .desc("Number of ticks from beginning of simulation \ +(restored from checkpoints and never reset)") + ; + hostInstRate .name("host_inst_rate") .desc("Simulator instruction rate (inst/s)")