Recompiler now handles instruction and cycle counting.
This commit is contained in:
parent
93ec6b0692
commit
774f4201ee
8 changed files with 99 additions and 7 deletions
|
|
@ -10,6 +10,7 @@
|
|||
#include "386_common.h"
|
||||
|
||||
#include "codegen.h"
|
||||
#include "codegen_accumulate.h"
|
||||
#include "codegen_backend.h"
|
||||
#include "codegen_ir.h"
|
||||
#include "codegen_reg.h"
|
||||
|
|
@ -310,6 +311,7 @@ void codegen_block_start_recompile(codeblock_t *block)
|
|||
|
||||
ir_data = codegen_ir_init();
|
||||
codegen_reg_reset();
|
||||
codegen_accumulate_reset();
|
||||
codegen_generate_reset();
|
||||
}
|
||||
|
||||
|
|
@ -410,6 +412,7 @@ void codegen_block_end_recompile(codeblock_t *block)
|
|||
if (!(block->flags & CODEBLOCK_HAS_FPU))
|
||||
block->flags &= ~CODEBLOCK_STATIC_TOP;
|
||||
|
||||
codegen_accumulate_flush(ir_data);
|
||||
codegen_ir_compile(ir_data, block);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue