diff options
author | Gabe Black <gabeblack@google.com> | 2018-10-06 04:31:04 -0700 |
---|---|---|
committer | Gabe Black <gabeblack@google.com> | 2018-10-16 01:04:24 +0000 |
commit | 82dd3c1d619ae0ab777685999da9a81e740368f5 (patch) | |
tree | 9f25815af51658ec3fdef71d7b1212720d291d1e /src | |
parent | 93b7aa1a4ece4f72024b63a07bea1c27b66cedcf (diff) | |
download | gem5-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')
-rw-r--r-- | src/systemc/core/process.cc | 2 |
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(); |