ppc: replace op_set_FT0 with tcg_gen_movi_i64

Signed-off-by: Andreas Faerber <andreas.faerber@web.de>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@5162 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
aurel32 2008-09-04 20:34:31 +00:00
parent 59df7f62a9
commit 489251fa54
2 changed files with 1 additions and 11 deletions

View File

@ -410,16 +410,6 @@ void OPPROTO op_load_fpscr_FT0 (void)
RETURN(); 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) void OPPROTO op_load_fpscr_T0 (void)
{ {
T0 = (env->fpscr >> PARAM1) & 0xF; T0 = (env->fpscr >> PARAM1) & 0xF;

View File

@ -2094,7 +2094,7 @@ GEN_HANDLER(mtfsfi, 0x3F, 0x06, 0x04, 0x006f0800, PPC_FLOAT)
bf = crbD(ctx->opcode) >> 2; bf = crbD(ctx->opcode) >> 2;
sh = 7 - bf; sh = 7 - bf;
gen_optimize_fprf(); 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_reset_fpstatus();
gen_op_store_fpscr(1 << sh); gen_op_store_fpscr(1 << sh);
if (unlikely(Rc(ctx->opcode) != 0)) { if (unlikely(Rc(ctx->opcode) != 0)) {