summaryrefslogtreecommitdiff
path: root/src/systemc/core/sensitivity.cc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-14 20:19:53 -0700
committerGabe Black <gabeblack@google.com>2018-10-09 21:50:23 +0000
commitf8126c66ce65a2770ce7c524d7eb0becfbb11d4b (patch)
tree5694e12131c3cd6423f7a370acc8e3e24c5d2173 /src/systemc/core/sensitivity.cc
parentd737358ac643ff5bdc3984138cc3ae08c7b57ff7 (diff)
downloadgem5-f8126c66ce65a2770ce7c524d7eb0becfbb11d4b.tar.xz
systemc: Differentiate between notifying methods and threads.
The Accellera implementation notifies all types of method sensitivities first, and then notifies all the ones for threads. Change-Id: I5eda75958675ba518f008852148030e032f70d83 Reviewed-on: https://gem5-review.googlesource.com/c/12807 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/sensitivity.cc')
-rw-r--r--src/systemc/core/sensitivity.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/systemc/core/sensitivity.cc b/src/systemc/core/sensitivity.cc
index 740090cd9..2bd0b5fcb 100644
--- a/src/systemc/core/sensitivity.cc
+++ b/src/systemc/core/sensitivity.cc
@@ -31,6 +31,7 @@
#include "systemc/core/event.hh"
#include "systemc/core/port.hh"
+#include "systemc/core/process.hh"
#include "systemc/core/scheduler.hh"
#include "systemc/ext/core/sc_export.hh"
#include "systemc/ext/core/sc_interface.hh"
@@ -57,6 +58,12 @@ Sensitivity::notify(Event *e)
return notifyWork(e);
}
+bool
+Sensitivity::ofMethod()
+{
+ return process->procKind() == sc_core::SC_METHOD_PROC_;
+}
+
/*
* Dynamic vs. static sensitivity.