From 3f3773757eb2cf5d62caf5e01adf8611c8684dde Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Fri, 7 Sep 2018 01:37:57 -0700 Subject: systemc: Fortify how exceptions are caught and passed around. This change tightens up exception catching and makes gem5's systemc code react to exceptions more in line with the Accellera implementation. This prevents exceptions from being caught by the pybind11 integration which makes it very difficult to see where an exception came from, and makes the output differ by including a (mostly useless) backtrace. Change-Id: I7130d53a98fadd137073d1718f780f32f57c658c Reviewed-on: https://gem5-review.googlesource.com/c/12601 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/utils/sc_report_handler.cc | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/systemc/utils') diff --git a/src/systemc/utils/sc_report_handler.cc b/src/systemc/utils/sc_report_handler.cc index e08ad6624..1ca9d975d 100644 --- a/src/systemc/utils/sc_report_handler.cc +++ b/src/systemc/utils/sc_report_handler.cc @@ -341,6 +341,12 @@ sc_report_handler::get_new_action_id() return maxAction; } +sc_report_handler_proc +sc_report_handler::get_handler() +{ + return reportHandlerProc; +} + sc_report * sc_report_handler::get_cached_report() { -- cgit v1.2.3