From c564fe0bcc6d53dd7f1b5dc2c0174bd445fd2a6d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 18 Jun 2018 17:04:28 -0700 Subject: systemc: Add a minimal version of the deprecated sc_process_b. This type is deprecated, but some tests still rely on it. This change adds just enough of it to satisfy the tests, and also the several different mechanisms for retrieving the sc_process_b which refers to the currently active process. Change-Id: Id122ae5df23744b5de1e1c97573412f97a73b77a Reviewed-on: https://gem5-review.googlesource.com/11351 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/core/sc_process_handle.cc | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'src/systemc/core') diff --git a/src/systemc/core/sc_process_handle.cc b/src/systemc/core/sc_process_handle.cc index 06fd0b30f..cf81f9ff5 100644 --- a/src/systemc/core/sc_process_handle.cc +++ b/src/systemc/core/sc_process_handle.cc @@ -63,6 +63,29 @@ sc_unwind_exception::~sc_unwind_exception() throw() } +const char * +sc_process_b::name() +{ + warn("%s not implemented.\n", __PRETTY_FUNCTION__); + return ""; +} + +const char * +sc_process_b::kind() +{ + warn("%s not implemented.\n", __PRETTY_FUNCTION__); + return ""; +} + + +sc_process_b * +sc_get_curr_process_handle() +{ + warn("%s not implemented.\n", __PRETTY_FUNCTION__); + return nullptr; +} + + sc_process_handle::sc_process_handle() { warn("%s not implemented.\n", __PRETTY_FUNCTION__); -- cgit v1.2.3