aboutsummaryrefslogtreecommitdiff
path: root/target-ppc
diff options
context:
space:
mode:
authorStefan Weil <sw@weilnetz.de>2012-06-24 04:18:41 +0000
committerAlexander Graf <agraf@suse.de>2012-06-24 22:52:11 +0200
commitcfee0218499ded471883aa490284fb53f9be53eb (patch)
treef5b3ec3bc8105f1d64d8b37759b7d4732266cd92 /target-ppc
parent975e5463584211e6dd6eff3c8317ff516b8e983e (diff)
downloadqemu-cfee0218499ded471883aa490284fb53f9be53eb.zip
qemu-cfee0218499ded471883aa490284fb53f9be53eb.tar.gz
qemu-cfee0218499ded471883aa490284fb53f9be53eb.tar.bz2
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 <sw@weilnetz.de> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'target-ppc')
-rw-r--r--target-ppc/translate_init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index e6580ff..5742229 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);
}