From 5ed90fffb6bdbbd5fe2316687faff05f641d6692 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 5 Sep 2018 19:28:44 -0700 Subject: 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 Maintainer: Gabe Black --- src/systemc/core/process.hh | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'src/systemc/core/process.hh') 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; -- cgit v1.2.3