systemc: Add an accessor for getting the current process.
authorGabe Black <gabeblack@google.com>
Tue, 9 Oct 2018 23:21:34 +0000 (16:21 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 01:15:51 +0000 (01:15 +0000)
commit96a88fbeddb354cddfbbbcc905ba5bb84cf4dde1
treec4228afb476dde66fa07410a06cea69dcf5173da
parent137b4993a4710a247d79cdc0194dfa107b080f98
systemc: Add an accessor for getting the current process.

This is to avoid having to expose the scheduler (which tracks the
current process) to header files which should be independent of gem5
and the underlying implementation.

Change-Id: I1b0810ab66c3ce52b5b94236d7df86da66a62472
Reviewed-on: https://gem5-review.googlesource.com/c/13335
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/scheduler.cc
src/systemc/core/scheduler.hh