target-sh4: log instructions start in TCG code
authorAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:39:18 +0000 (20:39 +0100)
committerAurelien Jarno <aurelien@aurel32.net>
Fri, 14 Jan 2011 19:39:18 +0000 (20:39 +0100)
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
target-sh4/translate.c

index 65ea7f61c7f7c68720bd5a7f1698eb474259548b..b3cbe91d21848b459bb0e04fbf3af4f4851fad0a 100644 (file)
@@ -1892,6 +1892,10 @@ static void decode_opc(DisasContext * ctx)
 {
     uint32_t old_flags = ctx->flags;
 
+    if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP))) {
+        tcg_gen_debug_insn_start(ctx->pc);
+    }
+
     _decode_opc(ctx);
 
     if (old_flags & (DELAY_SLOT | DELAY_SLOT_CONDITIONAL)) {