x86_64 new recompile: fix registers clean-up on block exit.

This commit is contained in:
OBattler
2025-04-20 23:19:17 +02:00
parent c0fdc6b4fe
commit ba19b8af89

View File

@@ -329,7 +329,7 @@ codegen_backend_init(void)
host_x86_POP(block, REG_RSI); host_x86_POP(block, REG_RSI);
#endif #endif
host_x86_POP(block, REG_RBP); host_x86_POP(block, REG_RBP);
host_x86_POP(block, REG_RDX); host_x86_POP(block, REG_RBX);
host_x86_RET(block); host_x86_RET(block);
block_write_data = NULL; block_write_data = NULL;
@@ -392,7 +392,7 @@ codegen_backend_epilogue(codeblock_t *block)
host_x86_POP(block, REG_RSI); host_x86_POP(block, REG_RSI);
#endif #endif
host_x86_POP(block, REG_RBP); host_x86_POP(block, REG_RBP);
host_x86_POP(block, REG_RDX); host_x86_POP(block, REG_RBX);
host_x86_RET(block); host_x86_RET(block);
} }
#endif #endif