x86-32 recompiler compiles FPU instructions using direct access to register stack when top-of-stack is static. Minor speedup.

This commit is contained in:
SarahW 2016-09-11 15:38:05 +01:00
commit 75f9316c11
5 changed files with 1395 additions and 785 deletions

View file

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