Gabe Black has uploaded this change for review. (
https://gem5-review.googlesource.com/11271
Change subject: systemc: Add some nonstandard, undocumented sc_report_*
functions.
......................................................................
systemc: Add some nonstandard, undocumented sc_report_* functions.
The tests use these functions.
Change-Id: I3cdc10d433d9388742a20fb3a97a1a3efa699e11
---
M src/systemc/ext/utils/_using.hh
M src/systemc/ext/utils/sc_report_handler.hh
M src/systemc/utils/sc_report_handler.cc
3 files changed, 23 insertions(+), 0 deletions(-)
diff --git a/src/systemc/ext/utils/_using.hh
b/src/systemc/ext/utils/_using.hh
index 16b3e40..721f403 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;
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 aa0b1c9..f6e32b9 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 @@
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 0faf995..1a0e0d4 100644
--- a/src/systemc/utils/sc_report_handler.cc
+++ b/src/systemc/utils/sc_report_handler.cc
@@ -234,4 +234,18 @@
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
--
To view, visit https://gem5-review.googlesource.com/11271
To unsubscribe, or for help writing mail filters, visit
https://gem5-review.googlesource.com/settings
Gerrit-Project: public/gem5
Gerrit-Branch: master
Gerrit-Change-Id: I3cdc10d433d9388742a20fb3a97a1a3efa699e11
Gerrit-Change-Number: 11271
Gerrit-PatchSet: 1
Gerrit-Owner: Gabe Black <[email protected]>
Gerrit-MessageType: newchange
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev