[PATCH] gas: blackfin: support ABORT debug insn

Mike Frysinger vapier@gentoo.org
Tue Sep 21 06:08:00 GMT 2010


There is a pseudo debug insn named ABORT that is commonly used in
simulation, so support it in the assembler too.  The disassembler
already supports it.

Signed-off-by: Mike Frysinger <vapier@gentoo.org>

2010-09-21  Mike Frysinger  <vapier@gentoo.org>

	* bfin-lex.l (abort): Accept case-insensitive abort insn.
	* bfin-parse.y (ABORT): Handle the ABORT token.
---
 gas/config/bfin-lex.l   |    2 +-
 gas/config/bfin-parse.y |    6 ++++++
 2 files changed, 7 insertions(+), 1 deletions(-)

diff --git a/gas/config/bfin-lex.l b/gas/config/bfin-lex.l
index 1b80bf9..aa05692 100644
--- a/gas/config/bfin-lex.l
+++ b/gas/config/bfin-lex.l
@@ -230,7 +230,7 @@ int yylex (void);
 [aA]1"."[hH]    return A_ONE_DOT_H;
 [aA]0"."[hH]    return A_ZERO_DOT_H;
 [aA][bB][sS]                            return ABS;
-abort                                   return ABORT;
+[aA][bB][oO][rR][tT]                    return ABORT;
 [aA]1"."[xX]    _REG.regno = REG_A1x; return REG;
 [aA]1"."[wW]    _REG.regno = REG_A1w; return REG;
 [aA]1           _REG.regno = REG_A1;  return REG_A_DOUBLE_ONE;
diff --git a/gas/config/bfin-parse.y b/gas/config/bfin-parse.y
index 2d569e2..747442c 100644
--- a/gas/config/bfin-parse.y
+++ b/gas/config/bfin-parse.y
@@ -3558,6 +3558,12 @@ asm_1:
 
 /* pseudoDEBUG.  */
 
+	| ABORT
+	{
+	  notethat ("psedoDEBUG: ABORT\n");
+	  $$ = bfin_gen_pseudodbg (3, 3, 0);
+	}
+
 	| DBG
 	{
 	  notethat ("pseudoDEBUG: DBG\n");
-- 
1.7.2



More information about the Binutils mailing list