[PATCH v2 0/3] target/arm: Support SME2 in gdbstub

Peter Maydell posted 3 patches 3 weeks, 6 days ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20251017153027.969016-1-peter.maydell@linaro.org
Maintainers: Warner Losh <imp@bsdimp.com>, Kyle Evans <kevans@freebsd.org>, Laurent Vivier <laurent@vivier.eu>, "Alex Bennée" <alex.bennee@linaro.org>, "Philippe Mathieu-Daudé" <philmd@linaro.org>, Peter Maydell <peter.maydell@linaro.org>
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
[PATCH v2 0/3] target/arm: Support SME2 in gdbstub
Posted by Peter Maydell 3 weeks, 6 days ago
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