From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Paolo Bonzini <pbonzini@redhat.com>
Subject: [Qemu-devel] [PULL 8/8] tcg: add cs_base and flags to -d exec output
Date: Fri, 29 Dec 2017 11:31:13 -0800 [thread overview]
Message-ID: <20171229193113.11753-9-richard.henderson@linaro.org> (raw)
In-Reply-To: <20171229193113.11753-1-richard.henderson@linaro.org>
From: Paolo Bonzini <pbonzini@redhat.com>
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>
---
accel/tcg/cpu-exec.c | 6 ++++--
accel/tcg/tcg-runtime.c | 5 +++--
2 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/accel/tcg/cpu-exec.c b/accel/tcg/cpu-exec.c
index 4452cd9856..280200f737 100644
--- 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)
uint8_t *tb_ptr = itb->tc.ptr;
qemu_log_mask_and_addr(CPU_LOG_EXEC, itb->pc,
- "Trace %p [%d: " TARGET_FMT_lx "] %s\n",
- itb->tc.ptr, cpu->cpu_index, itb->pc,
+ "Trace %d: %p ["
+ TARGET_FMT_lx "/" TARGET_FMT_lx "/%#x] %s\n",
+ cpu->cpu_index, itb->tc.ptr,
+ itb->cs_base, itb->pc, itb->flags,
lookup_symbol(itb->pc));
#if defined(DEBUG_DISAS)
diff --git a/accel/tcg/tcg-runtime.c b/accel/tcg/tcg-runtime.c
index 4172ffda82..d0d4484406 100644
--- a/accel/tcg/tcg-runtime.c
+++ b/accel/tcg/tcg-runtime.c
@@ -156,8 +156,9 @@ void *HELPER(lookup_tb_ptr)(CPUArchState *env)
return tcg_ctx->code_gen_epilogue;
}
qemu_log_mask_and_addr(CPU_LOG_EXEC, pc,
- "Chain %p [%d: " TARGET_FMT_lx "] %s\n",
- tb->tc.ptr, cpu->cpu_index, pc,
+ "Chain %d: %p ["
+ TARGET_FMT_lx "/" TARGET_FMT_lx "/%#x] %s\n",
+ cpu->cpu_index, tb->tc.ptr, cs_base, pc, flags,
lookup_symbol(pc));
return tb->tc.ptr;
}
--
2.14.3
next prev parent reply other threads:[~2017-12-29 19:31 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-12-29 19:31 [Qemu-devel] [PULL 0/8] tcg queued patches Richard Henderson
2017-12-29 19:31 ` [Qemu-devel] [PULL 1/8] target/*helper: don't check retaddr before calling cpu_restore_state Richard Henderson
2017-12-29 19:31 ` [Qemu-devel] [PULL 2/8] target/moxie: Fix tlb_fill Richard Henderson
2017-12-29 19:31 ` [Qemu-devel] [PULL 3/8] tcg: Remove TCGV_UNUSED* and TCGV_IS_UNUSED* Richard Henderson
2017-12-29 19:31 ` [Qemu-devel] [PULL 4/8] tcg: Dynamically allocate TCGOps Richard Henderson
2017-12-29 19:31 ` [Qemu-devel] [PULL 5/8] tcg: Generalize TCGOp parameters Richard Henderson
2017-12-29 19:31 ` [Qemu-devel] [PULL 6/8] tcg: Add tcg_signed_cond Richard Henderson
2017-12-29 19:31 ` [Qemu-devel] [PULL 7/8] tcg: Allow 6 arguments to TCG helpers Richard Henderson
2017-12-29 19:31 ` Richard Henderson [this message]
2017-12-29 20:01 ` [Qemu-devel] [PULL 0/8] tcg queued patches no-reply
2017-12-29 20:02 ` no-reply
2017-12-29 20:17 ` no-reply
2017-12-29 20:56 ` [Qemu-devel] [PULL v2 " Richard Henderson
2018-01-08 21:01 ` Peter Maydell
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20171229193113.11753-9-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).