Fix OOO access on last instruction.

Cycle counting is a bit broken, needs some rework.
This commit is contained in:
David Guillen Fandos 2021-08-26 13:40:48 +02:00
parent 8207775256
commit 8e50b168cb
1 changed files with 4 additions and 2 deletions

View File

@ -3132,7 +3132,8 @@ s32 translate_block_arm(u32 pc, translation_region_type
/* If the next instruction is a block entry point update the
cycle counter and update */
if(block_data[block_data_position].update_cycles == 1)
if (pc != block_end_pc &&
block_data[block_data_position].update_cycles)
{
generate_cycle_update();
}
@ -3342,7 +3343,8 @@ s32 translate_block_thumb(u32 pc, translation_region_type
/* If the next instruction is a block entry point update the
cycle counter and update */
if(block_data[block_data_position].update_cycles == 1)
if (pc != block_end_pc &&
block_data[block_data_position].update_cycles)
{
generate_cycle_update();
}