summaryrefslogtreecommitdiff
path: root/src/sim/init.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/sim/init.cc')
-rw-r--r--src/sim/init.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/sim/init.cc b/src/sim/init.cc
index 804389dae..66eddfb6f 100644
--- a/src/sim/init.cc
+++ b/src/sim/init.cc
@@ -200,3 +200,10 @@ m5Main(int argc, char **argv)
return 0;
}
+
+PyMODINIT_FUNC
+initm5(void)
+{
+ initM5Python();
+ PyImport_ImportModule(PyCC("m5"));
+}