target/arm: Advertise MVE to gdb when present
commitdbd9e08476f09cf3556b9b8a306bf277172841a9
authorPeter Maydell <peter.maydell@linaro.org>
Mon, 1 Nov 2021 16:08:14 +0000 (1 16:08 +0000)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 2 Nov 2021 18:14:55 +0000 (2 14:14 -0400)
treebbf2e9e9627b6b33a9d4d6a731e8027559891b75
parentda2f02b360f405d7badc4a3028276e07db58026c
target/arm: Advertise MVE to gdb when present

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>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Message-Id: <20211101160814.5103-1-peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
configs/targets/aarch64-softmmu.mak
configs/targets/arm-linux-user.mak
configs/targets/arm-softmmu.mak
configs/targets/armeb-linux-user.mak
gdb-xml/arm-m-profile-mve.xml [new file with mode: 0644]
target/arm/gdbstub.c