From: Gabe Black Date: Sat, 6 Oct 2018 11:31:04 +0000 (-0700) Subject: systemc: When resetting a process, clear suspended ready. X-Git-Tag: v19.0.0.0~1509 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=82dd3c1d619ae0ab777685999da9a81e740368f5;p=gem5.git systemc: When resetting a process, clear suspended ready. When resetting a process which is ready pending coming out of suspend, clear that state since the process is about to run in service of the reset. Change-Id: Iade3ec4b2f3eadd372cce456dca66850d37ed5fd Reviewed-on: https://gem5-review.googlesource.com/c/13316 Reviewed-by: Gabe Black Maintainer: Gabe Black --- diff --git a/src/systemc/core/process.cc b/src/systemc/core/process.cc index 7d21960bd..9f47bf94b 100644 --- a/src/systemc/core/process.cc +++ b/src/systemc/core/process.cc @@ -183,6 +183,8 @@ Process::reset(bool inc_kids) if (_isUnwinding) return; + // Clear suspended ready since we're about to run regardless. + _suspendedReady = false; _resetEvent.notify();