Applied the PCem recompile fix commit.
This commit is contained in:
@@ -1415,6 +1415,8 @@ void codegen_block_start_recompile(codeblock_t *block)
|
||||
if (block->pc != cs + cpu_state.pc || block->was_recompiled)
|
||||
fatal("Recompile to used block!\n");
|
||||
|
||||
block->status = cpu_cur_status;
|
||||
|
||||
block_pos = BLOCK_GPF_OFFSET;
|
||||
addbyte(0xc7); /*MOV [ESP],0*/
|
||||
addbyte(0x04);
|
||||
@@ -1472,8 +1474,8 @@ void codegen_block_start_recompile(codeblock_t *block)
|
||||
block->TOP = cpu_state.TOP;
|
||||
block->was_recompiled = 1;
|
||||
|
||||
codegen_flat_ds = cpu_cur_status & CPU_STATUS_FLATDS;
|
||||
codegen_flat_ss = cpu_cur_status & CPU_STATUS_FLATSS;
|
||||
codegen_flat_ds = !(cpu_cur_status & CPU_STATUS_NOTFLATDS);
|
||||
codegen_flat_ss = !(cpu_cur_status & CPU_STATUS_NOTFLATSS);
|
||||
}
|
||||
|
||||
void codegen_block_remove()
|
||||
|
||||
Reference in New Issue
Block a user