From e4704b3b119d62df2fd3613b5a3c05fbb93ba80c Mon Sep 17 00:00:00 2001 From: aurel32 Date: Sat, 3 Jan 2009 13:31:10 +0000 Subject: Fix TCG error in gen_avr_ptr. Signed-off-by: Nathan Froyd Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6152 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/translate.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-ppc') diff --git a/target-ppc/translate.c b/target-ppc/translate.c index fc9be79c9..c64f936af 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -6085,7 +6085,7 @@ GEN_HANDLER2(icbt_440, "icbt", 0x1F, 0x16, 0x00, 0x03E00001, PPC_BOOKE) static always_inline TCGv_ptr gen_avr_ptr(int reg) { - TCGv_ptr r = tcg_temp_new(); + TCGv_ptr r = tcg_temp_new_ptr(); tcg_gen_addi_ptr(r, cpu_env, offsetof(CPUPPCState, avr[reg])); return r; } -- cgit v1.2.3