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:
@@ -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)
|
||||
;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user