[PATCH v3][COMMITTED] aarch64: Support 2024 Debug Architecture system registers.

Srinath Parvathaneni srinath.parvathaneni@arm.com
Fri Jun 20 16:25:20 GMT 2025


Changes from v2->v3:
* Removed the default values or the sys_reg parameter name from the
  tests.

------------------
This patch adds support for following system registers and the spec
can be found here[1].
1. PMBSR_EL12, PMBSR_EL2, PMBSR_EL3, PMBMAR_EL1 depends on FEAT_SPE
   and Armv9.5-A architecture and these are enabled by passing
   -march=armv9.5-a+profile.
2. TRBSR_EL12, TRBSR_EL2, and TRBSR_EL3 depends Armv9.5-A architecture
   and these are enabled by passing -march=armv9.5-a.
3. HFGITR2_EL2 depends on Armv8.8-A architecture and enabled by passing
   -march=armv8.8-a.

Regression tested for aarch64-none-elf target and found no regressions.

Ok for binutils-master?

Regards,
Srinath.

[1]: https://developer.arm.com/documentation/ddi0601/2025-03/AArch64-Registers?lang=en
---
 .../gas/aarch64/sysreg/sysreg-10-bad.d        |  3 +
 .../gas/aarch64/sysreg/sysreg-10-bad.l        |  3 +
 gas/testsuite/gas/aarch64/sysreg/sysreg-10.d  | 12 ++++
 gas/testsuite/gas/aarch64/sysreg/sysreg-10.s  |  2 +
 .../gas/aarch64/sysreg/sysreg-9-bad.d         |  3 +
 .../gas/aarch64/sysreg/sysreg-9-bad.l         | 61 +++++++++++++++++++
 .../gas/aarch64/sysreg/sysreg-9-bad.s         | 26 ++++++++
 gas/testsuite/gas/aarch64/sysreg/sysreg-9.d   | 25 ++++++++
 gas/testsuite/gas/aarch64/sysreg/sysreg-9.s   | 14 +++++
 opcodes/aarch64-sys-regs.def                  |  8 +++
 10 files changed, 157 insertions(+)
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-10-bad.d
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-10-bad.l
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-10.d
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-10.s
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-9-bad.d
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-9-bad.l
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-9-bad.s
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-9.d
 create mode 100644 gas/testsuite/gas/aarch64/sysreg/sysreg-9.s

-------------- next part --------------
A non-text attachment was scrubbed...
Name: v3-0001-aarch64-Support-2024-Debug-Architecture-system-re.patch
Type: text/x-patch
Size: 10207 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250620/c7ce08b7/attachment.bin>


More information about the Binutils mailing list