From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1K1js1-0007Qk-Sn for qemu-devel@nongnu.org; Thu, 29 May 2008 11:16:50 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1K1jrz-0007Ot-4d for qemu-devel@nongnu.org; Thu, 29 May 2008 11:16:48 -0400 Received: from [199.232.76.173] (port=35889 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1K1jrx-0007Nr-Ot for qemu-devel@nongnu.org; Thu, 29 May 2008 11:16:45 -0400 Received: from mx1.redhat.com ([66.187.233.31]:47735) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1K1jrw-0002IH-Iq for qemu-devel@nongnu.org; Thu, 29 May 2008 11:16:44 -0400 From: Glauber Costa Date: Thu, 29 May 2008 12:16:02 -0300 Message-Id: <1212074166-13426-2-git-send-email-gcosta@redhat.com> In-Reply-To: <1212074166-13426-1-git-send-email-gcosta@redhat.com> References: <1212074166-13426-1-git-send-email-gcosta@redhat.com> Subject: [Qemu-devel] [PATCH 1/5] remove REGWPTR Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: kvm@vger.kernel.org Blue Swirl points out that it is not used anymore. Signed-off-by: Glauber Costa --- cpu-exec.c | 13 ------------- target-sparc/exec.h | 4 ---- 2 files changed, 0 insertions(+), 17 deletions(-) diff --git a/cpu-exec.c b/cpu-exec.c index b660954..ea0e5b1 100644 --- a/cpu-exec.c +++ b/cpu-exec.c @@ -246,11 +246,6 @@ int cpu_exec(CPUState *env1) { #define DECLARE_HOST_REGS 1 #include "hostregs_helper.h" -#if defined(TARGET_SPARC) -#if defined(reg_REGWPTR) - uint32_t *saved_regwptr; -#endif -#endif int ret, interrupt_request; TranslationBlock *tb; uint8_t *tc_ptr; @@ -273,9 +268,6 @@ int cpu_exec(CPUState *env1) CC_OP = CC_OP_EFLAGS; env->eflags &= ~(DF_MASK | CC_O | CC_S | CC_Z | CC_A | CC_P | CC_C); #elif defined(TARGET_SPARC) -#if defined(reg_REGWPTR) - saved_regwptr = REGWPTR; -#endif #elif defined(TARGET_M68K) env->cc_op = CC_OP_FLAGS; env->cc_dest = env->sr & 0xf; @@ -562,8 +554,6 @@ int cpu_exec(CPUState *env1) #elif defined(TARGET_ARM) cpu_dump_state(env, logfile, fprintf, 0); #elif defined(TARGET_SPARC) - REGWPTR = env->regbase + (env->cwp * 16); - env->regwptr = REGWPTR; cpu_dump_state(env, logfile, fprintf, 0); #elif defined(TARGET_PPC) cpu_dump_state(env, logfile, fprintf, 0); @@ -640,9 +630,6 @@ int cpu_exec(CPUState *env1) #elif defined(TARGET_ARM) /* XXX: Save/restore host fpu exception state?. */ #elif defined(TARGET_SPARC) -#if defined(reg_REGWPTR) - REGWPTR = saved_regwptr; -#endif #elif defined(TARGET_PPC) #elif defined(TARGET_M68K) cpu_m68k_flush_flags(env, env->cc_op); diff --git a/target-sparc/exec.h b/target-sparc/exec.h index 3ef0cf9..3ca0afb 100644 --- a/target-sparc/exec.h +++ b/target-sparc/exec.h @@ -18,10 +18,6 @@ register struct CPUSPARCState *env asm(AREG0); static inline void env_to_regs(void) { -#if defined(reg_REGWPTR) - REGWPTR = env->regbase + (env->cwp * 16); - env->regwptr = REGWPTR; -#endif } static inline void regs_to_env(void) -- 1.5.4.5