summaryrefslogtreecommitdiff
path: root/src/systemc/core/module.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-07-19 15:51:24 -0700
committerGabe Black <gabeblack@google.com>2018-09-11 21:40:48 +0000
commita6c0e4623c6bb1077ca43c66663e039efb221bda (patch)
tree32054538eab1993856c1c9909c1a3e7c877d2092 /src/systemc/core/module.hh
parent544b136cbfbba53b6d97b763445e9f9b25eb2a7f (diff)
downloadgem5-a6c0e4623c6bb1077ca43c66663e039efb221bda.tar.xz
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 <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/module.hh')
-rw-r--r--src/systemc/core/module.hh5
1 files changed, 5 insertions, 0 deletions
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 <cassert>
+#include <set>
#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<Module *> allModules;
+
} // namespace sc_gem5
#endif //__SYSTEMC_CORE_MODULE_HH__