summaryrefslogtreecommitdiff
path: root/src/systemc/core/process.hh
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-09-05 19:28:44 -0700
committerGabe Black <gabeblack@google.com>2018-10-09 21:38:23 +0000
commit5ed90fffb6bdbbd5fe2316687faff05f641d6692 (patch)
tree842b96779ee67fec12d7ba48a017791b02cf117d /src/systemc/core/process.hh
parentdee485ff6779ef81b8d26c68041ded4065fb1402 (diff)
downloadgem5-5ed90fffb6bdbbd5fe2316687faff05f641d6692.tar.xz
systemc: Warn if a process is dont_initialize with no static sensitivieis.
Change-Id: I4db64f42872a6fb459faa401abdad3f168297347 Reviewed-on: https://gem5-review.googlesource.com/c/12599 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core/process.hh')
-rw-r--r--src/systemc/core/process.hh8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/systemc/core/process.hh b/src/systemc/core/process.hh
index d28d46396..4b43e1b7b 100644
--- a/src/systemc/core/process.hh
+++ b/src/systemc/core/process.hh
@@ -336,8 +336,11 @@ class Process : public ::sc_core::sc_process_b, public ListNode
void lastReport(::sc_core::sc_report *report);
::sc_core::sc_report *lastReport() const;
+ bool hasStaticSensitivities() { return !staticSensitivities.empty(); }
+ bool internal() { return _internal; }
+
protected:
- Process(const char *name, ProcessFuncWrapper *func);
+ Process(const char *name, ProcessFuncWrapper *func, bool internal=false);
static Process *_newest;
@@ -354,6 +357,9 @@ class Process : public ::sc_core::sc_process_b, public ListNode
ProcessFuncWrapper *func;
sc_core::sc_curr_proc_kind _procKind;
+
+ bool _internal;
+
bool _needsStart;
bool _dynamic;
bool _isUnwinding;