From 8a767885d658e4c52e1f81932426233aa1975ed8 Mon Sep 17 00:00:00 2001 From: Sascha Bischoff Date: Mon, 7 Jan 2013 16:56:36 -0500 Subject: 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. --- src/sim/stat_control.cc | 2 +- src/sim/stat_control.hh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src/sim') 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, diff --git a/src/sim/stat_control.hh b/src/sim/stat_control.hh index 9731d87cf..1a0fcb35b 100644 --- a/src/sim/stat_control.hh +++ b/src/sim/stat_control.hh @@ -74,7 +74,7 @@ void schedStatEvent(bool dump, bool reset, Tick when = curTick(), * temporal trends in the data. * @param period The period at which the dumping should occur. */ -void periodicStatDump(uint64_t period = 0); +void periodicStatDump(Tick period = 0); } // namespace Stats #endif // __SIM_STAT_CONTROL_HH__ -- cgit v1.2.3