Add support to AArch64 disassembler for verifying instructions. Add verifier for...
authorNick Clifton <nickc@redhat.com>
Thu, 28 Apr 2016 08:11:03 +0000 (09:11 +0100)
committerNick Clifton <nickc@redhat.com>
Thu, 28 Apr 2016 08:11:03 +0000 (09:11 +0100)
commit4bd13cde17a27c342b79b72bde9ef8e1b5373344
treeb8216b559ad09261cc8a82c332e6c8ac90b3959a
parenta3a65e6e1d8b31bf2c8b0abca1903106ae48e092
Add support to AArch64 disassembler for verifying instructions.  Add verifier for LDPSW.

PR target/19722
opcodes * aarch64-dis.c (aarch64_opcode_decode): Run verifier if present.
* aarch64-opc.c (verify_ldpsw): New function.
* aarch64-opc.h (verify_ldpsw): New prototype.
* aarch64-tbl.h: Add initialiser for verifier field.
(LDPSW): Set verifier to verify_ldpsw.

binutils* testsuite/binutils-all/aarch64/illegal.s: New test.
* testsuite/binutils-all/aarch64/illegal.d: New test driver.

include * opcode/aarch64.h (struct aarch64_opcode): Add verifier field.
binutils/ChangeLog
binutils/testsuite/binutils-all/aarch64/illegal.d [new file with mode: 0644]
binutils/testsuite/binutils-all/aarch64/illegal.s [new file with mode: 0644]
include/ChangeLog
include/opcode/aarch64.h
opcodes/ChangeLog
opcodes/aarch64-dis.c
opcodes/aarch64-opc.c
opcodes/aarch64-opc.h
opcodes/aarch64-tbl.h