Fixed cycles accumulation in update_tsc() when cache is enabled (and the actual recompiler kicks in), and also fixed a warning in the 82091AA code.

This commit is contained in:
OBattler
2020-07-12 20:01:16 +02:00
parent 8e5fa10d0e
commit 974a7ae4f1
9 changed files with 39 additions and 3 deletions

View File

@@ -20,6 +20,10 @@ static struct
void codegen_accumulate(int acc_reg, int delta)
{
acc_regs[acc_reg].count += delta;
if (delta != 0) {
uop_ADD_IMM(ir, IREG_acycs, IREG_acycs, delta);
}
}
void codegen_accumulate_flush(ir_data_t *ir)