]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
aarch64: Make spmzr_el0 write-only
authorAlice Carlotti <alice.carlotti@arm.com>
Tue, 2 Sep 2025 14:49:40 +0000 (15:49 +0100)
committerAlice Carlotti <alice.carlotti@arm.com>
Tue, 23 Sep 2025 18:42:43 +0000 (19:42 +0100)
commit563f41735224432457a2a977e740560b62d3ec10
treedc3a1d11c185c45c285fdf91d4bfe70ae712cf0a
parent082ba41d9f855405eebd92c6717113770feb9a8a
aarch64: Make spmzr_el0 write-only

Remove all test cases that expect spmzr_el0 to be readable, and remove
some redundant default macro values from armv9_5-a-sysregs.s while we're
there.

Add a read of spmzr_el0 to sysreg-diagnostics.s.  This turns out to be
the first test for the "reading from a write-only register" note.
Also remove the recently added -menable-sysreg-checking option from this
test, both to simplify the addition of spmzr_el0 to the test, and to
verify that read/write diagnostics don't depend on that option.
12 files changed:
gas/testsuite/gas/aarch64/sysreg/armv9_5-a-sysregs-archv9_4-unsupported.l
gas/testsuite/gas/aarch64/sysreg/armv9_5-a-sysregs.d
gas/testsuite/gas/aarch64/sysreg/armv9_5-a-sysregs.s
gas/testsuite/gas/aarch64/sysreg/sysreg-diagnostic.d
gas/testsuite/gas/aarch64/sysreg/sysreg-diagnostic.l
gas/testsuite/gas/aarch64/sysreg/sysreg-diagnostic.s
gas/testsuite/gas/aarch64/sysreg/sysregs_with_no_restrictions-bad.l
gas/testsuite/gas/aarch64/sysreg/sysregs_with_no_restrictions.d
gas/testsuite/gas/aarch64/sysreg/sysregs_with_no_restrictions.s
gas/testsuite/gas/aarch64/sysreg/sysregs_with_restrictions.d
gas/testsuite/gas/aarch64/sysreg/sysregs_with_restrictions.s
opcodes/aarch64-sys-regs.def