[AArch64] Fix missing architecture checks for ARMv8.2 system registers.
authorMatthew Wahab <matthew.wahab@arm.com>
Thu, 14 Jan 2016 10:55:11 +0000 (10:55 +0000)
committerMatthew Wahab <matthew.wahab@arm.com>
Thu, 14 Jan 2016 10:55:11 +0000 (10:55 +0000)
commit651657fa61aa0a2946d56063295a7ce8d73f803b
tree769828d8e10d83d8acbb131d76dce5b6d345284c
parent4c4ac9642a973e825d71584b526ee8bbb83fdbd2
[AArch64] Fix missing architecture checks for ARMv8.2 system registers.

Some of the RAS system registers added to binutils as part of the ARMv8.2
support are missing the feature checks to warn when they aren't
supported by the target.

This patch adds the missing feature checks with a test to check that
the correct warnings are given for all the ARMv8.2 system registers.

gas/
2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>

* testsuite/gas/aarch64/illegal-sysreg-2.l: New.
* testsuite/gas/aarch64/illegal-sysreg-2.d: New.

opcodes/
2016-01-14  Matthew Wahab  <matthew.wahab@arm.com>

* aarch64-opc.c (aarch64_sys_reg_supported_p): Merge conditionals
testing for RAS support.  Add checks for erxfr_el1, erxctlr_el1,
erxtatus_el1 and erxaddr_el1.

Change-Id: I66b590ea49c1eb6b0e5c93e0dc2bc9c4e79a52fe
gas/ChangeLog
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]
opcodes/ChangeLog
opcodes/aarch64-opc.c