diff options
author | John Darrington <john@darrington.wattle.id.au> | 2019-04-24 09:41:23 +0200 |
---|---|---|
committer | John Darrington <john@darrington.wattle.id.au> | 2019-04-24 10:33:52 +0200 |
commit | a679f24ecc00ff7df02c5e6e4804fc9f19cbe595 (patch) | |
tree | 314b7c379d23089a2c691088d72cf66ab2d4b281 /opcodes | |
parent | d10be0cb9e61f29a0de368ebcc78bba22a902ad5 (diff) | |
download | gdb-a679f24ecc00ff7df02c5e6e4804fc9f19cbe595.zip gdb-a679f24ecc00ff7df02c5e6e4804fc9f19cbe595.tar.gz gdb-a679f24ecc00ff7df02c5e6e4804fc9f19cbe595.tar.bz2 |
S12Z: Opcodes: Handle bit map operations with non-canonical operands.
opcodes/
* s12z-opc.c (bm_decode): Handle the RESERVERD0 case.
gas/
* testsuite/gas/s12z/bit-manip-invalid.d: Extend the test.
* testsuite/gas/s12z/bit-manip-invalid.s: Extend the test.
Diffstat (limited to 'opcodes')
-rw-r--r-- | opcodes/ChangeLog | 5 | ||||
-rw-r--r-- | opcodes/s12z-opc.c | 4 |
2 files changed, 6 insertions, 3 deletions
diff --git a/opcodes/ChangeLog b/opcodes/ChangeLog index b4f85d3..2d0229c 100644 --- a/opcodes/ChangeLog +++ b/opcodes/ChangeLog @@ -3,6 +3,11 @@ * s12z-opc.h: Add extern "C" bracketing to help users who wish to use this interface in c++ code. +2019-04-24 John Darrington <john@darrington.wattle.id.au> + + * s12z-opc.c (bm_decode): Handle bit map operations with the + "reserved0" mode. + 2019-04-15 Thomas Preud'homme <thomas.preudhomme@arm.com> * arm-dis.c (coprocessor_opcodes): Document new %J and %K format diff --git a/opcodes/s12z-opc.c b/opcodes/s12z-opc.c index 1f02f5d..e40f90e 100644 --- a/opcodes/s12z-opc.c +++ b/opcodes/s12z-opc.c @@ -1821,6 +1821,7 @@ bm_decode (struct mem_read_abstraction_base *mra, switch (mode) { case BM_REG_IMM: + case BM_RESERVED0: imm = (bm & 0x38) >> 3; operand[(*n_operands)++] = create_immediate_operand (imm); break; @@ -1838,9 +1839,6 @@ bm_decode (struct mem_read_abstraction_base *mra, case BM_RESERVED1: operand[(*n_operands)++] = create_register_operand ((bm & 0x70) >> 4); break; - case BM_RESERVED0: - assert (0); - break; } } |