summaryrefslogtreecommitdiff
path: root/src/systemc
diff options
context:
space:
mode:
authorGabe Black <gabeblack@google.com>2018-10-06 04:31:04 -0700
committerGabe Black <gabeblack@google.com>2018-10-16 01:04:24 +0000
commit82dd3c1d619ae0ab777685999da9a81e740368f5 (patch)
tree9f25815af51658ec3fdef71d7b1212720d291d1e /src/systemc
parent93b7aa1a4ece4f72024b63a07bea1c27b66cedcf (diff)
downloadgem5-82dd3c1d619ae0ab777685999da9a81e740368f5.tar.xz
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 <gabeblack@google.com> Maintainer: Gabe Black <gabeblack@google.com>
Diffstat (limited to 'src/systemc')
-rw-r--r--src/systemc/core/process.cc2
1 files changed, 2 insertions, 0 deletions
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();