[PATCH v2] aarch64: Support 2024 Debug Architecture system registers.
Srinath Parvathaneni
srinath.parvathaneni@arm.com
Thu Jun 5 15:01:55 GMT 2025
Changes from v1->v2:
1. Modified the subject of the patch.
2. Added new testcases for the new sysregs instead of using the
existing testcases.
3. Modified the guarding of few sysregs by including "PROFILE"
(FEAT_SPE) in their guarding condition as per spec.
4. Also included the support for PMBSR_EL12 and TRBSR_EL12
system registers.
---------------
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: v2-0001-aarch64-Support-2024-Debug-Architecture-system-re.patch
Type: text/x-patch
Size: 10558 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20250605/cc2051b8/attachment-0001.bin>
More information about the Binutils
mailing list