[PATCH] ARM: Add architecture information to disassembler tables

Hans-Peter Nilsson hp@bitrange.com
Sun Nov 28 10:31:00 GMT 2004


On Sat, 27 Nov 2004, Richard Earnshaw wrote:
> 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

For the record, opcode tables that are shared with the assembler
usually go in a file named opcodes/<target>-opc.c, not in the
opcodes/<target>-dis.c file.  The minor difference is that the
assembler then doesn't link in the disassembly code.  Just
mentioned as a note for new targets, which might be inclined to
take after traits of the more well-known targets.

brgds, H-P



More information about the Binutils mailing list