diff --git a/src/sim/futex_map.hh b/src/sim/futex_map.hh index 5e60f7c376..bbb484a5e1 100644 --- a/src/sim/futex_map.hh +++ b/src/sim/futex_map.hh @@ -158,7 +158,7 @@ class FutexMap : public std::unordered_map // 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++; }