From dd8b71b413fb511477358b65c7668e6e2574257e Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Wed, 22 Aug 2018 22:45:29 -0700 Subject: systemc: Make sc_process_b less hokey, and make WAIT* work. This change puts sc_process_b into the inheritance hierarchy for the Process types. It also adds the nonstandard sc_set_location function and calls it from the nonstandard WAIT* macros. Change-Id: Ic997dcf74d262774dd7b53504146e372e03af2e0 Reviewed-on: https://gem5-review.googlesource.com/12259 Reviewed-by: Gabe Black Maintainer: Gabe Black --- src/systemc/core/sc_process_handle.cc | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) (limited to 'src/systemc/core/sc_process_handle.cc') diff --git a/src/systemc/core/sc_process_handle.cc b/src/systemc/core/sc_process_handle.cc index 256d64989..8c756afa2 100644 --- a/src/systemc/core/sc_process_handle.cc +++ b/src/systemc/core/sc_process_handle.cc @@ -55,18 +55,14 @@ sc_unwind_exception::sc_unwind_exception(const sc_unwind_exception &e) : 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() +void +sc_set_location(const char *file, int lineno) { - warn("%s not implemented.\n", __PRETTY_FUNCTION__); - return ""; + sc_process_b *current = ::sc_gem5::scheduler.current(); + if (!current) + return; + current->file = file; + current->lineno = lineno; } -- cgit v1.2.3