[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>
Showing
- arch/powerpc/Kconfig.debug 9 additions, 0 deletionsarch/powerpc/Kconfig.debug
- arch/powerpc/xmon/Makefile 6 additions, 2 deletionsarch/powerpc/xmon/Makefile
- arch/powerpc/xmon/dis-asm.h 31 additions, 0 deletionsarch/powerpc/xmon/dis-asm.h
- arch/powerpc/xmon/ppc-dis.c 1 addition, 2 deletionsarch/powerpc/xmon/ppc-dis.c
- arch/powerpc/xmon/spu-dis.c 1 addition, 2 deletionsarch/powerpc/xmon/spu-dis.c
- arch/powerpc/xmon/xmon.c 1 addition, 4 deletionsarch/powerpc/xmon/xmon.c
Loading
Please register or sign in to comment