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/checker/cpu_impl.hh | 4 ---- src/cpu/checker/thread_context.hh | 3 --- 2 files changed, 7 deletions(-) (limited to 'src/cpu/checker') diff --git a/src/cpu/checker/cpu_impl.hh b/src/cpu/checker/cpu_impl.hh index 494298cad..10a9d1177 100644 --- a/src/cpu/checker/cpu_impl.hh +++ b/src/cpu/checker/cpu_impl.hh @@ -209,10 +209,6 @@ Checker::verify(DynInstPtr &completed_inst) thread->getTC())); #endif -#if FULL_SYSTEM - thread->setInst(machInst); -#endif // FULL_SYSTEM - fault = inst->getFault(); } diff --git a/src/cpu/checker/thread_context.hh b/src/cpu/checker/thread_context.hh index ef7d4c643..5bd3ed734 100644 --- a/src/cpu/checker/thread_context.hh +++ b/src/cpu/checker/thread_context.hh @@ -153,9 +153,6 @@ class CheckerThreadContext : public ThreadContext int threadId() { return actualTC->threadId(); } - // @todo: Do I need this? - MachInst getInst() { return actualTC->getInst(); } - // @todo: Do I need this? void copyArchRegs(ThreadContext *tc) { -- cgit v1.2.3