From a5c9623c796382b375009cd76aa354811bd0210d Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Sat, 30 Oct 2004 23:22:54 +0000 Subject: [PATCH] 2004-10-30 Andrew Cagney * mips-tdep.h (MIPS_PRID_REGNUM): Add. * config/mips/tm-mips.h (PRID_REGNUM): Delete. * mips-tdep.c: Update. --- gdb/ChangeLog | 4 ++++ gdb/config/mips/tm-mips.h | 1 - gdb/mips-tdep.c | 4 +--- gdb/mips-tdep.h | 1 + 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 2a3f8d3..2d55764 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2004-10-30 Andrew Cagney + * mips-tdep.h (MIPS_PRID_REGNUM): Add. + * config/mips/tm-mips.h (PRID_REGNUM): Delete. + * mips-tdep.c: Update. + * mips-tdep.h (MIPS_FIRST_EMBED_REGNUM) (MIPS_LAST_EMBED_REGNUM): Add. * config/mips/tm-mips.h (FIRST_EMBED_REGNUM) diff --git a/gdb/config/mips/tm-mips.h b/gdb/config/mips/tm-mips.h index 68c6348..8f840c3 100644 --- a/gdb/config/mips/tm-mips.h +++ b/gdb/config/mips/tm-mips.h @@ -44,7 +44,6 @@ extern int mips_step_skips_delay (CORE_ADDR); #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. */ diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index 5885d81..fca6882 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -4320,7 +4320,7 @@ deprecated_mips_set_processor_regs_hack (void) 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_gdbarch, struct ui_file *file) "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"); diff --git a/gdb/mips-tdep.h b/gdb/mips-tdep.h index 975dc22..f487993 100644 --- a/gdb/mips-tdep.h +++ b/gdb/mips-tdep.h @@ -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. */ }; -- 2.7.4