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:
@@ -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)
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -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,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user