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]

[commit] MIPS_PRID_REGNUM


in,
Andrew
2004-10-30  Andrew Cagney  <cagney@gnu.org>

	* mips-tdep.h (MIPS_PRID_REGNUM): Add.
	* config/mips/tm-mips.h (PRID_REGNUM): Delete.
	* mips-tdep.c: Update.

Index: mips-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.c,v
retrieving revision 1.354
diff -p -u -r1.354 mips-tdep.c
--- mips-tdep.c	30 Oct 2004 23:08:17 -0000	1.354
+++ mips-tdep.c	30 Oct 2004 23:19:44 -0000
@@ -4320,7 +4320,7 @@ deprecated_mips_set_processor_regs_hack 
   struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
   CORE_ADDR prid;
 
-  prid = read_register (PRID_REGNUM);
+  prid = read_register (MIPS_PRID_REGNUM);
 
   if ((prid & ~0xf) == 0x700)
     tdep->mips_processor_reg_names = mips_r3041_reg_names;
@@ -5293,8 +5293,6 @@ mips_dump_tdep (struct gdbarch *current_
 		      "mips_dump_tdep: mips_abi_regsize() = %d\n",
 		      mips_abi_regsize (current_gdbarch));
   fprintf_unfiltered (file,
-		      "mips_dump_tdep: PRID_REGNUM = %d\n", PRID_REGNUM);
-  fprintf_unfiltered (file,
 		      "mips_dump_tdep: PROC_FRAME_ADJUST = function?\n");
   fprintf_unfiltered (file,
 		      "mips_dump_tdep: PROC_FRAME_OFFSET = function?\n");
Index: mips-tdep.h
===================================================================
RCS file: /cvs/src/src/gdb/mips-tdep.h,v
retrieving revision 1.16
diff -p -u -r1.16 mips-tdep.h
--- mips-tdep.h	30 Oct 2004 23:08:18 -0000	1.16
+++ mips-tdep.h	30 Oct 2004 23:19:44 -0000
@@ -86,6 +86,7 @@ enum
   MIPS_EMBED_FP0_REGNUM = 38,
   MIPS_UNUSED_REGNUM = 73,	/* Never used, FIXME */
   MIPS_FIRST_EMBED_REGNUM = 74,	/* First CP0 register for embedded use.  */
+  MIPS_PRID_REGNUM = 89,	/* Processor ID.  */
   MIPS_LAST_EMBED_REGNUM = 89	/* Last one.  */
 };
 
Index: config/mips/tm-mips.h
===================================================================
RCS file: /cvs/src/src/gdb/config/mips/tm-mips.h,v
retrieving revision 1.69
diff -p -u -r1.69 tm-mips.h
--- config/mips/tm-mips.h	30 Oct 2004 23:08:18 -0000	1.69
+++ config/mips/tm-mips.h	30 Oct 2004 23:19:44 -0000
@@ -44,7 +44,6 @@ extern int mips_step_skips_delay (CORE_A
 #define STEP_SKIPS_DELAY(pc) (mips_step_skips_delay (pc))
 
 #define RA_REGNUM 31		/* Contains return address value */
-#define	PRID_REGNUM 89		/* Processor ID */
 
 /* Special symbol found in blocks associated with routines.  We can hang
    mips_extra_func_info_t's off of this.  */

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