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:
parent
1004d947d5
commit
75f9316c11
5 changed files with 1395 additions and 785 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue