31a32
> #include "systemc/core/module.hh"
38c39
< _name(name), _on_the_stack(true)
---
> _name(name), _gem5_module(new SystemC::Module(name)), _on_the_stack(true)
40c41
< warn("%s: Module name not added to stack.\n", __PRETTY_FUNCTION__);
---
> _gem5_module->push();
44c45
< _name(other._name), _on_the_stack(false)
---
> _name(other._name), _gem5_module(other._gem5_module), _on_the_stack(false)
50c51
< warn("%s: Module name not removed from stack.\n", __PRETTY_FUNCTION__);
---
> _gem5_module->pop();