Go to the documentation of this file.
41 #ifndef __SIM_INIT_HH__
42 #define __SIM_INIT_HH__
44 #include "pybind11/pybind11.h"
85 void (*init_func)(pybind11::module &),
89 void (*init_func)(pybind11::module &));
91 #if PY_MAJOR_VERSION >= 3
101 void init(pybind11::module &
m);
107 static std::map<std::string, EmbeddedPyBind *> &
getMap();
112 int m5Main(
int argc,
char **argv);
114 #endif // __SIM_INIT_HH__
EmbeddedPyBind(const char *_name, void(*init_func)(pybind11::module &), const char *_base)
static PyObject * importerModule
EmbeddedPython(const char *filename, const char *abspath, const char *modpath, const uint8_t *code, int zlen, int len)
static std::map< std::string, EmbeddedPyBind * > & getMap()
int m5Main(int argc, char **argv)
void(* initFunc)(pybind11::module &)
static EmbeddedPython * importer
void init(pybind11::module &m)
PyObject * getCode() const
void registerNativeModules()
static std::list< EmbeddedPython * > & getList()
Generated on Wed Sep 30 2020 14:02:14 for gem5 by doxygen 1.8.17