diff options
author | Max Filippov <jcmvbkbc@gmail.com> | 2013-08-17 12:30:57 +0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2013-10-15 17:23:46 +0400 |
commit | ca529f8e13557cc2feb2eee3872d422712d9bcb0 (patch) | |
tree | 8748cdedda78485196b452b01b68fb739bb44b58 /target-xtensa | |
parent | 1680d485777ecf436d724631ea8722cc0c66990e (diff) | |
download | hqemu-ca529f8e13557cc2feb2eee3872d422712d9bcb0.zip hqemu-ca529f8e13557cc2feb2eee3872d422712d9bcb0.tar.gz |
target-xtensa: add in_asm logging
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'target-xtensa')
-rw-r--r-- | target-xtensa/translate.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/target-xtensa/translate.c b/target-xtensa/translate.c index 06641bb..2d2df33 100644 --- a/target-xtensa/translate.c +++ b/target-xtensa/translate.c @@ -3016,6 +3016,14 @@ void gen_intermediate_code_internal(XtensaCPU *cpu, gen_tb_end(tb, insn_count); *tcg_ctx.gen_opc_ptr = INDEX_op_end; +#ifdef DEBUG_DISAS + if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)) { + qemu_log("----------------\n"); + qemu_log("IN: %s\n", lookup_symbol(pc_start)); + log_target_disas(env, pc_start, dc.pc - pc_start, 0); + qemu_log("\n"); + } +#endif if (search_pc) { j = tcg_ctx.gen_opc_ptr - tcg_ctx.gen_opc_buf; memset(tcg_ctx.gen_opc_instr_start + lj + 1, 0, |