This patchseries adds SME2 support to the gdbstub. This is fairly straightforward as the only thing we need to do is expose the new ZT0 register in the XML in the way that gdb documents that we should.
Patch 2 adds the TLS section that we should in theory have been exposing already; this mostly will become relevant when gdb implements the SME lazy-state-handling that uses TPIDR2. Patch 3 is a simple "check reads and writes" test case along the lines of our existing SME tests. Changes v1->v2: * use static XML for the sme2 section, not dynamic * add patch 2 for the tls section * tidy up some excessively cut-n-pasted stuff in the testcase script thanks -- PMM Peter Maydell (3): target/arm: Implement SME2 support in gdbstub target/arm: Implement org.gnu.gdb.aarch64.tls XML feature in gdbstub tests/tcg/aarch64: Add test case for SME2 gdbstub registers configs/targets/aarch64-bsd-user.mak | 2 +- configs/targets/aarch64-linux-user.mak | 2 +- configs/targets/aarch64-softmmu.mak | 2 +- configs/targets/aarch64_be-linux-user.mak | 2 +- target/arm/cpu.h | 1 + target/arm/internals.h | 5 + target/arm/gdbstub.c | 12 +++ target/arm/gdbstub64.c | 115 ++++++++++++++++++++++ gdb-xml/aarch64-sme2.xml | 14 +++ tests/tcg/aarch64/Makefile.target | 9 +- tests/tcg/aarch64/gdbstub/test-sme2.py | 36 +++++++ 11 files changed, 195 insertions(+), 5 deletions(-) create mode 100644 gdb-xml/aarch64-sme2.xml create mode 100644 tests/tcg/aarch64/gdbstub/test-sme2.py -- 2.43.0
