summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/sim/futex_map.hh2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sim/futex_map.hh b/src/sim/futex_map.hh
index 5e60f7c37..bbb484a5e 100644
--- a/src/sim/futex_map.hh
+++ b/src/sim/futex_map.hh
@@ -158,7 +158,7 @@ class FutexMap : public std::unordered_map<FutexKey, WaiterList>
// must only count threads that were actually
// woken up by this syscall.
auto& tc = waiterList.front().tc;
- if (tc->status() != ThreadContext::Active) {
+ if (tc->status() == ThreadContext::Suspended) {
tc->activate();
woken_up++;
}