[POWERPC] Make xmon disassembly optional
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 22 Nov 2006 23:46:45 +0000 (00:46 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:32 +0000 (20:40 +1100)
commite0426047cb684842700f0098f74842a38260dbae
treeeec4033ad96e019dbb4e00863c3e03ca6c3ae090
parentaf89fb8041562508895c8f3ba04790d7c2f4338c
[POWERPC] Make xmon disassembly optional

While adding spu disassembly support it struck me that we're actually
carrying quite a lot of code around, just to do disassembly in the case
of a crash.

While on large systems it's not an issue, on smaller ones it might be
nice to have xmon - but without the weight of the disassembly support.
For a Cell build this saves ~230KB (!), and for pSeries ~195KB.

We still support the 'di' and 'sdi' commands, however they just dump
the instruction in hex.

Move the definitions into a header to clean xmon.c just a tiny bit.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/Kconfig.debug
arch/powerpc/xmon/Makefile
arch/powerpc/xmon/dis-asm.h [new file with mode: 0644]
arch/powerpc/xmon/ppc-dis.c
arch/powerpc/xmon/spu-dis.c
arch/powerpc/xmon/xmon.c