summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-06-15 18:07:05 -0700
committerGabe Black <gabeblack@google.com>2018-08-22 01:05:20 +0000
commitfc008a085db4685b0403f472478287111bed8d18 (patch)
treed0915ceaabde74de4a3a4522820cf1b44254c699 /src/systemc
parent5a4d84ed6346151933a065a45d470286ace7ccbd (diff)
downloadgem5-fc008a085db4685b0403f472478287111bed8d18.tar.xz
systemc: Add some nonstandard (get|set)_catch_actions functions.
These are used by the tests. Change-Id: I09bbe81854f0faa524a4c6aa0ef31d80e4a8de24 Reviewed-on: https://gem5-review.googlesource.com/11265 Reviewed-by: Gabe Black <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/ext/utils/sc_report_handler.hh3
-rw-r--r--src/systemc/utils/sc_report_handler.cc15
2 files changed, 18 insertions, 0 deletions
diff --git a/src/systemc/ext/utils/sc_report_handler.hh b/src/systemc/ext/utils/sc_report_handler.hh
index 6101e2b72..aa0b1c99d 100644
--- a/src/systemc/ext/utils/sc_report_handler.hh
+++ b/src/systemc/ext/utils/sc_report_handler.hh
@@ -95,6 +95,9 @@ class sc_report_handler
static sc_actions force(sc_actions);
static sc_actions force();
+ static sc_actions set_catch_actions(sc_actions);
+ static sc_actions get_catch_actions();
+
static void set_handler(sc_report_handler_proc);
static void default_handler(const sc_report &, const sc_actions &);
static sc_actions get_new_action_id();
diff --git a/src/systemc/utils/sc_report_handler.cc b/src/systemc/utils/sc_report_handler.cc
index 319851b2b..0faf995f5 100644
--- a/src/systemc/utils/sc_report_handler.cc
+++ b/src/systemc/utils/sc_report_handler.cc
@@ -161,6 +161,21 @@ sc_report_handler::force()
}
+sc_actions
+sc_report_handler::set_catch_actions(sc_actions)
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return SC_UNSPECIFIED;
+}
+
+sc_actions
+sc_report_handler::get_catch_actions()
+{
+ warn("%s not implemented.\n", __PRETTY_FUNCTION__);
+ return SC_UNSPECIFIED;
+}
+
+
void
sc_report_handler::set_handler(sc_report_handler_proc)
{