diff options
author | Nick Clifton <nickc@redhat.com> | 2014-05-20 10:28:42 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2014-05-20 10:28:42 +0100 |
commit | 00b32ff21f710a5eed92c9fdf51c32103bcc4176 (patch) | |
tree | b26adf9e6654280500869f1749f0d239f59da1c0 /include/opcode | |
parent | 273dc279306c2b69fbc1407cc695397e4b015152 (diff) | |
download | gdb-00b32ff21f710a5eed92c9fdf51c32103bcc4176.zip gdb-00b32ff21f710a5eed92c9fdf51c32103bcc4176.tar.gz gdb-00b32ff21f710a5eed92c9fdf51c32103bcc4176.tar.bz2 |
Fix MSP430 assembler to support #hi(<symbol>).
* config/tc-msp430.c (CHECK_RELOC_MSP430): Add OP parameter.
Generate BFD_RELOC_MSP430_ABS_HI16 if vshift is 1.
(msp430_srcoperand): Store vshift value in operand.
* msp430.h (struct msp430_operand_s): Add vshift field.
* gas/elf/struct.d: Expect extra output from some toolchains.
* gas/symver/symver0.d: Likewise.
* gas/symver/symver1.d: Likewise.
Diffstat (limited to 'include/opcode')
-rw-r--r-- | include/opcode/ChangeLog | 4 | ||||
-rw-r--r-- | include/opcode/msp430.h | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/include/opcode/ChangeLog b/include/opcode/ChangeLog index e76a4fd..754933b 100644 --- a/include/opcode/ChangeLog +++ b/include/opcode/ChangeLog @@ -1,3 +1,7 @@ +2014-05-19 Nick Clifton <nickc@redhat.com> + + * msp430.h (struct msp430_operand_s): Add vshift field. + 2014-05-07 Andrew Bennett <andrew.bennett@imgtec.com> * mips.h (INSN_ISA_MASK): Updated. diff --git a/include/opcode/msp430.h b/include/opcode/msp430.h index 910565c..0e73815 100644 --- a/include/opcode/msp430.h +++ b/include/opcode/msp430.h @@ -26,7 +26,8 @@ struct msp430_operand_s int ol; /* Operand length words. */ int am; /* Addr mode. */ int reg; /* Register. */ - int mode; /* Pperand mode. */ + int mode; /* Operand mode. */ + int vshift; /* Number of bytes to shift operand down. */ #define OP_REG 0 #define OP_EXP 1 #ifndef DASM_SECTION |