From: David Edelsohn Date: Sun, 20 Mar 1994 23:36:50 +0000 (+0000) Subject: (FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles). X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=5029b1148daf3d494c69da9f5736b5cc17d5f6fe;p=binutils-gdb.git (FPS_REGNUM, CPS_REGNUM): Define (so sparc-tdep.c compiles). (TARGET_PTR_BIT): Must be a constant now, fix at 64. --- diff --git a/gdb/config/sparc/tm-sp64.h b/gdb/config/sparc/tm-sp64.h index 03acc7fdd84..7f0fb62ae4a 100644 --- a/gdb/config/sparc/tm-sp64.h +++ b/gdb/config/sparc/tm-sp64.h @@ -179,13 +179,16 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #define FCC2_REGNUM (C0_REGNUM + 45) /* floating point condition code reg 1 */ #define FCC3_REGNUM (C0_REGNUM + 46) /* floating point condition code reg 2 */ -/* FIXME: PS_REGNUM is for a priviledged v8 register which doesn't exist - in v9 (in the same form). We use bits of sparc-tdep.c which requires - PS_REGNUM. So define it here to be an unused ASR reg so sparc-tdep.c will - compile. What we really want to do is put some conditionals in sparc-tdep.c - (run time or compile time) or separate the v8 stuff out of sparc-tdep.c. */ +/* FIXME: PS_REGNUM, FPS_REGNUM, CPS_REGNUM are for priviledged v8 registers + which don't exist in v9 (in the same form). We use bits of sparc-tdep.c + which requires these, so define them here to be unused ASR regs so + sparc-tdep.c will compile. What we really want to do is put some + conditionals in sparc-tdep.c (run time or compile time) or separate the v8 + stuff out of sparc-tdep.c. */ -#define PS_REGNUM (ASR_REGNUM (31)) +#define PS_REGNUM (ASR_REGNUM (29)) +#define FPS_REGNUM (ASR_REGNUM (30)) +#define CPS_REGNUM (ASR_REGNUM (31)) /* Total amount of space needed to store our copies of the machine's register state, the array `registers'. @@ -251,12 +254,10 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ ((N) < 32 ? builtin_type_long_long : (N) < 80 ? builtin_type_float : \ builtin_type_long_long) -/* We try to support both 32 bit and 64 bit pointers. */ -/* FIXME: This is important for the present. Don't remove until things - settle. */ -extern int target_ptr_bit; +/* We use to support both 32 bit and 64 bit pointers. + We can't anymore because TARGET_PTR_BIT must now be a constant. */ #undef TARGET_PTR_BIT -#define TARGET_PTR_BIT target_ptr_bit +#define TARGET_PTR_BIT 64 /* Store the address of the place in which to copy the structure the subroutine will return. This is called from call_function. */