Fix masking of FPU top-of-stack in several places. Fixes DOS Quake.
This commit is contained in:
parent
305b6cc4fd
commit
d9e38fe37c
3 changed files with 5 additions and 5 deletions
|
|
@ -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*/
|
||||
|
|
|
|||
Loading…
Reference in a new issue