x87: Fix Final Reality discolored screen for all dynarecs

This commit is contained in:
Cacodemon345
2025-02-27 13:50:45 +06:00
parent 6d3816df64
commit 03dd94f361
5 changed files with 75 additions and 0 deletions

View File

@@ -64,6 +64,9 @@ fpu_POP2(codeblock_t *block, ir_data_t *ir)
static inline void
fpu_PUSH(codeblock_t *block, ir_data_t *ir)
{
uop_LOAD_FUNC_ARG_IMM(ir, 0, ((uint16_t)cpu_state.TOP - 1));
uop_CALL_FUNC(ir, x87_to_mmxreg);
if (block->flags & CODEBLOCK_STATIC_TOP)
uop_MOV_IMM(ir, IREG_FPU_TOP, cpu_state.TOP - 1);
else