diff options
Diffstat (limited to 'src/sim/main.cc')
-rw-r--r-- | src/sim/main.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/sim/main.cc b/src/sim/main.cc index a77c5f578..168e4390f 100644 --- a/src/sim/main.cc +++ b/src/sim/main.cc @@ -54,11 +54,15 @@ main(int argc, char **argv) Py_SetProgramName(argv[0]); #endif + // Register native modules with Python's init system before + // initializing the interpreter. + registerNativeModules(); + // initialize embedded Python interpreter Py_Initialize(); // Initialize the embedded m5 python library - ret = initM5Python(); + ret = EmbeddedPython::initAll(); if (ret == 0) { // start m5 |