aboutsummaryrefslogtreecommitdiff
path: root/target-sparc/translate.c
diff options
context:
space:
mode:
authorpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-24 02:12:32 +0000
committerpbrook <pbrook@c046a42c-6fe2-441c-8c8c-71466251a162>2008-05-24 02:12:32 +0000
commit455f9004866c2f1fd630f09a18353501dea5a77e (patch)
tree4f134dcee976c7958ba5e56c62ee4562b69212dc /target-sparc/translate.c
parent11d1fdb05a02d8ac97f8379f9f45ba767af4d44f (diff)
Fix helper operand type mismatch.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4551 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-sparc/translate.c')
-rw-r--r--target-sparc/translate.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/target-sparc/translate.c b/target-sparc/translate.c
index 9d746bfb6f..ffc881e0d2 100644
--- a/target-sparc/translate.c
+++ b/target-sparc/translate.c
@@ -4275,7 +4275,8 @@ static void disas_sparc_insn(DisasContext * dc)
break;
case 0x22: /* load quad fpreg */
CHECK_FPU_FEATURE(dc, FLOAT128);
- tcg_gen_helper_0_2(helper_ldqf, cpu_addr, dc->mem_idx);
+ tcg_gen_helper_0_2(helper_ldqf, cpu_addr,
+ tcg_const_i32(dc->mem_idx));
gen_op_store_QT0_fpr(QFPREG(rd));
break;
case 0x23: /* load double fpreg */