From 8882dc1283771463a20194c083f4b8940a2d574b Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Wed, 15 Apr 2009 13:13:47 -0700 Subject: Get rid of the Unallocated thread context state. Basically merge it in with Halted. Also had to get rid of a few other functions that called ThreadContext::deallocate(), including: - InOrderCPU's setThreadRescheduleCondition. - ThreadContext::exit(). This function was there to avoid terminating simulation when one thread out of a multi-thread workload exits, but we need to find a better (non-cpu-centric) way. --- src/cpu/ozone/cpu.hh | 3 --- src/cpu/ozone/cpu_impl.hh | 10 +--------- 2 files changed, 1 insertion(+), 12 deletions(-) (limited to 'src/cpu/ozone') diff --git a/src/cpu/ozone/cpu.hh b/src/cpu/ozone/cpu.hh index af62f863a..2e21411ae 100644 --- a/src/cpu/ozone/cpu.hh +++ b/src/cpu/ozone/cpu.hh @@ -148,9 +148,6 @@ class OzoneCPU : public BaseCPU /// Set the status to Suspended. void suspend(); - /// Set the status to Unallocated. - void deallocate(int delay = 0); - /// Set the status to Halted. void halt(); diff --git a/src/cpu/ozone/cpu_impl.hh b/src/cpu/ozone/cpu_impl.hh index aa76c8aa6..060ea6d78 100644 --- a/src/cpu/ozone/cpu_impl.hh +++ b/src/cpu/ozone/cpu_impl.hh @@ -737,14 +737,6 @@ OzoneCPU::OzoneTC::suspend() cpu->suspendContext(thread->threadId()); } -/// Set the status to Unallocated. -template -void -OzoneCPU::OzoneTC::deallocate(int delay) -{ - cpu->deallocateContext(thread->threadId(), delay); -} - /// Set the status to Halted. template void @@ -799,7 +791,7 @@ OzoneCPU::OzoneTC::takeOverFrom(ThreadContext *old_context) cpu->lockFlag = false; #endif - old_context->setStatus(ThreadContext::Unallocated); + old_context->setStatus(ThreadContext::Halted); } template -- cgit v1.2.3