From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:42884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPewX-00053A-AO for qemu-devel@nongnu.org; Thu, 26 May 2011 14:05:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QPewW-0000Ag-Fs for qemu-devel@nongnu.org; Thu, 26 May 2011 14:05:57 -0400 Received: from mnementh.archaic.org.uk ([81.2.115.146]:50659) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QPewW-0000AS-8R for qemu-devel@nongnu.org; Thu, 26 May 2011 14:05:56 -0400 From: Peter Maydell Date: Thu, 26 May 2011 19:05:53 +0100 Message-Id: <1306433153-3671-1-git-send-email-peter.maydell@linaro.org> Subject: [Qemu-devel] [PATCH] target-ppc: Fix compilation error with --enable-debug List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexander Graf , patches@linaro.org The PPC helper functions booke206_tlbflush and booke_setpid both take an i32 argument, so we need to use TCGv_i32 rather than TCGv, to avoid a compilation failure when compiling in debug mode. Signed-off-by: Peter Maydell --- target-ppc/translate_init.c | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index b511afa..d11532c 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -1367,16 +1367,16 @@ static void spr_write_e500_l1csr0 (void *opaque, int sprn, int gprn) static void spr_write_booke206_mmucsr0 (void *opaque, int sprn, int gprn) { - TCGv t0 = tcg_const_i32(sprn); + TCGv_i32 t0 = tcg_const_i32(sprn); gen_helper_booke206_tlbflush(t0); - tcg_temp_free(t0); + tcg_temp_free_i32(t0); } static void spr_write_booke_pid (void *opaque, int sprn, int gprn) { - TCGv t0 = tcg_const_i32(sprn); + TCGv_i32 t0 = tcg_const_i32(sprn); gen_helper_booke_setpid(t0, cpu_gpr[gprn]); - tcg_temp_free(t0); + tcg_temp_free_i32(t0); } #endif -- 1.7.1