diff options
author | Steve Ellcey <Steve.Ellcey@imgtec.com> | 2014-12-18 10:41:50 -0800 |
---|---|---|
committer | Steve Ellcey <Steve.Ellcey@imgtec.com> | 2014-12-18 10:41:50 -0800 |
commit | b3e9a4171187f64c03d1858c2c840113df6b02de (patch) | |
tree | 24ed906374d33eabcbd3cfccc5d5b6ea9b4f5f51 /binutils-2.25/opcodes/mips-formats.h | |
parent | bbff162609624c737f72b070e2b53aeb5ed1e958 (diff) | |
download | toolchain_binutils-b3e9a4171187f64c03d1858c2c840113df6b02de.zip toolchain_binutils-b3e9a4171187f64c03d1858c2c840113df6b02de.tar.gz toolchain_binutils-b3e9a4171187f64c03d1858c2c840113df6b02de.tar.bz2 |
Add MIPS specific changes to binutils 2.25 (prerelease) for MIPSR6 bug fixes,
MXU support, and a fix to needed by gdbserver.
Diffstat (limited to 'binutils-2.25/opcodes/mips-formats.h')
-rw-r--r-- | binutils-2.25/opcodes/mips-formats.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/binutils-2.25/opcodes/mips-formats.h b/binutils-2.25/opcodes/mips-formats.h index 116d7c8..9c265a5 100644 --- a/binutils-2.25/opcodes/mips-formats.h +++ b/binutils-2.25/opcodes/mips-formats.h @@ -53,6 +53,16 @@ return &op.root; \ } +#define MAPPED_STRING(SIZE, LSB, MAP, ALLOW_CONSTANTS) \ + { \ + typedef char ATTRIBUTE_UNUSED \ + static_assert[(1 << (SIZE)) == ARRAY_SIZE (MAP)]; \ + static const struct mips_mapped_string_operand op = { \ + { OP_MAPPED_STRING, SIZE, LSB }, MAP, ALLOW_CONSTANTS \ + }; \ + return &op.root; \ + } + #define MSB(SIZE, LSB, BIAS, ADD_LSB, OPSIZE) \ { \ static const struct mips_msb_operand op = { \ |