aarch64: Mark PMSIDR_EL1 as read-only
authorRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Nov 2021 17:50:24 +0000 (17:50 +0000)
committerRichard Sandiford <richard.sandiford@arm.com>
Tue, 30 Nov 2021 17:50:24 +0000 (17:50 +0000)
commit1864b6578bd96bee057ed4ce5f69917c9ad9abc9
tree6dc19b9e2e0f6f5b33c26f5d65f36f86730e958c
parent31a8056f2f519fda71682cffd0eac6ba87a59c8e
aarch64: Mark PMSIDR_EL1 as read-only

We were incorrectly allowing writes to PMSIDR_EL1, which is
a read-only register.
[https://developer.arm.com/documentation/ddi0595/2021-09/AArch64-Registers/PMSIDR-EL1--Sampling-Profiling-ID-Register?lang=en]

opcodes/
* aarch64-opc.c (aarch64_sys_regs): Make pmsidr_el1 as F_REG_READ.

gas/
* testsuite/gas/aarch64/msr.s: Remove write to pmsidr_el1.
* testsuite/gas/aarch64/msr.d: Update accordingly.
* testsuite/gas/aarch64/illegal-sysreg-2.s,
* testsuite/gas/aarch64/illegal-sysreg-2.d,
* testsuite/gas/aarch64/illegal-sysreg-2.l: New test.
gas/testsuite/gas/aarch64/illegal-sysreg-2.d [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg-2.l [new file with mode: 0644]
gas/testsuite/gas/aarch64/illegal-sysreg-2.s [new file with mode: 0644]
gas/testsuite/gas/aarch64/msr.d
gas/testsuite/gas/aarch64/msr.s
opcodes/aarch64-opc.c