From 489251fa5437cb43600e49b0f7c5d5c56319cf0e Mon Sep 17 00:00:00 2001 From: aurel32 Date: Thu, 4 Sep 2008 20:34:31 +0000 Subject: ppc: replace op_set_FT0 with tcg_gen_movi_i64 Signed-off-by: Andreas Faerber Signed-off-by: Aurelien Jarno git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5162 c046a42c-6fe2-441c-8c8c-71466251a162 --- target-ppc/op.c | 10 ---------- target-ppc/translate.c | 2 +- 2 files changed, 1 insertion(+), 11 deletions(-) diff --git a/target-ppc/op.c b/target-ppc/op.c index 70c2a13..5451fd4 100644 --- a/target-ppc/op.c +++ b/target-ppc/op.c @@ -410,16 +410,6 @@ void OPPROTO op_load_fpscr_FT0 (void) RETURN(); } -void OPPROTO op_set_FT0 (void) -{ - CPU_DoubleU u; - - u.l.upper = 0; - u.l.lower = PARAM1; - FT0 = u.d; - RETURN(); -} - void OPPROTO op_load_fpscr_T0 (void) { T0 = (env->fpscr >> PARAM1) & 0xF; diff --git a/target-ppc/translate.c b/target-ppc/translate.c index f7f31f4..d952276 100644 --- a/target-ppc/translate.c +++ b/target-ppc/translate.c @@ -2094,7 +2094,7 @@ GEN_HANDLER(mtfsfi, 0x3F, 0x06, 0x04, 0x006f0800, PPC_FLOAT) bf = crbD(ctx->opcode) >> 2; sh = 7 - bf; gen_optimize_fprf(); - gen_op_set_FT0(FPIMM(ctx->opcode) << (4 * sh)); + tcg_gen_movi_i64(cpu_FT[0], FPIMM(ctx->opcode) << (4 * sh)); gen_reset_fpstatus(); gen_op_store_fpscr(1 << sh); if (unlikely(Rc(ctx->opcode) != 0)) { -- cgit v1.1