diff options
author | Gabe Black <gabeblack@google.com> | 2018-11-07 17:34:11 -0800 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-11-12 22:05:00 +0000 |
commit | 3fb91393a67515a008dae0346689ffffe5180ab8 (patch) | |
tree | cc5ff91879a416fbb80eea3e4a43da8ca0c63276 /src/python/pybind11 | |
parent | 8c8a2f12f2f8b419723e7af8e3851033c41b7b51 (diff) | |
download | gem5-3fb91393a67515a008dae0346689ffffe5180ab8.tar.xz |
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>
Diffstat (limited to 'src/python/pybind11')
-rw-r--r-- | src/python/pybind11/core.cc | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/python/pybind11/core.cc b/src/python/pybind11/core.cc index 41eeed200..57fcb94cb 100644 --- a/src/python/pybind11/core.cc +++ b/src/python/pybind11/core.cc @@ -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) ; |