Properly fixed update_tsc().

This commit is contained in:
OBattler
2020-07-12 23:51:56 +02:00
parent 38828bdc3b
commit 099fd2fc34
4 changed files with 12 additions and 15 deletions

View File

@@ -21,7 +21,7 @@ void codegen_accumulate(ir_data_t *ir, int acc_reg, int delta)
{
acc_regs[acc_reg].count += delta;
if (delta != 0) {
if ((acc_reg == ACCREG_cycles) && (delta != 0)) {
uop_ADD_IMM(ir, IREG_acycs, IREG_acycs, -delta);
}
}