diff options
author | Gabe Black <gabeblack@google.com> | 2018-09-05 19:28:44 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-09 21:38:23 +0000 |
commit | 5ed90fffb6bdbbd5fe2316687faff05f641d6692 (patch) | |
tree | 842b96779ee67fec12d7ba48a017791b02cf117d /src/systemc/core/process.cc | |
parent | dee485ff6779ef81b8d26c68041ded4065fb1402 (diff) | |
download | gem5-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.cc')
-rw-r--r-- | src/systemc/core/process.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/systemc/core/process.cc b/src/systemc/core/process.cc index b8eab3cde..317e8c3a2 100644 --- a/src/systemc/core/process.cc +++ b/src/systemc/core/process.cc @@ -396,11 +396,12 @@ Process::lastReport(::sc_core::sc_report *report) ::sc_core::sc_report *Process::lastReport() const { return _lastReport.get(); } -Process::Process(const char *name, ProcessFuncWrapper *func) : +Process::Process(const char *name, ProcessFuncWrapper *func, bool internal) : ::sc_core::sc_process_b(name), excWrapper(nullptr), func(func), - _needsStart(true), _isUnwinding(false), _terminated(false), - _suspended(false), _disabled(false), _syncReset(false), refCount(0), - stackSize(::Fiber::DefaultStackSize), dynamicSensitivity(nullptr) + _internal(internal), _needsStart(true), _isUnwinding(false), + _terminated(false), _suspended(false), _disabled(false), _syncReset(false), + refCount(0), stackSize(::Fiber::DefaultStackSize), + dynamicSensitivity(nullptr) { _dynamic = (::sc_core::sc_get_status() > |