From: Richard Henderson <richard.henderson@linaro.org>
To: qemu-devel@nongnu.org
Cc: pierrick.bouvier@linaro.org, alex.bennee@linaro.org
Subject: [PATCH v2 0/9] plugins: Use unwind info for special gdb registers
Date: Wed, 5 Jun 2024 20:29:17 -0700 [thread overview]
Message-ID: <20240606032926.83599-1-richard.henderson@linaro.org> (raw)
This is an attempt to fix
https://gitlab.com/qemu-project/qemu/-/issues/2208
("PC is not updated for each instruction in TCG plugins")
I have only updated target/{i386,arm} so far, but basically all
targets need updating for the new callbacks. Extra points to
anyone who sees how to avoid the extra code duplication. :-)
r~
Richard Henderson (9):
tcg: Introduce INDEX_op_plugin_pc
accel/tcg: Set CPUState.plugin_ra before all plugin callbacks
accel/tcg: Return the TranslationBlock from cpu_unwind_state_data
plugins: Introduce TCGCPUOps callbacks for mid-tb register reads
target/i386: Split out gdb-internal.h
target/i386: Introduce cpu_compute_eflags_ccop
target/i386: Implement TCGCPUOps for plugin register reads
target/arm: Add aarch64_tcg_ops
target/arm: Implement TCGCPUOps for plugin register reads
include/exec/cpu-common.h | 9 +++--
include/hw/core/cpu.h | 4 +-
include/hw/core/tcg-cpu-ops.h | 14 +++++++
include/tcg/tcg-op-common.h | 1 +
include/tcg/tcg-opc.h | 1 +
target/arm/internals.h | 8 +++-
target/i386/cpu.h | 2 +
target/i386/gdb-internal.h | 65 +++++++++++++++++++++++++++++++
accel/tcg/plugin-gen.c | 49 +++++++++++++++++++++---
accel/tcg/translate-all.c | 9 +++--
plugins/api.c | 36 +++++++++++++++++-
target/arm/cpu.c | 40 ++++++++++++++++++-
target/arm/cpu64.c | 55 ++++++++++++++++++++++++++
target/arm/tcg/cpu-v7m.c | 2 +
target/i386/gdbstub.c | 1 +
target/i386/helper.c | 6 ++-
target/i386/tcg/cc_helper.c | 10 +++++
target/i386/tcg/tcg-cpu.c | 72 +++++++++++++++++++++++++++--------
tcg/tcg-op.c | 5 +++
tcg/tcg.c | 10 +++++
20 files changed, 360 insertions(+), 39 deletions(-)
create mode 100644 target/i386/gdb-internal.h
--
2.34.1
next reply other threads:[~2024-06-06 3:29 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-06-06 3:29 Richard Henderson [this message]
2024-06-06 3:29 ` [PATCH v2 1/9] tcg: Introduce INDEX_op_plugin_pc Richard Henderson
2024-06-06 9:40 ` Alex Bennée
2024-06-06 3:29 ` [PATCH v2 2/9] accel/tcg: Set CPUState.plugin_ra before all plugin callbacks Richard Henderson
2024-06-06 9:44 ` Alex Bennée
2024-06-06 3:29 ` [PATCH v2 3/9] accel/tcg: Return the TranslationBlock from cpu_unwind_state_data Richard Henderson
2024-06-06 9:45 ` Alex Bennée
2024-06-06 3:29 ` [PATCH v2 4/9] plugins: Introduce TCGCPUOps callbacks for mid-tb register reads Richard Henderson
2024-06-06 9:47 ` Alex Bennée
2024-06-06 10:22 ` Alex Bennée
2024-06-06 3:29 ` [PATCH v2 5/9] target/i386: Split out gdb-internal.h Richard Henderson
2024-06-06 6:51 ` Philippe Mathieu-Daudé
2024-06-06 15:27 ` Richard Henderson
2024-06-06 3:29 ` [PATCH v2 6/9] target/i386: Introduce cpu_compute_eflags_ccop Richard Henderson
2024-06-06 3:29 ` [PATCH v2 7/9] target/i386: Implement TCGCPUOps for plugin register reads Richard Henderson
2024-06-06 9:52 ` Alex Bennée
2024-06-06 3:29 ` [PATCH v2 8/9] target/arm: Add aarch64_tcg_ops Richard Henderson
2024-06-12 14:36 ` Alex Bennée
2024-06-12 15:45 ` Richard Henderson
2024-06-13 12:35 ` Alex Bennée
2024-06-06 3:29 ` [PATCH v2 9/9] target/arm: Implement TCGCPUOps for plugin register reads Richard Henderson
2024-06-06 6:55 ` [PATCH v2 0/9] plugins: Use unwind info for special gdb registers Philippe Mathieu-Daudé
2024-06-12 14:39 ` Alex Bennée
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=20240606032926.83599-1-richard.henderson@linaro.org \
--to=richard.henderson@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=pierrick.bouvier@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).