[PATCH] Add support for fpscr for Power / PowerPC targets
Andrew Cagney
ac131313@cygnus.com
Thu Apr 11 13:08:00 GMT 2002
> 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
More information about the Gdb-patches
mailing list