alistair23-linux/arch/powerpc/xmon
Michael Ellerman 24a24c85d3 [POWERPC] Add a sd command (spu dump) to xmon to dump spu local store
Add a command to xmon to dump the memory of a spu's local store.
This mimics the 'd' command which dumps regular memory, but does
a little hand holding by taking the user supplied address and
finding that offset in the local store for the specified spu.

This makes it easy for example to look at what was executing on a spu:

1:mon> ss
...
Stopped spu 04 (was running)
...
1:mon> sf 4
Dumping spu fields at address c0000000019e0a00:
...
  problem->spu_npc_RW     = 0x228
...
1:mon> sd 4 0x228
d000080080318228 01a00c021cffc408 4020007f217ff488  |........@ ..!...|

Aha, 01a00c02, which is of course rdch $2,$ch24 !

--

Updated to only do the setjmp goo around the spu access, and not
around prdump because it does its own (via mread).

Also the num variable is now common between sf and sd, so you don't
have to keep typing the spu number in if you're repeating commands
on the same spu.

Signed-off-by: Michael Ellerman <michael@ellerman.id.au>
Signed-off-by: Arnd Bergmann <arnd.bergmann@de.ibm.com>
2006-12-04 20:40:26 +11:00
..
ansidecl.h powerpc: Merge xmon 2005-10-28 22:53:37 +10:00
Makefile [PATCH] powerpc: Unify udbg (#2) 2006-01-09 14:49:54 +11:00
nonstdio.c powerpc: Simplify and clean up the xmon terminal I/O 2005-11-08 22:55:08 +11:00
nonstdio.h powerpc: Simplify and clean up the xmon terminal I/O 2005-11-08 22:55:08 +11:00
ppc-dis.c powerpc: Merge xmon 2005-10-28 22:53:37 +10:00
ppc-opc.c powerpc: Merge xmon 2005-10-28 22:53:37 +10:00
ppc.h powerpc: Merge xmon 2005-10-28 22:53:37 +10:00
setjmp.S [PATCH] powerpc: Consolidate asm compatibility macros 2005-11-10 13:10:38 +11:00
start.c [PATCH] powerpc: Unify udbg (#2) 2006-01-09 14:49:54 +11:00
xmon.c [POWERPC] Add a sd command (spu dump) to xmon to dump spu local store 2006-12-04 20:40:26 +11:00