From a6c0e4623c6bb1077ca43c66663e039efb221bda Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 19 Jul 2018 15:51:24 -0700 Subject: systemc: Implement the various sc_module stage callbacks. This change also gets rid of the SystemC namespace which was deprecated in favor of sc_gem5. A few utility functions which check whether certain callbacks have finished were also implemented. status tracking moved from a global variable in sc_main.cc to a member of the kernel simobject. Change-Id: I50967fae9c576fbe45b1faff587aaa824857a289 Reviewed-on: https://gem5-review.googlesource.com/12033 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/core/module.hh | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/systemc/core/module.hh') diff --git a/src/systemc/core/module.hh b/src/systemc/core/module.hh index 3734e633f..696d8c570 100644 --- a/src/systemc/core/module.hh +++ b/src/systemc/core/module.hh @@ -31,6 +31,7 @@ #define __SYSTEMC_CORE_MODULE_HH__ #include +#include #include "systemc/core/object.hh" #include "systemc/ext/core/sc_module.hh" @@ -48,6 +49,8 @@ class Module public: Module(const char *name); + ~Module(); + void finish(Object *this_obj); const char *name() const { return _name; } @@ -79,6 +82,8 @@ class Module Module *currentModule(); Module *newModule(); +extern std::set allModules; + } // namespace sc_gem5 #endif //__SYSTEMC_CORE_MODULE_HH__ -- cgit v1.2.3