43 #ifndef __SIM_INIT_HH__
44 #define __SIM_INIT_HH__
46 #include "pybind11/pybind11.h"
87 void (*init_func)(pybind11::module &),
91 void (*init_func)(pybind11::module &));
99 void init(pybind11::module &
m);
105 static std::map<std::string, EmbeddedPyBind *> &
getMap();
109 int m5Main(
int argc,
char **argv);
110 PyMODINIT_FUNC
initm5(
void);
112 #endif // __SIM_INIT_HH__
static std::list< EmbeddedPython * > & getList()
int m5Main(int argc, char **argv)
static EmbeddedPython * importer
void(* initFunc)(pybind11::module &)
static std::map< std::string, EmbeddedPyBind * > & getMap()
void init(pybind11::module &m)
PyObject * getCode() const
static PyObject * importerModule
EmbeddedPython(const char *filename, const char *abspath, const char *modpath, const uint8_t *code, int zlen, int len)
EmbeddedPyBind(const char *_name, void(*init_func)(pybind11::module &), const char *_base)
PyMODINIT_FUNC initm5(void)