summaryrefslogtreecommitdiff
path: root/target-s390x
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-09-24 14:55:49 -0700
committerAurelien Jarno <aurelien@aurel32.net>2012-09-27 21:38:51 +0200
commit7193b5f6f52d633531406771b9370d7b591cef88 (patch)
tree61e961766d408cb5d1b9dd3bff57f74155eaf847 /target-s390x
parentfa547e617c2f499903dccb8f1b9031bfe724e11e (diff)
downloadqemu-7193b5f6f52d633531406771b9370d7b591cef88.tar.gz
qemu-7193b5f6f52d633531406771b9370d7b591cef88.tar.bz2
qemu-7193b5f6f52d633531406771b9370d7b591cef88.zip
target-s390x: Call tcg_gen_debug_insn_start
Cc: Alexander Graf <agraf@suse.de> Signed-off-by: Richard Henderson <rth@twiddle.net> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-s390x')
-rw-r--r--target-s390x/translate.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/target-s390x/translate.c b/target-s390x/translate.c
index 3214783aaa..6fa76a00f4 100644
--- a/target-s390x/translate.c
+++ b/target-s390x/translate.c
@@ -5173,10 +5173,11 @@ static inline void gen_intermediate_code_internal(CPUS390XState *env,
if (num_insns + 1 == max_insns && (tb->cflags & CF_LAST_IO)) {
gen_io_start();
}
-#if defined(S390X_DEBUG_DISAS_VERBOSE)
- LOG_DISAS("pc " TARGET_FMT_lx "\n",
- dc.pc);
-#endif
+
+ if (unlikely(qemu_loglevel_mask(CPU_LOG_TB_OP | CPU_LOG_TB_OP_OPT))) {
+ tcg_gen_debug_insn_start(dc.pc);
+ }
+
disas_s390_insn(env, &dc);
num_insns++;