Add missing ARMv8-M special registers
authorThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 26 Aug 2016 10:53:30 +0000 (11:53 +0100)
committerThomas Preud'homme <thomas.preudhomme@arm.com>
Fri, 26 Aug 2016 10:53:30 +0000 (11:53 +0100)
commit1a336194b70b712074a3f5479a01cc221003a152
tree77d4f16fb202dd9a8805b0e081d87a683a90e13e
parent980aa3e6dfeb0f018915f65be4b2987667f31fe9
Add missing ARMv8-M special registers

2016-08-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>

gas/
* config/tc-arm.c (v7m_psrs): Add MSPLIM, PSPLIM, MSPLIM_NS,
PSPLIM_NS, PRIMASK_NS, BASEPRI_NS, FAULTMASK_NS, CONTROL_NS, SP_NS and
their lowecase counterpart special registers.  Write register
identifier in hex.
* testsuite/gas/arm/archv8m-cmse-msr.s: Reorganize tests per
operation, special register and then case.  Use different register for
each operation.  Add tests for new special registers.
* testsuite/gas/arm/archv8m-cmse-msr-base.d: Adapt expected result
accordingly.
* testsuite/gas/arm/archv8m-cmse-msr-main.d: Likewise.
* testsuite/gas/arm/archv8m-main-dsp-4.d: Likewise.

opcodes/
* arm-dis.c (psr_name): Use hex as case labels.  Add detection for
MSPLIM, PSPLIM, MSPLIM_NS, PSPLIM_NS, PRIMASK_NS, BASEPRI_NS,
FAULTMASK_NS, CONTROL_NS and SP_NS special registers.
gas/ChangeLog
gas/config/tc-arm.c
gas/testsuite/gas/arm/archv8m-cmse-msr-base.d
gas/testsuite/gas/arm/archv8m-cmse-msr-main.d
gas/testsuite/gas/arm/archv8m-cmse-msr.s
gas/testsuite/gas/arm/archv8m-main-dsp-4.d
opcodes/ChangeLog
opcodes/arm-dis.c