diff options
author | Jie Zhang <jie.zhang@analog.com> | 2009-09-04 04:29:42 +0000 |
---|---|---|
committer | Jie Zhang <jie.zhang@analog.com> | 2009-09-04 04:29:42 +0000 |
commit | 66a6900a09dc32b8afc5bf61ee070084025232a7 (patch) | |
tree | 52817ad92869c78f8f890dff7ec0a364dc1331f2 /gas/config/bfin-parse.y | |
parent | 7dd8f318c11c2ac7b92bd34474df5d6b075cf5a7 (diff) | |
download | gdb-66a6900a09dc32b8afc5bf61ee070084025232a7.zip gdb-66a6900a09dc32b8afc5bf61ee070084025232a7.tar.gz gdb-66a6900a09dc32b8afc5bf61ee070084025232a7.tar.bz2 |
gas/
* config/bfin-parse.y (asm_1): Implement HLT instruction.
Fix comments for DBGA, DBGAH and DBGAL.
* config/tc-bfin.c (bfin_gen_pseudodbg_assert): Change according
to the new encoding of DBGA, DBGAH, and DBGAL.
include/
* opcode/bfin.h (PseudoDbg_Assert): Add bits_grp and mask_grp.
(PseudoDbg_Assert_grp_bits, PseudoDbg_Assert_grp_mask): Define.
(PseudoDbg_Assert_dbgop_bits, PseudoDbg_Assert_dbgop_mask,
PseudoDbg_Assert_dontcare_bits, PseudoDbg_Assert_dontcare_mask):
Adjust accordingly.
(init_PseudoDbg_Assert): Add PseudoDbg_Assert_grp_bits and
PseudoDbg_Assert_grp_mask.
opcodes/
* bfin-dis.c (decode_pseudodbg_assert_0): Change according
to the new encoding of DBGA, DBGAH, and DBGAL.
(_print_insn_bfin): Likewise.
Diffstat (limited to 'gas/config/bfin-parse.y')
-rw-r--r-- | gas/config/bfin-parse.y | 14 |
1 files changed, 10 insertions, 4 deletions
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y index 55b688e..003e41a 100644 --- a/gas/config/bfin-parse.y +++ b/gas/config/bfin-parse.y @@ -3588,21 +3588,27 @@ asm_1: $$ = bfin_gen_pseudodbg (3, 5, 0); } + | HLT + { + notethat ("psedoDEBUG: HLT\n"); + $$ = bfin_gen_pseudodbg (3, 4, 0); + } + | DBGA LPAREN HALF_REG COMMA expr RPAREN { - notethat ("pseudodbg_assert: DBGA (dregs_lo , uimm16 )\n"); + notethat ("pseudodbg_assert: DBGA (regs_lo/hi , uimm16 )\n"); $$ = bfin_gen_pseudodbg_assert (IS_H ($3), &$3, uimm16 ($5)); } - + | DBGAH LPAREN REG COMMA expr RPAREN { - notethat ("pseudodbg_assert: DBGAH (dregs , uimm16 )\n"); + notethat ("pseudodbg_assert: DBGAH (regs , uimm16 )\n"); $$ = bfin_gen_pseudodbg_assert (3, &$3, uimm16 ($5)); } | DBGAL LPAREN REG COMMA expr RPAREN { - notethat ("psedodbg_assert: DBGAL (dregs , uimm16 )\n"); + notethat ("psedodbg_assert: DBGAL (regs , uimm16 )\n"); $$ = bfin_gen_pseudodbg_assert (2, &$3, uimm16 ($5)); } |