aboutsummaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorJie Zhang <jie.zhang@analog.com>2009-09-04 04:29:42 +0000
committerJie Zhang <jie.zhang@analog.com>2009-09-04 04:29:42 +0000
commit66a6900a09dc32b8afc5bf61ee070084025232a7 (patch)
tree52817ad92869c78f8f890dff7ec0a364dc1331f2 /gas
parent7dd8f318c11c2ac7b92bd34474df5d6b075cf5a7 (diff)
downloadgdb-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')
-rw-r--r--gas/ChangeLog7
-rw-r--r--gas/config/bfin-parse.y14
-rw-r--r--gas/config/tc-bfin.c3
3 files changed, 20 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 7ed7a3a..a07fed5 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,5 +1,12 @@
2009-09-04 Jie Zhang <jie.zhang@analog.com>
+ * 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.
+
+2009-09-04 Jie Zhang <jie.zhang@analog.com>
+
* doc/all.texi: Replace BFIN with Blackfin.
* doc/as.texinfo: Likewise.
* doc/c-bfin.texi: Likewise.
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));
}
diff --git a/gas/config/tc-bfin.c b/gas/config/tc-bfin.c
index bd0c699..adbc3e4 100644
--- a/gas/config/tc-bfin.c
+++ b/gas/config/tc-bfin.c
@@ -1791,10 +1791,13 @@ bfin_gen_pseudodbg (int fn, int reg, int grp)
INSTR_T
bfin_gen_pseudodbg_assert (int dbgop, REG_T regtest, int expected)
{
+ int grp;
INIT (PseudoDbg_Assert);
ASSIGN (dbgop);
ASSIGN_R (regtest);
+ grp = GROUP (regtest);
+ ASSIGN (grp);
ASSIGN (expected);
return GEN_OPCODE32 ();