From 4ce6118fdac16cfdc0d945e8793ace3379779288 Mon Sep 17 00:00:00 2001 From: Steve Reinhardt Date: Wed, 10 Dec 2003 17:47:28 -0800 Subject: Factor ExecContext::setStatus(), BaseCPU::execCtxStatusChange(), and SimpleCPU::setStatus() into separate functions. For example, setStatus(Active) is now activate(). --HG-- extra : convert_revision : 4392e07caf6c918db0b535f613175109681686fe --- arch/alpha/alpha_tru64_process.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'arch/alpha/alpha_tru64_process.cc') diff --git a/arch/alpha/alpha_tru64_process.cc b/arch/alpha/alpha_tru64_process.cc index aece4de5a..f411e594d 100644 --- a/arch/alpha/alpha_tru64_process.cc +++ b/arch/alpha/alpha_tru64_process.cc @@ -892,7 +892,7 @@ class Tru64 { ec->regs.pc = attrp->registers.pc; ec->regs.npc = attrp->registers.pc + sizeof(MachInst); - ec->setStatus(ExecContext::Active); + ec->activate(); } /// Create thread. @@ -1098,7 +1098,7 @@ class Tru64 { // found waiting process: make it active ExecContext *newCtx = i->waitingContext; assert(newCtx->status() == ExecContext::Suspended); - newCtx->setStatus(ExecContext::Active); + newCtx->activate(); // get rid of this record i = process->waitList.erase(i); @@ -1127,7 +1127,7 @@ class Tru64 { } else { // lock is busy: disable until free process->waitList.push_back(Process::WaitRec(uaddr, xc)); - xc->setStatus(ExecContext::Suspended); + xc->suspend(); } } @@ -1239,7 +1239,7 @@ class Tru64 { m5_unlock_mutex(lock_addr, process, xc); process->waitList.push_back(Process::WaitRec(cond_addr, xc)); - xc->setStatus(ExecContext::Suspended); + xc->suspend(); return 0; } @@ -1250,7 +1250,7 @@ class Tru64 { ExecContext *xc) { assert(xc->status() == ExecContext::Active); - xc->setStatus(ExecContext::Unallocated); + xc->deallocate(); return 0; } -- cgit v1.2.3