]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
[POWERPC] Prepare for spu disassembly in xmon
authorMichael Ellerman <michael@ellerman.id.au>
Wed, 22 Nov 2006 23:46:42 +0000 (00:46 +0100)
committerPaul Mackerras <paulus@samba.org>
Mon, 4 Dec 2006 09:40:27 +0000 (20:40 +1100)
commit4c4c8723684b1b2cd0dfdf5e0685f35642bde253
tree0382ef4108380469d5cbf0b525ef3d3b8abc6753
parent24a24c85d3c35790a355138d7cd34c074cb1b3ac
[POWERPC] Prepare for spu disassembly in xmon

In order to do disassembly of spu binaries in xmon, we need to abstract
the disassembly function from ppc_inst_dump.

We do this by making the actual disassembly function a function pointer
that we pass to ppc_inst_dump(). To save updating all the callers, we
turn ppc_inst_dump() into generic_inst_dump() and make ppc_inst_dump()
a wrapper which always uses print_insn_powerpc().

Currently we pass the dialect into print_insn_powerpc(), but we always
pass 0 - so just make it a local.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
arch/powerpc/xmon/ppc-dis.c
arch/powerpc/xmon/xmon.c