summaryrefslogtreecommitdiff
path: root/src/sim/stat_control.cc
diff options
context:
space:
mode:
authorSascha Bischoff <sascha.bischoff@arm.com>2013-01-07 16:56:36 -0500
committerSascha Bischoff <sascha.bischoff@arm.com>2013-01-07 16:56:36 -0500
commit8a767885d658e4c52e1f81932426233aa1975ed8 (patch)
treeb133f49c17312404c9f4aa640b74538b79fc0c32 /src/sim/stat_control.cc
parent9f15510c2c0c346faf107a47486cc06d4921e7c9 (diff)
downloadgem5-8a767885d658e4c52e1f81932426233aa1975ed8.tar.xz
stats: Fix swig wrapping for Tick in stats
Tick was not correctly wrapped for the stats system, and therefore it was not possible to configure the stats dumping from the python scripts without defining Ticks as long long. This patch fixes the wrapping of Tick by copying the typemap of uint64_t to Tick.
Diffstat (limited to 'src/sim/stat_control.cc')
-rw-r--r--src/sim/stat_control.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/stat_control.cc b/src/sim/stat_control.cc
index 2b47ded8d..715bb54aa 100644
--- a/src/sim/stat_control.cc
+++ b/src/sim/stat_control.cc
@@ -253,7 +253,7 @@ schedStatEvent(bool dump, bool reset, Tick when, Tick repeat)
}
void
-periodicStatDump(uint64_t period)
+periodicStatDump(Tick period)
{
/*
* If the period is set to 0, then we do not want to dump periodically,