summaryrefslogtreecommitdiff
path: root/src/systemc/core/sc_sensitive.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-29 16:46:52 -0700
committerGabe Black <gabeblack@google.com>2018-09-05 06:02:51 +0000
commit4bd389c9d0370d67464c2a508381abe326de3bdf (patch)
tree57fb22c26e1df3c0ebe49d406b89f6940217baa4 /src/systemc/core/sc_sensitive.cc
parentaaf0c47c972d3811314db93f0fe1ababf4c408f1 (diff)
downloadgem5-4bd389c9d0370d67464c2a508381abe326de3bdf.tar.xz
systemc: Fill out sc_process_handle and create Process classes.
The sc_process_handle class now primarily delegates to a Process object it points at. The Process object does book keeping as far as its internal state, but doesn't yet have a way to run its target function or to schedule itself or inject exceptions into its context of execution. Change-Id: I98389778abe29aa26e3e3a91bf02e6721acc8a9c Reviewed-on: https://gem5-review.googlesource.com/11613 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/sc_sensitive.cc')
-rw-r--r--src/systemc/core/sc_sensitive.cc9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/systemc/core/sc_sensitive.cc b/src/systemc/core/sc_sensitive.cc
index e182fa003..d233cda6a 100644
--- a/src/systemc/core/sc_sensitive.cc
+++ b/src/systemc/core/sc_sensitive.cc
@@ -33,6 +33,8 @@
namespace sc_core
{
+sc_sensitive::sc_sensitive() : currentProcess(nullptr) {}
+
sc_sensitive &
sc_sensitive::operator << (const sc_event &)
{
@@ -61,4 +63,11 @@ sc_sensitive::operator << (sc_event_finder &)
return *this;
}
+sc_sensitive &
+sc_sensitive::operator << (::sc_gem5::Process *p)
+{
+ currentProcess = p;
+ return *this;
+}
+
} // namespace sc_core