From 82dd3c1d619ae0ab777685999da9a81e740368f5 Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Sat, 6 Oct 2018 04:31:04 -0700 Subject: [PATCH] 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 --- src/systemc/core/process.cc | 2 ++ 1 file changed, 2 insertions(+) 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(); -- 2.30.2