From: "Philippe Mathieu-Daudé" <philmd@redhat.com>
To: Peter Maydell <peter.maydell@linaro.org>,
qemu-arm@nongnu.org, qemu-devel@nongnu.org
Cc: Richard Henderson <richard.henderson@linaro.org>
Subject: Re: [PATCH v2 for-6.2] target/arm: Advertise MVE to gdb when present
Date: Mon, 1 Nov 2021 18:21:07 +0100 [thread overview]
Message-ID: <8eefc43b-97f4-0608-ee79-9296de44b433@redhat.com> (raw)
In-Reply-To: <20211101160814.5103-1-peter.maydell@linaro.org>
On 11/1/21 17:08, Peter Maydell wrote:
> Cortex-M CPUs with MVE should advertise this fact to gdb, using the
> org.gnu.gdb.arm.m-profile-mve XML feature, which defines the VPR
> register. Presence of this feature also tells gdb to create
> pseudo-registers Q0..Q7, so we do not need to tell gdb about them
> separately.
>
> Note that unless you have a very recent GDB that includes this fix:
> http://patches-tcwg.linaro.org/patch/58133/ gdb will mis-print the
> individual fields of the VPR register as zero (but showing the whole
> thing as hex, eg with "print /x $vpr" will give the correct value).
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> Reposting this unchanged except to remove the 'RFC' tag, as
> the gdb patches have now gone upstream and the XML layout is
> therefore finalized.
> ---
> configs/targets/aarch64-softmmu.mak | 2 +-
> configs/targets/arm-linux-user.mak | 2 +-
> configs/targets/arm-softmmu.mak | 2 +-
> configs/targets/armeb-linux-user.mak | 2 +-
> target/arm/gdbstub.c | 25 +++++++++++++++++++++++++
> gdb-xml/arm-m-profile-mve.xml | 19 +++++++++++++++++++
> 6 files changed, 48 insertions(+), 4 deletions(-)
> create mode 100644 gdb-xml/arm-m-profile-mve.xml
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
next prev parent reply other threads:[~2021-11-01 17:25 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-11-01 16:08 [PATCH v2 for-6.2] target/arm: Advertise MVE to gdb when present Peter Maydell
2021-11-01 17:21 ` Philippe Mathieu-Daudé [this message]
2021-11-01 17:38 ` Richard Henderson
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=8eefc43b-97f4-0608-ee79-9296de44b433@redhat.com \
--to=philmd@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.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).