systemc: Keep track of more cases when we should be ready after resume.
authorGabe Black <gabeblack@google.com>
Thu, 30 Aug 2018 07:39:49 +0000 (00:39 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 3 Oct 2018 00:16:46 +0000 (00:16 +0000)
commitf6fda869ead3aae97e73d2222bfc9fdfd837491e
tree50b3364b03399c03b06c6a04122da327fb744104
parent420ab42e02e2a7c0c5aace5b330717cc014bd178
systemc: Keep track of more cases when we should be ready after resume.

If a thread self suspends, it should be marked as ready after resuming.
If a process was already ready when suspended, it should also be
remarked as ready after resuming.

Special care has to be taken in pre-initialization situations so that
processes are put on the right lists, and whether a process is tracked
is already marked as ready.

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