diff options
author | Nick Clifton <nickc@redhat.com> | 2013-12-13 12:32:21 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2013-12-13 12:32:21 +0000 |
commit | a75555d13b5d6c927cc0adca2a8b4bbd9da1200e (patch) | |
tree | 40be91431b21543e2610ac3d2e206934d81be85c /gas/doc | |
parent | 3046b3d35684f30a0a0dfe88766b38b3fc578c6c (diff) | |
download | gdb-a75555d13b5d6c927cc0adca2a8b4bbd9da1200e.zip gdb-a75555d13b5d6c927cc0adca2a8b4bbd9da1200e.tar.gz gdb-a75555d13b5d6c927cc0adca2a8b4bbd9da1200e.tar.bz2 |
* config/tc-msp430.c (mcu_types): Add some more 430X mcu names.
(OPTION_INTR_NOPS): Define.
(gen_interrupt_nops): Default to FALSE.
(md_parse_opton): Add support for OPTION_INTR_NOPS.
(md_longopts): Add -mn.
(md_show_usage): Add -mn.
(msp430_operands): Generate NOPs for all MCUs not just 430Xv2.
* doc/c-msp430.c: Document -mn.
Diffstat (limited to 'gas/doc')
-rw-r--r-- | gas/doc/c-msp430.texi | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/gas/doc/c-msp430.texi b/gas/doc/c-msp430.texi index 2927add..77d6fd1 100644 --- a/gas/doc/c-msp430.texi +++ b/gas/doc/c-msp430.texi @@ -46,16 +46,25 @@ enables relaxation at assembly time. DANGEROUS! @item -ml indicates that the input uses the large code model. +@item -mn +enables the generation of a NOP instruction following any instruction +that might change the interrupts enabled/disabled state. The +pipelined nature of the MSP430 core means that any instruction that +changes the interrupt state (@code{EINT}, @code{DINT}, @code{BIC #8, +SR}, @code{BIS #8, SR} or @code{MOV.W <>, SR}) must be +followed by a NOP instruction in order to ensure the correct +processing of interrupts. By default it is up to the programmer to +supply these NOP instructions, but this command line option enables +the automatic insertion by the assembler. Note - the assembler does +not peek ahead to the next instruction so it will insert a NOP even +one is already present. + +@c end-sanitize-msp430 +@c %redact note changed text for mN option @item -mN disables the generation of a NOP instruction following any instruction -that might change the interrupts enabled/disabled state. For the -430Xv2 architecture the instructions: @code{EINT}, @code{DINT}, -@code{BIC #8, SR}, @code{BIS #8, SR} and @code{MOV.W <>, SR} must be -followed by a NOP instruction in order to ensure the correct -processing of interrupts. By default generation of the NOP -instruction happens automatically, but this command line option -disables this behaviour. It is then up to the programmer to ensure -that interrupts are enabled and disabled correctly. +that might change the interrupts enabled/disabled state. This is the +default behaviour. @item -md mark the object file as one that requires data to copied from ROM to |