Fix debugging of generated code to include the block chainer trampoline.

This commit is contained in:
gbeauche
2006-07-09 15:17:15 +00:00
parent 7d5898f97a
commit d75a91497d

View File

@@ -1543,9 +1543,6 @@ powerpc_cpu::compile_block(uint32 entry_point)
max_pc = dpc;
bi->min_pc = min_pc;
bi->max_pc = max_pc;
bi->size = dg.code_ptr() - bi->entry_point;
if (disasm)
disasm_translation(entry_point, dpc - entry_point + 4, bi->entry_point, bi->size);
#if DYNGEN_DIRECT_BLOCK_CHAINING
// Generate backpatch trampolines
@@ -1567,6 +1564,10 @@ powerpc_cpu::compile_block(uint32 entry_point)
}
#endif
bi->size = dg.code_ptr() - bi->entry_point;
if (disasm)
disasm_translation(entry_point, dpc - entry_point + 4, bi->entry_point, bi->size);
dg.gen_end();
block_cache.add_to_cl_list(bi);
if (is_read_only_memory(bi->pc))