Browse Source
For SME2, we need to expose the new ZT0 register in the gdbstub XML. gdb documents that the requirements are: > The ‘org.gnu.gdb.aarch64.sme2’ feature is optional. If present, > then the ‘org.gnu.gdb.aarch64.sme’ feature must also be present. > The ‘org.gnu.gdb.aarch64.sme2’ feature should contain the > following: > > - ZT0 is a register of 512 bits (64 bytes). It is defined as a > vector of bytes. Implement this. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-id: 20251017153027.969016-2-peter.maydell@linaro.orgpull/307/head
8 changed files with 78 additions and 4 deletions
@ -1,4 +1,4 @@ |
|||
TARGET_ARCH=aarch64 |
|||
TARGET_BASE_ARCH=arm |
|||
TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/aarch64-pauth.xml |
|||
TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/aarch64-pauth.xml gdb-xml/aarch64-sme2.xml |
|||
TARGET_LONG_BITS=64 |
|||
|
|||
@ -1,7 +1,7 @@ |
|||
TARGET_ARCH=aarch64 |
|||
TARGET_BASE_ARCH=arm |
|||
TARGET_KVM_HAVE_GUEST_DEBUG=y |
|||
TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-vfp-sysregs.xml gdb-xml/arm-neon.xml gdb-xml/arm-m-profile.xml gdb-xml/arm-m-profile-mve.xml gdb-xml/aarch64-pauth.xml |
|||
TARGET_XML_FILES= gdb-xml/aarch64-core.xml gdb-xml/aarch64-fpu.xml gdb-xml/arm-core.xml gdb-xml/arm-vfp.xml gdb-xml/arm-vfp3.xml gdb-xml/arm-vfp-sysregs.xml gdb-xml/arm-neon.xml gdb-xml/arm-m-profile.xml gdb-xml/arm-m-profile-mve.xml gdb-xml/aarch64-pauth.xml gdb-xml/aarch64-sme2.xml |
|||
# needed by boot.c
|
|||
TARGET_NEED_FDT=y |
|||
TARGET_LONG_BITS=64 |
|||
|
|||
@ -0,0 +1,14 @@ |
|||
<?xml version="1.0"?> |
|||
<!-- Copyright (C) 2025 Linaro Ltd. |
|||
|
|||
SPDX-License-Identifier: GPL-2.0-or-later |
|||
|
|||
This is the SME2 ZT0 register. Upstream GDB dynamically generates |
|||
the XML for this feature, but because the vector is always 64 bytes |
|||
in size we prefer to use static XML for it. |
|||
--> |
|||
<!DOCTYPE feature SYSTEM "gdb-target.dtd"> |
|||
<feature name="org.gnu.gdb.aarch64.sme2"> |
|||
<vector id="sme2_bv" type="uint8" count="64"/> |
|||
<reg name="zt0" bitsize="512" type="sme2_bv"/> |
|||
</feature> |
|||
Loading…
Reference in new issue