systemc: Ensure the reset event is notified before reseting the target.
authorGabe Black <gabeblack@google.com>
Thu, 27 Sep 2018 03:32:41 +0000 (20:32 -0700)
committerGabe Black <gabeblack@google.com>
Tue, 16 Oct 2018 00:36:27 +0000 (00:36 +0000)
commit6ae330055aa3ba8a5868ceba02bf40430a46caf3
tree3fb2c907d580c51ba42179aec7a13876ab564875
parent0cfce458003c377878aad3b15cf5fa2860a5f8e7
systemc: Ensure the reset event is notified before reseting the target.

The target may be the process which is currently running. In that case,
the reset method will end and never get to notifying the reset event.
To fix that, we need to notify the reset event first.

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