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

@ -56,10 +56,17 @@ typedef struct codeblock_t
uint64_t page_mask, page_mask2;
int was_recompiled;
uint32_t flags;
int TOP;
uint8_t data[2048];
} codeblock_t;
/*Code block uses FPU*/
#define CODEBLOCK_HAS_FPU 1
/*Code block is always entered with the same FPU top-of-stack*/
#define CODEBLOCK_STATIC_TOP 2
static inline codeblock_t *codeblock_tree_find(uint32_t phys)
{
codeblock_t *block = pages[phys >> 12].head;