diff options
author | Alex Bennée <alex.bennee@linaro.org> | 2016-10-27 16:10:01 +0100 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2016-10-31 10:24:46 +0100 |
commit | 4426f83a9ac7bbce48602c712333efc79cd57b29 (patch) | |
tree | de87e4834fd0ab3dc263b655d969035edeaa352f /cpu-exec.c | |
parent | 301e40ed8005306c009978be295ed9a4b725178b (diff) | |
download | qemu-4426f83a9ac7bbce48602c712333efc79cd57b29.zip qemu-4426f83a9ac7bbce48602c712333efc79cd57b29.tar.gz qemu-4426f83a9ac7bbce48602c712333efc79cd57b29.tar.bz2 |
cpu-exec: include cpu_index in CPU_LOG_EXEC messages
Even more important when debugging MTTCG is seeing which vCPU is
currently executing.
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <rth@twiddle.net>
Message-Id: <20161027151030.20863-5-alex.bennee@linaro.org>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'cpu-exec.c')
-rw-r--r-- | cpu-exec.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -143,8 +143,9 @@ static inline tcg_target_ulong cpu_tb_exec(CPUState *cpu, TranslationBlock *itb) uint8_t *tb_ptr = itb->tc_ptr; qemu_log_mask_and_addr(CPU_LOG_EXEC, itb->pc, - "Trace %p [" TARGET_FMT_lx "] %s\n", - itb->tc_ptr, itb->pc, lookup_symbol(itb->pc)); + "Trace %p [%d: " TARGET_FMT_lx "] %s\n", + itb->tc_ptr, cpu->cpu_index, itb->pc, + lookup_symbol(itb->pc)); #if defined(DEBUG_DISAS) if (qemu_loglevel_mask(CPU_LOG_TB_CPU) |