aarch64/sme2: Teach binutils/BFD about the NT_ARM_ZT register set

The Scalable Matrix Extension v2 (SME2) defines a new register, ZT0, that
the Linux Kernel handles through a new NT_ARM_ZT register set.

Teach binutils/BFD about it so that gdb can make use of it for reading
and writing core files.  This also enables readelf/objdump to show the
correct identification for the NT_ARM_ZT register set.

Validated under Fast Models.
This commit is contained in:
Luis Machado
2023-04-04 14:13:50 +01:00
parent 682267bfe4
commit 11e3488d3f
4 changed files with 43 additions and 0 deletions

View File

@@ -701,6 +701,8 @@
/* Note: name must be "LINUX". */
#define NT_ARM_ZA 0x40c /* AArch64 SME ZA register. */
/* Note: name must be "LINUX". */
#define NT_ARM_ZT 0x40d /* AArch64 SME2 ZT registers. */
/* Note: name must be "LINUX". */
#define NT_ARC_V2 0x600 /* ARC HS accumulator/extra registers. */
/* note name must be "LINUX". */
#define NT_LARCH_CPUCFG 0xa00 /* LoongArch CPU config registers */