Moved the recompiler timings to cpu/ because they are common to both recompilers and fixed a bug in the common timings header file.

This commit is contained in:
OBattler
2020-06-13 11:12:28 +02:00
parent 60ba71cb4b
commit 4e48943ad5
19 changed files with 11 additions and 9527 deletions

View File

@@ -614,7 +614,10 @@ generate_call:
To prevent having zero cycle blocks (eg with a jump instruction pointing
to itself), apply the cycles that would be taken if this jump is taken,
then reverse it for subsequent instructions if the jump is not taken*/
int jump_cycles = codegen_timing_jump_cycles();
int jump_cycles = 0;
if (codegen_timing_jump_cycles)
codegen_timing_jump_cycles();
if (jump_cycles)
codegen_accumulate(ACCREG_cycles, -jump_cycles);