* rs6000-tdep.c (rs6000_gdbarch_init): The register set used for

bfd_mach_ppc has no segment registers.
This commit is contained in:
Jim Blandy
2004-07-20 22:09:53 +00:00
parent 13ac140c31
commit 412b306056
2 changed files with 4 additions and 0 deletions

View File

@@ -1,5 +1,8 @@
2004-07-20 Jim Blandy <jimb@redhat.com>
* rs6000-tdep.c (rs6000_gdbarch_init): The register set used for
bfd_mach_ppc has no segment registers.
Include PowerPC SPR numbers for special-purpose registers.
* rs6000-tdep.c (struct reg): Add new member, 'spr_num'.
(R, R4, R8, R16, F, P, R32, R64, R0): Include value for

View File

@@ -2935,6 +2935,7 @@ rs6000_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches)
switch (v->mach)
{
case bfd_mach_ppc:
tdep->ppc_sr0_regnum = -1;
tdep->ppc_vr0_regnum = 71;
tdep->ppc_vrsave_regnum = 104;
break;