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/ext/core/sc_module.hh | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/systemc/ext/core') 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"; } -- cgit v1.2.3