summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-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); })