misc: Expose the listener loopbackOnly function to python.
authorGabe Black <gabeblack@google.com>
Fri, 5 May 2017 23:52:21 +0000 (16:52 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 9 May 2017 16:44:30 +0000 (16:44 +0000)
Change-Id: Ibb405af54a46a93706a6f476b5314491e84be0c8
Reviewed-on: https://gem5-review.googlesource.com/3081
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Andreas Sandberg <andreas.sandberg@arm.com>

src/python/m5/simulate.py
src/python/pybind11/core.cc

index b5544cf5dd66405f9b316bd7d4be44a870b5d9a6..c47dd22505cb6257d2120490078efa358a779759 100644 (file)
@@ -368,4 +368,5 @@ def fork(simout="%(parent)s.f%(fork_seq)i"):
     return pid
 
 from _m5.core import disableAllListeners, listenersDisabled
+from _m5.core import listenersLoopbackOnly
 from _m5.core import curTick
index 9e97df2b733b9947e38f37f864beec1d2ba7fb0a..a11ad7f6b3aaab023d87b4f55a6a9d1e332becc6 100644 (file)
@@ -234,6 +234,7 @@ pybind_init_core(py::module &m_native)
 
         .def("disableAllListeners", &ListenSocket::disableAll)
         .def("listenersDisabled", &ListenSocket::allDisabled)
+        .def("listenersLoopbackOnly", &ListenSocket::loopbackOnly)
         .def("seedRandom", [](uint64_t seed) { random_mt.init(seed); })