aboutsummaryrefslogtreecommitdiff
path: root/target/avr/translate.c
diff options
context:
space:
mode:
Diffstat (limited to 'target/avr/translate.c')
-rw-r--r--target/avr/translate.c12
1 files changed, 12 insertions, 0 deletions
diff --git a/target/avr/translate.c b/target/avr/translate.c
index 3d8a77e5ae..648dcd5c3e 100644
--- a/target/avr/translate.c
+++ b/target/avr/translate.c
@@ -3040,6 +3040,18 @@ done_generating:
tb->size = (ctx.npc - pc_start) * 2;
tb->icount = num_insns;
+
+#ifdef DEBUG_DISAS
+ if (qemu_loglevel_mask(CPU_LOG_TB_IN_ASM)
+ && qemu_log_in_addr_range(tb->pc)) {
+ FILE *fd;
+ fd = qemu_log_lock();
+ qemu_log("IN: %s\n", lookup_symbol(tb->pc));
+ log_target_disas(cs, tb->pc, tb->size);
+ qemu_log("\n");
+ qemu_log_unlock(fd);
+ }
+#endif
}
void restore_state_to_opc(CPUAVRState *env, TranslationBlock *tb,