From e1403fc2af61c224c573c47c77a36f9b1b78e7df Mon Sep 17 00:00:00 2001 From: Mitch Hayenga Date: Sat, 20 Sep 2014 17:18:35 -0400 Subject: alpha,arm,mips,power,x86,cpu,sim: Cleanup activate/deactivate activate(), suspend(), and halt() used on thread contexts had an optional delay parameter. However this parameter was often ignored. Also, when used, the delay was seemily arbitrarily set to 0 or 1 cycle (no other delays were ever specified). This patch removes the delay parameter and 'Events' associated with them across all ISAs and cores. Unused activate logic is also removed. --- src/cpu/simple_thread.cc | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) (limited to 'src/cpu/simple_thread.cc') diff --git a/src/cpu/simple_thread.cc b/src/cpu/simple_thread.cc index 4e2e70e63..55fe7e1a9 100644 --- a/src/cpu/simple_thread.cc +++ b/src/cpu/simple_thread.cc @@ -159,22 +159,14 @@ SimpleThread::dumpFuncProfile() } void -SimpleThread::activate(Cycles delay) +SimpleThread::activate() { if (status() == ThreadContext::Active) return; lastActivate = curTick(); - -// if (status() == ThreadContext::Unallocated) { -// cpu->activateWhenReady(_threadId); -// return; -// } - _status = ThreadContext::Active; - - // status() == Suspended - baseCpu->activateContext(_threadId, delay); + baseCpu->activateContext(_threadId); } void -- cgit v1.2.3