mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-28 14:00:44 +00:00
dbd9e08476
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>
20 lines
768 B
XML
20 lines
768 B
XML
<?xml version="1.0"?>
|
|
<!-- Copyright (C) 2021 Free Software Foundation, Inc.
|
|
|
|
Copying and distribution of this file, with or without modification,
|
|
are permitted in any medium without royalty provided the copyright
|
|
notice and this notice are preserved. -->
|
|
|
|
<!DOCTYPE feature SYSTEM "gdb-target.dtd">
|
|
<feature name="org.gnu.gdb.arm.m-profile-mve">
|
|
<flags id="vpr_reg" size="4">
|
|
<!-- ARMv8.1-M and MVE: Unprivileged and privileged Access. -->
|
|
<field name="P0" start="0" end="15"/>
|
|
<!-- ARMv8.1-M: Privileged Access only. -->
|
|
<field name="MASK01" start="16" end="19"/>
|
|
<!-- ARMv8.1-M: Privileged Access only. -->
|
|
<field name="MASK23" start="20" end="23"/>
|
|
</flags>
|
|
<reg name="vpr" bitsize="32" type="vpr_reg"/>
|
|
</feature>
|