qemu-arm
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v2 for-6.2] target/arm: Advertise MVE to gdb when present


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH v2 for-6.2] target/arm: Advertise MVE to gdb when present
Date: Mon, 1 Nov 2021 18:21:07 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.2.0

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>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]