diff options
Diffstat (limited to 'src/cpu/inorder/thread_context.cc')
-rw-r--r-- | src/cpu/inorder/thread_context.cc | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/src/cpu/inorder/thread_context.cc b/src/cpu/inorder/thread_context.cc index 13f8ecdad..0cac51559 100644 --- a/src/cpu/inorder/thread_context.cc +++ b/src/cpu/inorder/thread_context.cc @@ -46,7 +46,7 @@ InOrderThreadContext::takeOverFrom(ThreadContext *old_context) copyArchRegs(old_context); thread->funcExeInst = old_context->readFuncExeInst(); - old_context->setStatus(ThreadContext::Unallocated); + old_context->setStatus(ThreadContext::Halted); thread->inSyscall = false; thread->trapPending = false; } @@ -80,19 +80,6 @@ InOrderThreadContext::suspend(int delay) } void -InOrderThreadContext::deallocate(int delay) -{ - DPRINTF(InOrderCPU, "Calling deallocate on Thread Context %d\n", - getThreadNum()); - - if (thread->status() == ThreadContext::Unallocated) - return; - - thread->setStatus(ThreadContext::Unallocated); - cpu->deallocateContext(thread->readTid(), delay); -} - -void InOrderThreadContext::halt(int delay) { DPRINTF(InOrderCPU, "Calling halt on Thread Context %d\n", |