This is the mail archive of the
mailing list for the binutils project.
Re: [PATCH] ARM: Add architecture information to disassembler tables
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.