Skip to contentSkip to conversation

how to dump other regs via abatron-bdi / gdb ?

DISCUSSION Mark Pilon 2 participants 2 messages Aug 27, 2001 – Aug 28, 2001

lore
Share & tools
lore

Mark Pilon

author
#0 lore raw

I'm accustomed to printing general purpose registers: print $r0 and the like --

bringing up a board (before establishing an exception vector table) I'm getting some unknown exception -- how do I print the ESR (and other SPRs for that matter ) ??

I'm using montavista ppc_4xx-gdb -- GNU gdb 5.0 and abatron bdi/gdb:
BDI Type : BDI2000 (SN: 93170608)
Loader : V1.04
Firmware : V1.05 bdiGDB for PPC400
Logic : V1.01 PPC400

I suspect the problem is an incomplete bdi board config file, but it'd help to be able to figure out what's missing ...

thanks,

Mark
--
Mark Pilon

Minolta-QMS
5661 Airport Blvd, Ste A.
Boulder, CO 80301

1-303-443-5505 ext. 326; fax: 303-443-7107

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/

#1 lore raw
Quoted 7 lines · Mark Pilon

I'm accustomed to printing general purpose registers: print $r0 and the like --

bringing up a board (before establishing an exception vector table) I'm getting some unknown exception -- how do I print the ESR (and other SPRs for that matter ) ??

If all is configured correctly, you can just do:
BDI>rd esr
esr : 0x00000000 0
If not, but you know the SPR number, you can just do:
BDI>rdspr 0x3d4
SPR 980 : 0x00000000 0

Quoted 2 lines

I suspect the problem is an incomplete bdi board config file, but it'd help to be able to figure out what's missing ...

The BDI came with a file called reg405gp.def. This file contains the mappings from names to spr/dcr numbers. Make sure it is in your tftp directory and then make sure you have something like:
[REGS]
IDCR1 0x010 0x011 ;MEMCFGADR and MEMCFGDATA
IDCR2 0x012 0x013 ;EBCCFGADR and EBCCFGDATA
IDCR3 0x014 0x015 ;KIAR and KIDR
FILE reg405gp.def
in your config file. BOOT your BDI and you should then be set.

Scott Anderson
[email protected] MontaVista Software Inc.
(408)328-9214 1237 East Arques Ave.
http://www.mvista.com Sunnyvale, CA 94085

** Sent via the linuxppc-embedded mail list. See http://lists.linuxppc.org/