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 <srikant.bharadwaj@amd.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>
This commit is contained in:
Gabe Black
2018-11-07 17:34:11 -08:00
parent 8c8a2f12f2
commit 3fb91393a6
4 changed files with 46 additions and 19 deletions

View File

@@ -245,7 +245,11 @@ pybind_init_core(py::module &m_native)
.def("seedRandom", [](uint64_t seed) { random_mt.init(seed); })
.def("fixClockFrequency", &fixClockFrequency)
.def("clockFrequencyFixed", &clockFrequencyFixed)
.def("setClockFrequency", &setClockFrequency)
.def("getClockFrequency", &getClockFrequency)
.def("curTick", curTick)
;