aboutsummaryrefslogtreecommitdiff
path: root/opcodes/nios2-opc.c
diff options
context:
space:
mode:
authorSandra Loosemore <sandra@codesourcery.com>2013-06-10 01:04:42 +0000
committerSandra Loosemore <sandra@codesourcery.com>2013-06-10 01:04:42 +0000
commit9daf7bab4f17d991098169b448e30d575c87b36d (patch)
tree866a502237423b8c8ad1322e0d7df2af652d3b5d /opcodes/nios2-opc.c
parenta7cfa99ecff40a27c2d98e3ead69ce66113e88ad (diff)
downloadgdb-9daf7bab4f17d991098169b448e30d575c87b36d.zip
gdb-9daf7bab4f17d991098169b448e30d575c87b36d.tar.gz
gdb-9daf7bab4f17d991098169b448e30d575c87b36d.tar.bz2
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.
Diffstat (limited to 'opcodes/nios2-opc.c')
-rw-r--r--opcodes/nios2-opc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/opcodes/nios2-opc.c b/opcodes/nios2-opc.c
index b2734bd..83cf189 100644
--- a/opcodes/nios2-opc.c
+++ b/opcodes/nios2-opc.c
@@ -385,7 +385,7 @@ const struct nios2_opcode nios2_builtin_opcodes[] =
OP_MATCH_SUB, OP_MASK_ROPX | OP_MASK_ROP, 0, no_overflow},
{"sync", "", "E", 0,
OP_MATCH_SYNC, OP_MASK_SYNC, 0, no_overflow},
- {"trap", "", "E", 0,
+ {"trap", "b", "b,E", 1,
OP_MATCH_TRAP, OP_MASK_TRAP, 0, no_overflow},
{"eret", "", "E", 0,
OP_MATCH_ERET, OP_MASK, 0, no_overflow},