Revision | 4fad446bc955fcaa08a21388cf82268824bea10e (tree) |
---|---|
Time | 2017-12-30 05:43:40 |
Author | Paolo Bonzini <pbonzini@redh...> |
Commiter | Richard Henderson |
tcg: add cs_base and flags to -d exec output
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20171217055023.29225-1-pbonzini@redhat.com>
[rth: Also change the Chain logging in helper_lookup_tb_ptr.]
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
@@ -146,8 +146,10 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, TranslationBlock *itb) | ||
146 | 146 | uint8_t *tb_ptr = itb->tc.ptr; |
147 | 147 | |
148 | 148 | qemu_log_mask_and_addr(CPU_LOG_EXEC, itb->pc, |
149 | - "Trace %p [%d: " TARGET_FMT_lx "] %s\n", | |
150 | - itb->tc.ptr, cpu->cpu_index, itb->pc, | |
149 | + "Trace %d: %p [" | |
150 | + TARGET_FMT_lx "/" TARGET_FMT_lx "/%#x] %s\n", | |
151 | + cpu->cpu_index, itb->tc.ptr, | |
152 | + itb->cs_base, itb->pc, itb->flags, | |
151 | 153 | lookup_symbol(itb->pc)); |
152 | 154 | |
153 | 155 | #if defined(DEBUG_DISAS) |
@@ -156,8 +156,9 @@ void *HELPER(lookup_tb_ptr)(CPUArchState *env) | ||
156 | 156 | return tcg_ctx->code_gen_epilogue; |
157 | 157 | } |
158 | 158 | qemu_log_mask_and_addr(CPU_LOG_EXEC, pc, |
159 | - "Chain %p [%d: " TARGET_FMT_lx "] %s\n", | |
160 | - tb->tc.ptr, cpu->cpu_index, pc, | |
159 | + "Chain %d: %p [" | |
160 | + TARGET_FMT_lx "/" TARGET_FMT_lx "/%#x] %s\n", | |
161 | + cpu->cpu_index, tb->tc.ptr, cs_base, pc, flags, | |
161 | 162 | lookup_symbol(pc)); |
162 | 163 | return tb->tc.ptr; |
163 | 164 | } |