mirror of https://gitee.com/openkylin/qemu.git
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:
parent
59df7f62a9
commit
489251fa54
|
@ -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;
|
||||
|
|
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue