diff options
author | Gabe Black <gabeblack@google.com> | 2018-09-22 06:50:27 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 00:29:55 +0000 |
commit | 6ab054bf2fde015b1bab9c20b8ca3faf9717a069 (patch) | |
tree | 81e011898b77e5cead3abd8ff20fa14349c1b7e3 /src/systemc/core | |
parent | 18c83f2333e6142c16ffb074ce037c59bf7a5416 (diff) | |
download | gem5-6ab054bf2fde015b1bab9c20b8ca3faf9717a069.tar.xz |
systemc: Add a warning to sc_interface::default_event.
The default implementation returns a dummy event, but in the Accellera
implementation it also prints a warning. Print a warning as well, so
that the output matches for the tests.
Change-Id: I1ae2755685515c3fe538f4075af396e963cf155d
Reviewed-on: https://gem5-review.googlesource.com/c/12970
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc/core')
-rw-r--r-- | src/systemc/core/sc_interface.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/systemc/core/sc_interface.cc b/src/systemc/core/sc_interface.cc index 171422d31..a23612683 100644 --- a/src/systemc/core/sc_interface.cc +++ b/src/systemc/core/sc_interface.cc @@ -30,6 +30,7 @@ #include "base/logging.hh" #include "systemc/ext/core/sc_event.hh" #include "systemc/ext/core/sc_interface.hh" +#include "systemc/ext/utils/sc_report_handler.hh" namespace sc_core { @@ -37,6 +38,7 @@ namespace sc_core const sc_event & sc_interface::default_event() const { + SC_REPORT_WARNING("(W116) channel doesn't have a default event", ""); static sc_event dummy; return dummy; } |