target-ppc: mffs. Should Set CR1 from FPSCR Bits
Update the Move From FPSCR (mffs.) instruction to correctly set CR[1] from FPSCR[FX,FEX,VX,OX]. Signed-off-by: Tom Musta <tommusta@gmail.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
4814f2d116
commit
14ba79c73a
@ -2504,7 +2504,9 @@ static void gen_mffs(DisasContext *ctx)
|
||||
}
|
||||
gen_reset_fpstatus();
|
||||
tcg_gen_extu_tl_i64(cpu_fpr[rD(ctx->opcode)], cpu_fpscr);
|
||||
gen_compute_fprf(cpu_fpr[rD(ctx->opcode)], 0, Rc(ctx->opcode) != 0);
|
||||
if (unlikely(Rc(ctx->opcode))) {
|
||||
gen_set_cr1_from_fpscr(ctx);
|
||||
}
|
||||
}
|
||||
|
||||
/* mtfsb0 */
|
||||
|
Loading…
Reference in New Issue
Block a user