aarch64: Add missing system registers [PR27145]
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Nov 2021 17:50:25 +0000 (17:50 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Nov 2021 17:50:25 +0000 (17:50 +0000)
commite9dac4f0125752f64f7fa76ff4208a3b56493a19
tree915a044208e00738717dbb6bbc3e6e96f135818b
parent3de8c82a4af7c9a0b5901d154cd74b59490aa16e
aarch64: Add missing system registers [PR27145]

This patch adds support for various system registers, up to Armv8.7-A.
This includes all the registers that were mentioned in the PR and that
hadn't become supported since.

opcodes/
PR aarch64/27145
* aarch64-opc.c (SR_V8_4): Remove duplicate definition.
(SR_V8_6, SR_V8_7, SR_GIC, SR_AMU): New macros.
(aarch64_sys_regs): Add missing entries (up to Armv8.7-A).

gas/
PR aarch64/27145
* testsuite/gas/aarch64/sysreg-8.s,
* testsuite/gas/aarch64/sysreg-8.d,
* testsuite/gas/aarch64/illegal-sysreg-8.s,
* testsuite/gas/aarch64/illegal-sysreg-8.d,
* testsuite/gas/aarch64/illegal-sysreg-8.l,
* testsuite/gas/aarch64/illegal-sysreg-8b.s,
* testsuite/gas/aarch64/illegal-sysreg-8b.d,
* testsuite/gas/aarch64/illegal-sysreg-8b.l: New tests.
* testsuite/gas/aarch64/sysreg.s: Change system register numbers
to ones that are still unallocated.
* testsuite/gas/aarch64/sysreg.d: Update accordingly.
gas/testsuite/gas/aarch64/illegal-sysreg-8.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg-8.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg-8.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg-8b.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg-8b.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg-8b.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sysreg-8.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/sysreg-8.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/sysreg.d
gas/testsuite/gas/aarch64/sysreg.s
opcodes/aarch64-opc.c