diff --git a/src/cpu/o3/thread_context.cc b/src/cpu/o3/thread_context.cc index 2eac107c99..06210de07e 100644 --- a/src/cpu/o3/thread_context.cc +++ b/src/cpu/o3/thread_context.cc @@ -86,9 +86,7 @@ ThreadContext::suspend() DPRINTF(O3CPU, "Calling suspend on Thread Context %d\n", threadId()); - if (thread->status() == gem5::ThreadContext::Suspended || - thread->status() == gem5::ThreadContext::Halting || - thread->status() == gem5::ThreadContext::Halted) + if (thread->status() == gem5::ThreadContext::Suspended) return; if (cpu->isDraining()) { diff --git a/src/cpu/simple_thread.cc b/src/cpu/simple_thread.cc index 9e90ce45b8..c28359a4ed 100644 --- a/src/cpu/simple_thread.cc +++ b/src/cpu/simple_thread.cc @@ -143,8 +143,7 @@ SimpleThread::activate() void SimpleThread::suspend() { - if (status() == ThreadContext::Suspended || - status() == ThreadContext::Halted) + if (status() == ThreadContext::Suspended) return; lastActivate = curTick();