[Fwd: MQ_REGNUM in ppc-bdm.c]
Michael Meissner
meissner@cygnus.com
Tue Aug 1 12:41:00 GMT 2000
On Tue, Aug 01, 2000 at 02:46:52PM -0400, Fernando Nasser wrote:
> FYI.
>
> BTW, is "gdb@source.redhat.com" the same as this list?
>
> F.
>
>
> João Cadamuro Junior wrote:
> >
> > Hello gdb,
> >
> > I'm trying to compile the insight snapshot 20000730 (host cygwin 1.1.3
> > and target powerpc-eabi), and I found two known problems:
> >
> > 1. NUM_REGS in dink32-rom.c, and
> > 2. MQ_REGNUM in ppc-bdm.c
> >
> > NUM_REGS I removed from dink32-rom.c, because I'll not use DINK 32 rom
> > monitor...
> >
> > But I'll try to use BDM for PowerPC. How can I proceed? Should I remove
> > the references to MQ_REGNUM in the ppc-bdm.c code, or reinclude its
> > definition as "#define MQ_REGNUM 70" in the ./config/rs6000/tm-rs6000.h
> > ? (... or none of them). What's the best for me???
Note the MQ register (SPR 0) is only present in the original Power machines,
and the 601 powerpc which was the transition machine. Modern powerpc's don't
support it. However register # 64 is still reserved for the MQ register in the
compiler/debug information (0..31 is the GPRs, 32..63 is the FPRs, 64 is the MQ
register, 65 is the LR register, 66 is the CNT register, 67 is the phony
argument pointer register that is eliminated to be the SP or FP, 68..75 are the
CRs, and 76 is the XER register).
--
Michael Meissner, Red Hat, Inc.
PMB 198, 174 Littleton Road #3, Westford, Massachusetts 01886, USA
Work: meissner@redhat.com phone: +1 978-486-9304
Non-work: meissner@spectacle-pond.org fax: +1 978-692-4482
More information about the Gdb
mailing list