[patch, nios2] support optional argument to trap instruction

Sandra Loosemore sandra@codesourcery.com
Mon Jun 10 01:10:00 GMT 2013


I've checked in this patch to make the assembler know about the optional 
argument to the "trap" instruction.  It is exactly like the optional 
argument to "break", which is already handled; it was just an oversight 
that "trap" didn't DTRT.

Giving credit where credit is due, this patch was suggested by Jeff 
Prothero of Altera.

-Sandra


2013-06-09  Sandra Loosemore  <sandra@codesourcery.com>

	opcodes/
	* nios2-opc.c (nios2_builtin_opcodes): Give "trap" a type-"b"
	argument.

	gas/
	* config/tc-nios2.c (nios2_parse_args):  Allow trap argument to
	omitted.

	gas/testsuite/
	* gas/nios2/trap.s: Add additional test cases for optional
	argument.
	* gas/nios2/trap.d: Likewise.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: trap.patch
Type: text/x-patch
Size: 2528 bytes
Desc: not available
URL: <https://sourceware.org/pipermail/binutils/attachments/20130610/14cd2f92/attachment.bin>


More information about the Binutils mailing list