This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Add support for fpscr for Power / PowerPC targets
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Kevin Buettner <kevinb at redhat dot com>
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 11 Apr 2002 16:08:45 -0400
- Subject: Re: [PATCH] Add support for fpscr for Power / PowerPC targets
- References: <1020411191706.ZM3109@localhost.localdomain>
> tdep->ppc_xer_regnum = 69;
> if (v->mach == bfd_mach_ppc_601)
> tdep->ppc_mq_regnum = 124;
> - else
> + else if (power)
> tdep->ppc_mq_regnum = 70;
> + else
> + tdep->ppc_mq_regnum = -1;
> + tdep->ppc_fpscr_regnum = power ? 71 : 70;
>
> For PowerPC, the fpscr regnum is 70, which was an unused slot. For
> Power, I chose to use the first available slot (71). The other change
> that this patch makes is to make MQ unavailable for all PowerPC
> targets except for the 601 processors (which is as it should be).
Kevin, is there any reason to not just use the same slot for both POWER
and PowerPC?
Andrew