• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revision4fad446bc955fcaa08a21388cf82268824bea10e (tree)
Time2017-12-30 05:43:40
AuthorPaolo Bonzini <pbonzini@redh...>
CommiterRichard Henderson

Log Message

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>

Change Summary

Incremental Difference

--- a/accel/tcg/cpu-exec.c
+++ b/accel/tcg/cpu-exec.c
@@ -146,8 +146,10 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, TranslationBlock *itb)
146146 uint8_t *tb_ptr = itb->tc.ptr;
147147
148148 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,
151153 lookup_symbol(itb->pc));
152154
153155 #if defined(DEBUG_DISAS)
--- a/accel/tcg/tcg-runtime.c
+++ b/accel/tcg/tcg-runtime.c
@@ -156,8 +156,9 @@ void *HELPER(lookup_tb_ptr)(CPUArchState *env)
156156 return tcg_ctx->code_gen_epilogue;
157157 }
158158 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,
161162 lookup_symbol(pc));
162163 return tb->tc.ptr;
163164 }