30a31
> #include "systemc/core/module.hh"
36c37,41
< sc_export_base::sc_export_base(const char *n) : sc_object(n) {}
---
> sc_export_base::sc_export_base(const char *n) : sc_object(n)
> {
> ::sc_gem5::Module *m = ::sc_gem5::currentModule();
> m->exports.push_back(this);
> }