[PATCH] ARM: Add architecture information to disassembler tables
Richard Earnshaw
Richard.Earnshaw@buzzard.freeserve.co.uk
Sat Nov 27 11:42:00 GMT 2004
This patch is the first step towards enabling the ARM disassembler to
understand what architecture it is working with. One of the main goals
behind this is to get rid of the ugly XScale/FPA disassembly hack that
arises because of overlapping co-processor numbers.
There are two main changes in this patch:
1) To move the tables (which are static data definitions) from arm-opc.h
to arm-dis.c
2) To add the architecture field to the structure. This is exactly the
same information that is used in the assembler.
However, I've also fixed two minor bugs in the move:
The armv6k specialized architectural nops (yield, etc) are conditional
instructions, but we didn't print out the condition field (we did it for
the nop itself).
There was a stray tab at the end of the thumb setend disassembly. I've
removed that and corrected the testcase in the gas testsuite.
R.
opcodes:
2004-11-27 Richard Earnshaw <rearnsha@arm.com>
* arm-opc.h (arm_opcode, thumb_opcode): Add extra field for the
architecuture defining the insn.
(arm_opcodes, thumb_opcodes): Delete. Move to ...
* arm-dis.c (arm_opcodes, thumb_opcodes): Here. Add architecutre
field.
Also include opcode/arm.h.
* Makefile.am (arm-dis.lo): Update dependency list.
* Makefile.in: Regenerate.
gas/testsuite:
2004-11-27 Richard Earnshaw <rearnsha@arm.com>
* gas/testsuite/arm/thumbv6.d (setend): Remove stray tab at end
of dump pattern.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: arm-dis.patch
Type: text/x-patch
Size: 95401 bytes
Desc: arm-dis.patch
URL: <https://sourceware.org/pipermail/binutils/attachments/20041127/8b926b90/attachment.bin>
More information about the Binutils
mailing list