On 10/17/25 08:30, Peter Maydell wrote:
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 <[email protected]>
---
  target/arm/cpu.h       |  1 +
  target/arm/internals.h |  3 ++
  target/arm/gdbstub.c   |  6 ++++
  target/arm/gdbstub64.c | 63 ++++++++++++++++++++++++++++++++++++++++++
  4 files changed, 73 insertions(+)

Reviewed-by: Richard Henderson <[email protected]>


r~

Reply via email to