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 <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
This commit is contained in:
Gabe Black
2018-06-18 17:04:28 -07:00
parent c09bc660be
commit c564fe0bcc
4 changed files with 57 additions and 4 deletions

View File

@@ -8,10 +8,6 @@ name == "sc_elab_and_sim",
path.startswith("systemc/tracing/wif_trace"),
path.startswith("systemc/misc/stars/wif_trace"),
# These tests refers to sc_get_current_process_b which is a deprecated type and
# something we're not currently planning to support.
path.startswith("systemc/kernel/sc_process_b"),
# Phase callbacks are an experimental feature. Also calling all the interested
# sc_objects whenever time advances would add a non-trivial amount of
# complexity and is probably not worth implementing in general.
@@ -22,6 +18,7 @@ path in (
# Uses sc_get_curr_simcontext.
"systemc/kernel/sc_object_manager/test01",
"systemc/kernel/sc_name_gen/test1",
"systemc/kernel/sc_process_b/test2",
# Uses sc_elab_and_sim.
"systemc/kernel/sc_main_main",