systemc: Make sc_(pause|stop) exit to python when not using sc_main.
authorGabe Black <gabeblack@google.com>
Thu, 14 Feb 2019 09:54:20 +0000 (01:54 -0800)
committerGabe Black <gabeblack@google.com>
Thu, 21 Feb 2019 22:35:23 +0000 (22:35 +0000)
commit71b617b647dd83d9b8865c3ae1390c34e0e6abd2
treee83422eb59c0ecce993e6c490d20e29de9995ff3
parente15e12134e1149a358e9ab28b3b8affbb75f53d0
systemc: Make sc_(pause|stop) exit to python when not using sc_main.

In those cases, there's no sc_main to return control to. The python
config script is serving more or less the same purpose, so we can
return control to there instead.

Change-Id: I3cf0623ae51d989b883fb8556ebbf44651bbec99
Reviewed-on: https://gem5-review.googlesource.com/c/16445
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/scheduler.cc