Commit 70cff25e78b68968953f2138b6b473a1701bf979
1 parent
7e4597d7
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
Showing
1 changed file
with
2 additions
and
5 deletions
target-i386/translate.c
| ... | ... | @@ -3586,6 +3586,8 @@ static target_ulong disas_insn(DisasContext *s, target_ulong pc_start) |
| 3586 | 3586 | target_ulong next_eip, tval; |
| 3587 | 3587 | int rex_w, rex_r; |
| 3588 | 3588 | |
| 3589 | + if (unlikely(loglevel & CPU_LOG_TB_OP)) | |
| 3590 | + tcg_gen_debug_insn_start(pc_start); | |
| 3589 | 3591 | s->pc = pc_start; |
| 3590 | 3592 | prefixes = 0; |
| 3591 | 3593 | aflag = s->code32; |
| ... | ... | @@ -7233,11 +7235,6 @@ static inline int gen_intermediate_code_internal(CPUState *env, |
| 7233 | 7235 | disas_flags = !dc->code32; |
| 7234 | 7236 | target_disas(logfile, pc_start, pc_ptr - pc_start, disas_flags); |
| 7235 | 7237 | fprintf(logfile, "\n"); |
| 7236 | - if (loglevel & CPU_LOG_TB_OP_OPT) { | |
| 7237 | - fprintf(logfile, "OP before opt:\n"); | |
| 7238 | - tcg_dump_ops(&tcg_ctx, logfile); | |
| 7239 | - fprintf(logfile, "\n"); | |
| 7240 | - } | |
| 7241 | 7238 | } |
| 7242 | 7239 | #endif |
| 7243 | 7240 | ... | ... |