Hopefully fixed compilation of the new recompiler.
This commit is contained in:
@@ -599,8 +599,8 @@ generate_call:
|
|||||||
|
|
||||||
codegen_timing_opcode(opcode, fetchdat, op_32, op_pc);
|
codegen_timing_opcode(opcode, fetchdat, op_32, op_pc);
|
||||||
|
|
||||||
codegen_accumulate(ACCREG_ins, 1);
|
codegen_accumulate(ir, ACCREG_ins, 1);
|
||||||
codegen_accumulate(ACCREG_cycles, -codegen_block_cycles);
|
codegen_accumulate(ir, ACCREG_cycles, -codegen_block_cycles);
|
||||||
codegen_block_cycles = 0;
|
codegen_block_cycles = 0;
|
||||||
|
|
||||||
if ((op_table == x86_dynarec_opcodes &&
|
if ((op_table == x86_dynarec_opcodes &&
|
||||||
@@ -620,10 +620,10 @@ generate_call:
|
|||||||
codegen_timing_jump_cycles();
|
codegen_timing_jump_cycles();
|
||||||
|
|
||||||
if (jump_cycles)
|
if (jump_cycles)
|
||||||
codegen_accumulate(ACCREG_cycles, -jump_cycles);
|
codegen_accumulate(ir, ACCREG_cycles, -jump_cycles);
|
||||||
codegen_accumulate_flush(ir);
|
codegen_accumulate_flush(ir);
|
||||||
if (jump_cycles)
|
if (jump_cycles)
|
||||||
codegen_accumulate(ACCREG_cycles, jump_cycles);
|
codegen_accumulate(ir, ACCREG_cycles, jump_cycles);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (op_table == x86_dynarec_opcodes_0f && opcode == 0x0f)
|
if (op_table == x86_dynarec_opcodes_0f && opcode == 0x0f)
|
||||||
|
@@ -17,7 +17,7 @@ static struct
|
|||||||
[ACCREG_cycles] = {0, IREG_cycles},
|
[ACCREG_cycles] = {0, IREG_cycles},
|
||||||
};
|
};
|
||||||
|
|
||||||
void codegen_accumulate(int acc_reg, int delta)
|
void codegen_accumulate(r_data_t *ir, int acc_reg, int delta)
|
||||||
{
|
{
|
||||||
acc_regs[acc_reg].count += delta;
|
acc_regs[acc_reg].count += delta;
|
||||||
|
|
||||||
|
@@ -8,6 +8,6 @@ enum
|
|||||||
|
|
||||||
struct ir_data_t;
|
struct ir_data_t;
|
||||||
|
|
||||||
void codegen_accumulate(int acc_reg, int delta);
|
void codegen_accumulate(struct ir_data_t *ir, int acc_reg, int delta);
|
||||||
void codegen_accumulate_flush(struct ir_data_t *ir);
|
void codegen_accumulate_flush(struct ir_data_t *ir);
|
||||||
void codegen_accumulate_reset();
|
void codegen_accumulate_reset();
|
||||||
|
@@ -782,7 +782,7 @@ void codegen_block_end()
|
|||||||
void codegen_block_end_recompile(codeblock_t *block)
|
void codegen_block_end_recompile(codeblock_t *block)
|
||||||
{
|
{
|
||||||
codegen_timing_block_end();
|
codegen_timing_block_end();
|
||||||
codegen_accumulate(ACCREG_cycles, -codegen_block_cycles);
|
codegen_accumulate(ir_data, ACCREG_cycles, -codegen_block_cycles);
|
||||||
|
|
||||||
if (block->flags & CODEBLOCK_IN_DIRTY_LIST)
|
if (block->flags & CODEBLOCK_IN_DIRTY_LIST)
|
||||||
block_dirty_list_remove(block);
|
block_dirty_list_remove(block);
|
||||||
|
Reference in New Issue
Block a user