diff options
author | Gabe Black <gabeblack@google.com> | 2018-07-19 15:51:24 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-09-11 21:40:48 +0000 |
commit | a6c0e4623c6bb1077ca43c66663e039efb221bda (patch) | |
tree | 32054538eab1993856c1c9909c1a3e7c877d2092 /src/systemc/ext | |
parent | 544b136cbfbba53b6d97b763445e9f9b25eb2a7f (diff) | |
download | gem5-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/ext')
-rw-r--r-- | src/systemc/ext/core/sc_module.hh | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/systemc/ext/core/sc_module.hh b/src/systemc/ext/core/sc_module.hh index 746e0c71e..7088c4e60 100644 --- a/src/systemc/ext/core/sc_module.hh +++ b/src/systemc/ext/core/sc_module.hh @@ -46,6 +46,7 @@ class sc_logic; namespace sc_gem5 { +class Kernel; class Module; class Process; struct ProcessFuncWrapper; @@ -91,6 +92,8 @@ extern const sc_bind_proxy SC_BIND_PROXY_NIL; class sc_module : public sc_object { public: + friend class ::sc_gem5::Kernel; + virtual ~sc_module(); virtual const char *kind() const { return "sc_module"; } |