]> git.ipfire.org Git - thirdparty/qemu.git/commit
target/arm: Implement org.gnu.gdb.aarch64.tls XML feature in gdbstub
authorPeter Maydell <peter.maydell@linaro.org>
Fri, 17 Oct 2025 15:30:26 +0000 (16:30 +0100)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 23 Oct 2025 12:35:04 +0000 (13:35 +0100)
commit7fd82461ddd41a27dfbbe83647810acaf6331ccc
tree7aaad96a2d5f16aa69495afdb333e3babf77ea7b
parent841bb7d96f72efc4d825b7333b02bda32f3d04f7
target/arm: Implement org.gnu.gdb.aarch64.tls XML feature in gdbstub

GDB expects the TLS registers to be exposed via org.gnu.gdb.aarch64.tls,
which will contain either just "tpidr", or else "tpidr" and "tpidr2".

This will be important for SME in future, because the lazy state
restoration scheme requires GDB to use the TPIDR2 information.
GDB doesn't currently implement that, but we should provide the
register via the XML so that we are ready when future GDB versions
support it.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20251017153027.969016-3-peter.maydell@linaro.org
target/arm/cpu.h
target/arm/gdbstub.c
target/arm/gdbstub64.c
target/arm/internals.h