diff options
Diffstat (limited to 'src/cpu/simple_thread.cc')
-rw-r--r-- | src/cpu/simple_thread.cc | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/cpu/simple_thread.cc b/src/cpu/simple_thread.cc index 6ede3f429..73b23f89a 100644 --- a/src/cpu/simple_thread.cc +++ b/src/cpu/simple_thread.cc @@ -152,7 +152,7 @@ SimpleThread::takeOverFrom(ThreadContext *oldContext) storeCondFailures = 0; - oldContext->setStatus(ThreadContext::Unallocated); + oldContext->setStatus(ThreadContext::Halted); } void @@ -253,15 +253,6 @@ SimpleThread::suspend() cpu->suspendContext(_threadId); } -void -SimpleThread::deallocate() -{ - if (status() == ThreadContext::Unallocated) - return; - - _status = ThreadContext::Unallocated; - cpu->deallocateContext(_threadId); -} void SimpleThread::halt() |