From cfee0218499ded471883aa490284fb53f9be53eb Mon Sep 17 00:00:00 2001 From: Stefan Weil Date: Sun, 24 Jun 2012 04:18:41 +0000 Subject: target-ppc: Fix 2nd parameter for tcg_gen_shri_tl This fixes a compiler error when QEMU was configured with --enable-debug. Signed-off-by: Stefan Weil Signed-off-by: Alexander Graf --- target-ppc/translate_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'target-ppc/translate_init.c') diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c index e6580ff27c..5742229197 100644 --- a/target-ppc/translate_init.c +++ b/target-ppc/translate_init.c @@ -4475,7 +4475,7 @@ static void spr_write_mas73(void *opaque, int sprn, int gprn) TCGv val = tcg_temp_new(); tcg_gen_ext32u_tl(val, cpu_gpr[gprn]); gen_store_spr(SPR_BOOKE_MAS3, val); - tcg_gen_shri_tl(val, gprn, 32); + tcg_gen_shri_tl(val, cpu_gpr[gprn], 32); gen_store_spr(SPR_BOOKE_MAS7, val); tcg_temp_free(val); } -- cgit v1.2.3