summaryrefslogtreecommitdiff
path: root/sim
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2004-07-23 00:24:24 -0400
committerNathan Binkert <binkertn@umich.edu>2004-07-23 00:24:24 -0400
commit75a2b149eed1dc9dc9954f32b3a91ee241dc7fca (patch)
tree1aebcd45da7621b9c1c4dbc6c0f25ac724f500c2 /sim
parent4f8612e0cf105dc69229d5fce71b4747586e68fd (diff)
downloadgem5-75a2b149eed1dc9dc9954f32b3a91ee241dc7fca.tar.xz
sim ticks should be the number of elapsed ticks, not curTick
--HG-- extra : convert_revision : 709753255e3e0425940b49e5df0271105935f3d4
Diffstat (limited to 'sim')
-rw-r--r--sim/stat_control.cc8
1 files changed, 7 insertions, 1 deletions
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")
;