cpu: Revert "Don't change to suspend if the thread status is halted" (#1225)
Reverts gem5/gem5#1039
This commit is contained in:
@@ -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()) {
|
||||
|
||||
@@ -143,8 +143,7 @@ SimpleThread::activate()
|
||||
void
|
||||
SimpleThread::suspend()
|
||||
{
|
||||
if (status() == ThreadContext::Suspended ||
|
||||
status() == ThreadContext::Halted)
|
||||
if (status() == ThreadContext::Suspended)
|
||||
return;
|
||||
|
||||
lastActivate = curTick();
|
||||
|
||||
Reference in New Issue
Block a user