Fix TCG error in gen_avr_ptr.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6152 c046a42c-6fe2-441c-8c8c-71466251a162
diff --git a/target-ppc/translate.c b/target-ppc/translate.c
index fc9be79..c64f936 100644
--- a/target-ppc/translate.c
+++ b/target-ppc/translate.c
@@ -6085,7 +6085,7 @@
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;
}