Fix masking of FPU top-of-stack in several places. Fixes DOS Quake.

This commit is contained in:
SarahW 2018-10-09 13:51:05 +01:00
commit d9e38fe37c
3 changed files with 5 additions and 5 deletions

View file

@ -663,7 +663,7 @@ void exec386_dynarec(int cycs)
valid_block = 0;
}
}
if (valid_block && block->was_recompiled && (block->flags & CODEBLOCK_STATIC_TOP) && block->TOP != cpu_state.TOP)
if (valid_block && block->was_recompiled && (block->flags & CODEBLOCK_STATIC_TOP) && block->TOP != (cpu_state.TOP & 7))
{
/*FPU top-of-stack does not match the value this block was compiled
with, re-compile using dynamic top-of-stack*/