aboutsummaryrefslogtreecommitdiff
path: root/gdb/ppc-tdep.h
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2004-05-22 06:03:26 +0000
committerJim Blandy <jimb@codesourcery.com>2004-05-22 06:03:26 +0000
commit867e2dc5ace860a0f3ed7abfd17331877976926d (patch)
treee88489f3da74670d65a42b8b4942000081b2229d /gdb/ppc-tdep.h
parent753731eef094e983fab58faf7c7c5e8090de6e1b (diff)
downloadgdb-867e2dc5ace860a0f3ed7abfd17331877976926d.zip
gdb-867e2dc5ace860a0f3ed7abfd17331877976926d.tar.gz
gdb-867e2dc5ace860a0f3ed7abfd17331877976926d.tar.bz2
* ppc-tdep.h (spe_register_p): New declaration.
(struct gdbarch_tdep): New members: ppc_acc_regnum and ppc_spefscr_regnum. * rs6000-tdep.c (spe_register_p): New function. (rs6000_dwarf2_stab_reg_to_regnum): Recognize numbers for acc and spefscr. (rs6000_gdbarch_init): Initialize the new members of the tdep structure.
Diffstat (limited to 'gdb/ppc-tdep.h')
-rw-r--r--gdb/ppc-tdep.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/ppc-tdep.h b/gdb/ppc-tdep.h
index a47fdfc..68919b4 100644
--- a/gdb/ppc-tdep.h
+++ b/gdb/ppc-tdep.h
@@ -73,6 +73,7 @@ enum return_value_convention ppc64_sysv_abi_return_value (struct gdbarch *gdbarc
/* From rs6000-tdep.c... */
int altivec_register_p (int regno);
+int spe_register_p (int regno);
/* Return non-zero if the architecture described by GDBARCH has
floating-point registers (f0 --- f31 and fpscr). */
@@ -162,6 +163,8 @@ struct gdbarch_tdep
int ppc_vrsave_regnum; /* Last AltiVec register */
int ppc_ev0_regnum; /* First ev register */
int ppc_ev31_regnum; /* Last ev register */
+ int ppc_acc_regnum; /* SPE 'acc' register */
+ int ppc_spefscr_regnum; /* SPE 'spefscr' register */
int lr_frame_offset; /* Offset to ABI specific location where
link register is saved. */
};