From 8f3fbd2d13dbfc3699dc43b27b3c2a389049078d Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Mon, 13 Sep 2010 21:58:34 -0700 Subject: CPU: Get rid of the now unnecessary getInst/setInst family of functions. This code is no longer needed because of the preceeding change which adds a StaticInstPtr parameter to the fault's invoke method, obviating the only use for this pair of functions. --- src/cpu/ozone/cpu.hh | 3 --- src/cpu/ozone/cpu_impl.hh | 8 -------- src/cpu/ozone/inorder_back_end_impl.hh | 6 ------ src/cpu/ozone/lw_back_end_impl.hh | 3 --- 4 files changed, 20 deletions(-) (limited to 'src/cpu/ozone') diff --git a/src/cpu/ozone/cpu.hh b/src/cpu/ozone/cpu.hh index fba5886f8..ad23b2790 100644 --- a/src/cpu/ozone/cpu.hh +++ b/src/cpu/ozone/cpu.hh @@ -171,9 +171,6 @@ class OzoneCPU : public BaseCPU int threadId(); - // Also somewhat obnoxious. Really only used for the TLB fault. - TheISA::MachInst getInst(); - void copyArchRegs(ThreadContext *tc); void clearArchRegs(); diff --git a/src/cpu/ozone/cpu_impl.hh b/src/cpu/ozone/cpu_impl.hh index c09dd9046..08da1724b 100644 --- a/src/cpu/ozone/cpu_impl.hh +++ b/src/cpu/ozone/cpu_impl.hh @@ -771,7 +771,6 @@ OzoneCPU::OzoneTC::takeOverFrom(ThreadContext *old_context) setCpuId(old_context->cpuId()); setContextId(old_context->contextId()); - thread->setInst(old_context->getInst()); #if !FULL_SYSTEM setFuncExeInst(old_context->readFuncExeInst()); #else @@ -862,13 +861,6 @@ OzoneCPU::OzoneTC::threadId() return thread->threadId(); } -template -TheISA::MachInst -OzoneCPU::OzoneTC::getInst() -{ - return thread->getInst(); -} - template void OzoneCPU::OzoneTC::copyArchRegs(ThreadContext *tc) diff --git a/src/cpu/ozone/inorder_back_end_impl.hh b/src/cpu/ozone/inorder_back_end_impl.hh index 2d4d225c7..b48e8f692 100644 --- a/src/cpu/ozone/inorder_back_end_impl.hh +++ b/src/cpu/ozone/inorder_back_end_impl.hh @@ -304,12 +304,6 @@ InorderBackEnd::executeInsts() thread->inSyscall = true; - // Hack for now; DTB will sometimes need the machine instruction - // for when faults happen. So we will set it here, prior to the - // DTB possibly needing it for this translation. - thread->setInst( - static_cast(inst->staticInst->machInst)); - // Consider holding onto the trap and waiting until the trap event // happens for this to be executed. inst_fault->invoke(xc); diff --git a/src/cpu/ozone/lw_back_end_impl.hh b/src/cpu/ozone/lw_back_end_impl.hh index cbc386cb0..465fccbdb 100644 --- a/src/cpu/ozone/lw_back_end_impl.hh +++ b/src/cpu/ozone/lw_back_end_impl.hh @@ -1171,9 +1171,6 @@ LWBackEnd::commitInst(int inst_num) } #endif - thread->setInst( - static_cast(inst->staticInst->machInst)); - handleFault(inst_fault); return false; } -- cgit v1.2.3