systemc: Mostly implememt sc_simcontext.
authorGabe Black <gabeblack@google.com>
Sat, 8 Sep 2018 01:54:49 +0000 (18:54 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 9 Oct 2018 21:44:17 +0000 (21:44 +0000)
commit110907bae1699e61455334bab40c161ddfc4141d
tree1bee1d2604c2b2cad5490000aee45bde76d4eccf
parenta4b82a86115649cbe403315bf04231d5c9512015
systemc: Mostly implememt sc_simcontext.

Since we don't track the current process using the sc_curr_proc_handle
structure, we keep one around just to return from the appropriate
accessor, and set its values when it's requested. If the object is
kept around, those values won't change to track changing processes.

From what I see, none of the tests rely on the value tracking the
process beyond the callsight.

Change-Id: I1ad3b7a7b15aa0bc4d218f986ffbe7c51501b296
Reviewed-on: https://gem5-review.googlesource.com/c/12611
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/sc_simcontext.cc