From 3fb91393a67515a008dae0346689ffffe5180ab8 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 7 Nov 2018 17:34:11 -0800 Subject: sim: Push the global frequency management code into C++. That makes it available when python is left out, and makes it available to c++ code without having to call back into python. Change-Id: If82e7e8eff526f2b957f84afe046e1d56fed4aa2 Reviewed-on: https://gem5-review.googlesource.com/c/14055 Reviewed-by: Srikant Bharadwaj Reviewed-by: Andreas Sandberg Reviewed-by: Jason Lowe-Power Maintainer: Andreas Sandberg --- src/sim/core.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/sim/core.hh') diff --git a/src/sim/core.hh b/src/sim/core.hh index 281fe61f5..8e464548f 100644 --- a/src/sim/core.hh +++ b/src/sim/core.hh @@ -91,7 +91,12 @@ extern Tick ps; ///< picosecond } // namespace Int } // namespace SimClock /** @} */ + +void fixClockFrequency(); +bool clockFrequencyFixed(); + void setClockFrequency(Tick ticksPerSecond); +Tick getClockFrequency(); // Ticks per second. void setOutputDir(const std::string &dir); -- cgit v1.2.3