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)

View File

@@ -180,6 +180,8 @@ struct
[IREG_temp0d] = {REG_DOUBLE, (void *)40, REG_FP, REG_VOLATILE},
[IREG_temp1d] = {REG_DOUBLE, (void *)48, REG_FP, REG_VOLATILE},
[IREG_acycs] = {REG_DWORD, &acycs, REG_INTEGER, REG_PERMANENT}
};
void codegen_reg_mark_as_required()

View File

@@ -133,7 +133,9 @@ enum
IREG_GS_limit_high = 86,
IREG_SS_limit_high = 87,
IREG_COUNT = 88,
IREG_acycs = 88,
IREG_COUNT = 89,
IREG_INVALID = 255,