diff options
author | Gabe Black <gabeblack@google.com> | 2018-06-15 20:02:06 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-08-28 21:16:00 +0000 |
commit | dc0b98dcdcc8f3665eac4d924060a51493862f2e (patch) | |
tree | 22245ea397d7bb494d7769d4d81c8484da17b5b4 | |
parent | a3385dadcb0ffb53da32d2690c0ea8157e2419bd (diff) | |
download | gem5-dc0b98dcdcc8f3665eac4d924060a51493862f2e.tar.xz |
systemc: Add some nonstandard, undocumented sc_report_* functions.
The tests use these functions.
Change-Id: I3cdc10d433d9388742a20fb3a97a1a3efa699e11
Reviewed-on: https://gem5-review.googlesource.com/11271
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
-rw-r--r-- | src/systemc/ext/utils/_using.hh | 2 | ||||
-rw-r--r-- | src/systemc/ext/utils/sc_report_handler.hh | 7 | ||||
-rw-r--r-- | src/systemc/utils/sc_report_handler.cc | 14 |
3 files changed, 23 insertions, 0 deletions
diff --git a/src/systemc/ext/utils/_using.hh b/src/systemc/ext/utils/_using.hh index 16b3e4031..721f40383 100644 --- a/src/systemc/ext/utils/_using.hh +++ b/src/systemc/ext/utils/_using.hh @@ -61,6 +61,8 @@ using sc_core::sc_report_handler_proc; using sc_core::sc_report_handler; using sc_core::sc_interrupt_here; using sc_core::sc_stop_here; +using sc_core::sc_report_compose_message; +using sc_core::sc_report_close_default_log; using sc_core::SC_DEFAULT_INFO_ACTIONS; using sc_core::SC_DEFAULT_WARNING_ACTIONS; using sc_core::SC_DEFAULT_ERROR_ACTIONS; diff --git a/src/systemc/ext/utils/sc_report_handler.hh b/src/systemc/ext/utils/sc_report_handler.hh index aa0b1c99d..f6e32b9ad 100644 --- a/src/systemc/ext/utils/sc_report_handler.hh +++ b/src/systemc/ext/utils/sc_report_handler.hh @@ -30,6 +30,8 @@ #ifndef __SYSTEMC_EXT_UTIL_SC_REPORT_HANDLER_HH__ #define __SYSTEMC_EXT_UTIL_SC_REPORT_HANDLER_HH__ +#include <string> + #include "sc_report.hh" // for sc_severity namespace sc_core @@ -135,6 +137,11 @@ class sc_report_handler void sc_interrupt_here(const char *msg_type, sc_severity); void sc_stop_here(const char *msg_type, sc_severity); +// Nonstandard +// From Accellera, "not documented, but available". +const std::string sc_report_compose_message(const sc_report &); +bool sc_report_close_default_log(); + } // namespace sc_core #endif //__SYSTEMC_EXT_UTIL_SC_REPORT_HANDLER_HH__ diff --git a/src/systemc/utils/sc_report_handler.cc b/src/systemc/utils/sc_report_handler.cc index 0faf995f5..1a0e0d491 100644 --- a/src/systemc/utils/sc_report_handler.cc +++ b/src/systemc/utils/sc_report_handler.cc @@ -234,4 +234,18 @@ sc_stop_here(const char *msg_type, sc_severity) warn("%s not implemented.\n", __PRETTY_FUNCTION__); } +const std::string +sc_report_compose_message(const sc_report &) +{ + warn("%s not implemented.\n", __PRETTY_FUNCTION__); + return ""; +} + +bool +sc_report_close_default_log() +{ + warn("%s not implemented.\n", __PRETTY_FUNCTION__); + return false; +} + } // namespace sc_core |