systemc: Seperate out the sc_main fiber and its bookkeeping.
authorGabe Black <gabeblack@google.com>
Wed, 7 Nov 2018 08:00:29 +0000 (00:00 -0800)
committerGabe Black <gabeblack@google.com>
Fri, 9 Nov 2018 01:26:17 +0000 (01:26 +0000)
commit6dd72cf55cf1c0b8d0772585ca25ed75a81e3d47
tree2e221f9dd0e744ef82632575985a3c9997e50ca3
parent296402abdfac1bcab998cb8613d14e65e671ddda
systemc: Seperate out the sc_main fiber and its bookkeeping.

By pulling out the sc_main fiber (scMainFiber), we can make it
available to different entities in the simulator and avoid having to
have parallel bookkeeping.

Also this will make it possible to hook into sc_main without putting
the code in sc_main.cc.

Change-Id: I7689441424238e9b2e4d2b48e945dea35fd8cc5d
Reviewed-on: https://gem5-review.googlesource.com/c/13977
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/SConscript
src/systemc/core/kernel.cc
src/systemc/core/kernel.hh
src/systemc/core/sc_main.cc
src/systemc/core/sc_main_fiber.cc [new file with mode: 0644]
src/systemc/core/sc_main_fiber.hh [new file with mode: 0644]
src/systemc/core/scheduler.cc
src/systemc/core/scheduler.hh