diff options
author | Michael Ellerman <michael@ellerman.id.au> | 2006-11-22 18:46:45 -0500 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2006-12-04 04:40:32 -0500 |
commit | e0426047cb684842700f0098f74842a38260dbae (patch) | |
tree | eec4033ad96e019dbb4e00863c3e03ca6c3ae090 /arch/powerpc/xmon/spu-dis.c | |
parent | af89fb8041562508895c8f3ba04790d7c2f4338c (diff) |
[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>
Diffstat (limited to 'arch/powerpc/xmon/spu-dis.c')
-rw-r--r-- | arch/powerpc/xmon/spu-dis.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/arch/powerpc/xmon/spu-dis.c b/arch/powerpc/xmon/spu-dis.c index 75ac0815f1a4..ee929c641bf3 100644 --- a/arch/powerpc/xmon/spu-dis.c +++ b/arch/powerpc/xmon/spu-dis.c | |||
@@ -22,8 +22,7 @@ | |||
22 | #include "nonstdio.h" | 22 | #include "nonstdio.h" |
23 | #include "ansidecl.h" | 23 | #include "ansidecl.h" |
24 | #include "spu.h" | 24 | #include "spu.h" |
25 | 25 | #include "dis-asm.h" | |
26 | extern void print_address (unsigned long memaddr); | ||
27 | 26 | ||
28 | /* This file provides a disassembler function which uses | 27 | /* This file provides a disassembler function which uses |
29 | the disassembler interface defined in dis-asm.h. */ | 28 | the disassembler interface defined in dis-asm.h. */ |