diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-22 17:00:49 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-22 17:00:49 +0000 |
commit | 70cff25e78b68968953f2138b6b473a1701bf979 (patch) | |
tree | 342aa839ca2c81b5b6f344d32c845a208bd31e35 /target-i386/translate.c | |
parent | 7e4597d7aea6a085f5ebfcfe56654d4c46a2ede7 (diff) | |
download | hqemu-70cff25e78b68968953f2138b6b473a1701bf979.zip hqemu-70cff25e78b68968953f2138b6b473a1701bf979.tar.gz |
use debug_insn_start to have nicer debug traces
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4532 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'target-i386/translate.c')
-rw-r--r-- | target-i386/translate.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/target-i386/translate.c b/target-i386/translate.c index 3241939..5bb6034 100644 --- a/target-i386/translate.c +++ b/target-i386/translate.c @@ -3586,6 +3586,8 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) target_ulong next_eip, tval; int rex_w, rex_r; + if (unlikely(loglevel & CPU_LOG_TB_OP)) + tcg_gen_debug_insn_start(pc_start); s->pc = pc_start; prefixes = 0; aflag = s->code32; @@ -7233,11 +7235,6 @@ static inline int gen_intermediate_code_internal(CPUState *env, disas_flags = !dc->code32; target_disas(logfile, pc_start, pc_ptr - pc_start, disas_flags); fprintf(logfile, "\n"); - if (loglevel & CPU_LOG_TB_OP_OPT) { - fprintf(logfile, "OP before opt:\n"); - tcg_dump_ops(&tcg_ctx, logfile); - fprintf(logfile, "\n"); - } } #endif |