From dbd9e08476f09cf3556b9b8a306bf277172841a9 Mon Sep 17 00:00:00 2001 From: Peter Maydell Date: Mon, 1 Nov 2021 16:08:14 +0000 Subject: target/arm: Advertise MVE to gdb when present MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-Id: <20211101160814.5103-1-peter.maydell@linaro.org> Signed-off-by: Richard Henderson --- gdb-xml/arm-m-profile-mve.xml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 gdb-xml/arm-m-profile-mve.xml (limited to 'gdb-xml/arm-m-profile-mve.xml') diff --git a/gdb-xml/arm-m-profile-mve.xml b/gdb-xml/arm-m-profile-mve.xml new file mode 100644 index 0000000000..cba664c4c5 --- /dev/null +++ b/gdb-xml/arm-m-profile-mve.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + -- cgit v1.2.3