From fc008a085db4685b0403f472478287111bed8d18 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 15 Jun 2018 18:07:05 -0700 Subject: 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 Maintainer: Gabe Black --- src/systemc/ext/utils/sc_report_handler.hh | 3 +++ src/systemc/utils/sc_report_handler.cc | 15 +++++++++++++++ 2 files changed, 18 insertions(+) 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) { -- cgit v1.2.3