This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Undefined Thumb instruction disassembly


Thumb instructions starting 0xde are architecturally undefined.
The patch below adds an opcode entry to disassemble them as such. Currently 
they are disassembled as the (non-existant) bal.n instruction.

Applied to head.

Paul

2006-03-27  Paul Brook  <paul@codesourcery.com>

	opcodes/
	* arm-dis.c (thumb_opcodes): Add entry for undefined insns (0xbe??).

Index: opcodes/arm-dis.c
===================================================================
RCS file: /var/cvsroot/src-cvs/src/opcodes/arm-dis.c,v
retrieving revision 1.79
diff -u -p -r1.79 arm-dis.c
--- opcodes/arm-dis.c	24 Mar 2007 02:51:28 -0000	1.79
+++ opcodes/arm-dis.c	27 Mar 2007 20:16:37 -0000
@@ -1145,6 +1145,7 @@ static const struct opcode16 thumb_opcod
   /* format 17 */
   {ARM_EXT_V4T, 0xDF00, 0xFF00, "svc%c\t%0-7d"},
   /* format 16 */
+  {ARM_EXT_V4T, 0xDE00, 0xFE00, "undefined"},
   {ARM_EXT_V4T, 0xD000, 0xF000, "b%8-11c.n\t%0-7B%X"},
   /* format 18 */
   {ARM_EXT_V4T, 0xE000, 0xF800, "b%c.n\t%0-10B%x"},


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]