diff options
author | Gabe Black <gabeblack@google.com> | 2018-07-20 19:23:58 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-09-11 21:44:35 +0000 |
commit | 3224bc355464bfa6bac924e6fa6d6d507700e3ff (patch) | |
tree | f35c31b2748ea0cebb4ff303e642371f76e14ede /src/systemc/core/kernel.hh | |
parent | 81b6ef4478c014a77bd0253d316ab3d349ad8ac8 (diff) | |
download | gem5-3224bc355464bfa6bac924e6fa6d6d507700e3ff.tar.xz |
systemc: Make some functions of the kernel static.
This makes it possible to call them without having to have a kernel
instance available. The kernel is a singleton anyway, so there should
only ever be a single instance of any of these values.
Change-Id: I3610d60cc72e9f3114997fe63db94b96ccaac3cd
Reviewed-on: https://gem5-review.googlesource.com/12041
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/kernel.hh')
-rw-r--r-- | src/systemc/core/kernel.hh | 17 |
1 files changed, 6 insertions, 11 deletions
diff --git a/src/systemc/core/kernel.hh b/src/systemc/core/kernel.hh index 15641c510..b9a37d00a 100644 --- a/src/systemc/core/kernel.hh +++ b/src/systemc/core/kernel.hh @@ -56,21 +56,16 @@ class Kernel : public SimObject void t0Handler(); - sc_core::sc_status status() { return _status; } - void status(sc_core::sc_status s) { _status = s; } + static sc_core::sc_status status(); + static void status(sc_core::sc_status s); - void stop(); + static void stop(); - bool startOfSimulationComplete() { return _startComplete; } - bool endOfSimulationComplete() { return _endComplete; } + static bool startOfSimulationComplete(); + static bool endOfSimulationComplete(); private: - bool _stopAfterCallbacks; - void stopWork(); - - bool _startComplete; - bool _endComplete; - sc_core::sc_status _status; + static void stopWork(); EventWrapper<Kernel, &Kernel::t0Handler> t0Event; }; |