systemc: When a thread completes, yield to the scheduler.
authorGabe Black <gabeblack@google.com>
Sat, 25 Aug 2018 00:19:39 +0000 (17:19 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 26 Sep 2018 00:01:37 +0000 (00:01 +0000)
commite95a3062415a27ddd8183fa3a621aba6198b1621
tree3be905f68408a70949fa8947620986432df1373a
parentccd671c4891e79bbb2359089ffa494e06254b0af
systemc: When a thread completes, yield to the scheduler.

Don't just fall off the end of the fiber and return to gem5. By
calling yield, we ensure that remaining Processes are run and that
bookkeeping is maintained correctly.

Change-Id: Ifbe104e155cad29e40a89767a7c1f986399f784d
Reviewed-on: https://gem5-review.googlesource.com/12264
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/systemc/core/process_types.hh