This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [PATCH] Add support for fpscr for Power / PowerPC targets


>  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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]