From 75a2b149eed1dc9dc9954f32b3a91ee241dc7fca Mon Sep 17 00:00:00 2001 From: Nathan Binkert Date: Fri, 23 Jul 2004 00:24:24 -0400 Subject: sim ticks should be the number of elapsed ticks, not curTick --HG-- extra : convert_revision : 709753255e3e0425940b49e5df0271105935f3d4 --- sim/stat_control.cc | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'sim') diff --git a/sim/stat_control.cc b/sim/stat_control.cc index 9a4313a61..8a8eaa790 100644 --- a/sim/stat_control.cc +++ b/sim/stat_control.cc @@ -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") ; -- cgit v1.2.3