summaryrefslogtreecommitdiff
path: root/src/systemc/core/process_types.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_types.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_types.hh')
-rw-r--r--src/systemc/core/process_types.hh11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/systemc/core/process_types.hh b/src/systemc/core/process_types.hh
index 5fbab8038..6f603e73f 100644
--- a/src/systemc/core/process_types.hh
+++ b/src/systemc/core/process_types.hh
@@ -39,7 +39,9 @@ namespace sc_gem5
class Method : public Process
{
public:
- Method(const char *name, ProcessFuncWrapper *func) : Process(name, func) {}
+ Method(const char *name, ProcessFuncWrapper *func, bool internal=false) :
+ Process(name, func, internal)
+ {}
const char *kind() const override { return "sc_method_process"; }
@@ -53,8 +55,8 @@ class Method : public Process
class Thread : public Process
{
public:
- Thread(const char *name, ProcessFuncWrapper *func) :
- Process(name, func), ctx(nullptr)
+ Thread(const char *name, ProcessFuncWrapper *func, bool internal=false) :
+ Process(name, func, internal), ctx(nullptr)
{}
~Thread() { delete ctx; }
@@ -103,7 +105,8 @@ class Thread : public Process
class CThread : public Thread
{
public:
- CThread(const char *name, ProcessFuncWrapper *func) : Thread(name, func)
+ CThread(const char *name, ProcessFuncWrapper *func, bool internal=false) :
+ Thread(name, func, internal)
{
// We'll be in the initialization list now, but we shouldn't be.
popListNode();