summaryrefslogtreecommitdiff
path: root/src/python
diff options
context:
space:
mode:
Diffstat (limited to 'src/python')
-rw-r--r--src/python/m5/core.py13
-rw-r--r--src/python/pybind11/core.cc10
2 files changed, 23 insertions, 0 deletions
diff --git a/src/python/m5/core.py b/src/python/m5/core.py
index 4c94353aa..c8c57fcef 100644
--- a/src/python/m5/core.py
+++ b/src/python/m5/core.py
@@ -1,3 +1,15 @@
+# Copyright (c) 2019 ARM Limited
+# All rights reserved.
+#
+# The license below extends only to copyright in the software and shall
+# not be construed as granting a license to any other intellectual
+# property including but not limited to intellectual property relating
+# to a hardware implementation of the functionality of the software
+# licensed hereunder. You may use the software subject to the license
+# terms below provided that you ensure that this notice is replicated
+# unmodified and in its entirety in all distributions of the software,
+# modified or unmodified, in source code or in binary form.
+#
# Copyright (c) 2008 The Hewlett-Packard Development Company
# All rights reserved.
#
@@ -30,3 +42,4 @@ from __future__ import print_function
from __future__ import absolute_import
from _m5.core import setOutputDir
+from _m5.loader import setInterpDir
diff --git a/src/python/pybind11/core.cc b/src/python/pybind11/core.cc
index 3523c0639..2cfaecd45 100644
--- a/src/python/pybind11/core.cc
+++ b/src/python/pybind11/core.cc
@@ -53,6 +53,7 @@
#include "base/addr_range.hh"
#include "base/inet.hh"
+#include "base/loader/elf_object.hh"
#include "base/logging.hh"
#include "base/random.hh"
#include "base/socket.hh"
@@ -202,6 +203,14 @@ init_net(py::module &m_native)
;
}
+static void
+init_loader(py::module &m_native)
+{
+ py::module m = m_native.def_submodule("loader");
+
+ m.def("setInterpDir", &setInterpDir);
+}
+
void
pybind_init_core(py::module &m_native)
{
@@ -281,5 +290,6 @@ pybind_init_core(py::module &m_native)
init_serialize(m_native);
init_range(m_native);
init_net(m_native);
+ init_loader(m_native);
}