summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2017-05-05 16:52:21 -0700
committerGabe Black <gabeblack@google.com>2017-05-09 16:44:30 +0000
commit2d5296ce1974fe1b16ba62dda3f91dd25cc199e1 (patch)
tree62f172ad99298d094c7bdea31220789ebf4814db
parentf2b6dc8d2701dc8da5d365a73336d4a8a3dd3478 (diff)
downloadgem5-2d5296ce1974fe1b16ba62dda3f91dd25cc199e1.tar.xz
misc: Expose the listener loopbackOnly function to python.
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>
-rw-r--r--src/python/m5/simulate.py1
-rw-r--r--src/python/pybind11/core.cc1
2 files changed, 2 insertions, 0 deletions
diff --git a/src/python/m5/simulate.py b/src/python/m5/simulate.py
index b5544cf5d..c47dd2250 100644
--- a/src/python/m5/simulate.py
+++ b/src/python/m5/simulate.py
@@ -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
diff --git a/src/python/pybind11/core.cc b/src/python/pybind11/core.cc
index 9e97df2b7..a11ad7f6b 100644
--- a/src/python/pybind11/core.cc
+++ b/src/python/pybind11/core.cc
@@ -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); })