Fall back to interpreter version of FADD if x87 rounding mode is not nearest. Fixes software rendering in Battlezone.

This commit is contained in:
SarahW 2019-05-11 11:45:08 +01:00
commit 451e80a333

View file

@ -274,6 +274,8 @@ uint32_t ropFADD ## name(codeblock_t *block, ir_data_t *ir, uint8_t opcode, uint
{ \
x86seg *target_seg; \
\
if ((cpu_state.npxc >> 10) & 3) \
return 0; \
uop_FP_ENTER(ir); \
uop_MOV_IMM(ir, IREG_oldpc, cpu_state.oldpc); \
op_pc--; \