35d34
< #include "python/pybind11/pybind.hh"
39a39
> #include "systemc/core/python.hh"
116,117c116,117
< void
< systemc_pybind(pybind11::module &m_internal)
---
>
> struct InstallScMain : public ::sc_gem5::PythonInitFunc
119,122c119,124
< pybind11::module m = m_internal.def_submodule("systemc");
< m.def("sc_main", &sc_main);
< }
< EmbeddedPyBind embed_("systemc", &systemc_pybind);
---
> void
> run(pybind11::module &systemc) override
> {
> systemc.def("sc_main", &sc_main);
> }
> } installScMain;