Don't unroll a loop if x87 top of stack is different at the start and end of the loop. Fixes Battlezone.

This commit is contained in:
SarahW 2019-05-11 11:44:33 +01:00
commit 83f2869123
3 changed files with 13 additions and 3 deletions

View file

@ -404,7 +404,7 @@ extern int codegen_in_recompile;
void codegen_generate_reset();
int codegen_get_instruction_uop(codeblock_t *block, uint32_t pc, int *first_instruction);
int codegen_get_instruction_uop(codeblock_t *block, uint32_t pc, int *first_instruction, int *TOP);
void codegen_set_loop_start(struct ir_data_t *ir, int first_instruction);
#ifdef DEBUG_EXTRA