2004-10-30 Andrew Cagney <cagney@gnu.org>
* mips-tdep.h (MIPS_FIRST_EMBED_REGNUM) (MIPS_LAST_EMBED_REGNUM): Add. * config/mips/tm-mips.h (FIRST_EMBED_REGNUM) (LAST_EMBED_REGNUM): Delete. * mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
This commit is contained in:
parent
aeab9e265f
commit
607fc93c5d
@ -1,5 +1,11 @@
|
||||
2004-10-30 Andrew Cagney <cagney@gnu.org>
|
||||
|
||||
* mips-tdep.h (MIPS_FIRST_EMBED_REGNUM)
|
||||
(MIPS_LAST_EMBED_REGNUM): Add.
|
||||
* config/mips/tm-mips.h (FIRST_EMBED_REGNUM)
|
||||
(LAST_EMBED_REGNUM): Delete.
|
||||
* mipsv4-nat.c, mips-tdep.c, mips-linux-tdep.c: Update.
|
||||
|
||||
* config/mips/tm-mips.h (PS_REGNUM): Delete.
|
||||
* mips-tdep.h (MIPS_PS_REGNUM): Add.
|
||||
* remote-vxmips.c, mipsv4-nat.c, mips-tdep.c: Update.
|
||||
|
@ -44,9 +44,7 @@ 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 FIRST_EMBED_REGNUM 74 /* First CP0 register for embedded use */
|
||||
#define PRID_REGNUM 89 /* Processor ID */
|
||||
#define LAST_EMBED_REGNUM 89 /* Last one */
|
||||
|
||||
/* Special symbol found in blocks associated with routines. We can hang
|
||||
mips_extra_func_info_t's off of this. */
|
||||
|
@ -130,7 +130,7 @@ supply_gregset (elf_gregset_t *gregsetp)
|
||||
|
||||
/* Fill inaccessible registers with zero. */
|
||||
regcache_raw_supply (current_regcache, MIPS_UNUSED_REGNUM, zerobuf);
|
||||
for (regi = FIRST_EMBED_REGNUM; regi < LAST_EMBED_REGNUM; regi++)
|
||||
for (regi = MIPS_FIRST_EMBED_REGNUM; regi < MIPS_LAST_EMBED_REGNUM; regi++)
|
||||
regcache_raw_supply (current_regcache, regi, zerobuf);
|
||||
}
|
||||
|
||||
@ -409,7 +409,7 @@ mips64_supply_gregset (mips64_elf_gregset_t *gregsetp)
|
||||
|
||||
/* Fill inaccessible registers with zero. */
|
||||
regcache_raw_supply (current_regcache, MIPS_UNUSED_REGNUM, zerobuf);
|
||||
for (regi = FIRST_EMBED_REGNUM; regi < LAST_EMBED_REGNUM; regi++)
|
||||
for (regi = MIPS_FIRST_EMBED_REGNUM; regi < MIPS_LAST_EMBED_REGNUM; regi++)
|
||||
regcache_raw_supply (current_regcache, regi, zerobuf);
|
||||
}
|
||||
|
||||
|
@ -718,7 +718,7 @@ mips_register_type (struct gdbarch *gdbarch, int regnum)
|
||||
the ABI (with a few complications). */
|
||||
if (regnum >= (NUM_REGS
|
||||
+ mips_regnum (current_gdbarch)->fp_control_status)
|
||||
&& regnum <= NUM_REGS + LAST_EMBED_REGNUM)
|
||||
&& regnum <= NUM_REGS + MIPS_LAST_EMBED_REGNUM)
|
||||
/* The pseudo/cooked view of the embedded registers is always
|
||||
32-bit. The raw view is handled below. */
|
||||
return builtin_type_int32;
|
||||
@ -5259,18 +5259,12 @@ mips_dump_tdep (struct gdbarch *current_gdbarch, struct ui_file *file)
|
||||
fprintf_unfiltered (file,
|
||||
"mips_dump_tdep: ECOFF_REG_TO_REGNUM # %s\n",
|
||||
XSTRING (ECOFF_REG_TO_REGNUM (REGNUM)));
|
||||
fprintf_unfiltered (file,
|
||||
"mips_dump_tdep: FIRST_EMBED_REGNUM = %d\n",
|
||||
FIRST_EMBED_REGNUM);
|
||||
fprintf_unfiltered (file,
|
||||
"mips_dump_tdep: DEPRECATED_IGNORE_HELPER_CALL # %s\n",
|
||||
XSTRING (DEPRECATED_IGNORE_HELPER_CALL (PC)));
|
||||
fprintf_unfiltered (file,
|
||||
"mips_dump_tdep: IN_SOLIB_CALL_TRAMPOLINE # %s\n",
|
||||
XSTRING (IN_SOLIB_CALL_TRAMPOLINE (PC, NAME)));
|
||||
fprintf_unfiltered (file,
|
||||
"mips_dump_tdep: LAST_EMBED_REGNUM = %d\n",
|
||||
LAST_EMBED_REGNUM);
|
||||
#ifdef MACHINE_CPROC_FP_OFFSET
|
||||
fprintf_unfiltered (file,
|
||||
"mips_dump_tdep: MACHINE_CPROC_FP_OFFSET = %d\n",
|
||||
|
@ -84,7 +84,9 @@ enum
|
||||
MIPS_EMBED_CAUSE_REGNUM = 36,
|
||||
MIPS_EMBED_PC_REGNUM = 37,
|
||||
MIPS_EMBED_FP0_REGNUM = 38,
|
||||
MIPS_UNUSED_REGNUM = 73 /* Never used, FIXME */
|
||||
MIPS_UNUSED_REGNUM = 73, /* Never used, FIXME */
|
||||
MIPS_FIRST_EMBED_REGNUM = 74, /* First CP0 register for embedded use. */
|
||||
MIPS_LAST_EMBED_REGNUM = 89 /* Last one. */
|
||||
};
|
||||
|
||||
/* Defined in mips-tdep.c and used in remote-mips.c */
|
||||
|
@ -69,7 +69,7 @@ supply_gregset (gregset_t *gregsetp)
|
||||
zerobuf);
|
||||
regcache_raw_supply (current_regcache, DEPRECATED_FP_REGNUM, zerobuf);
|
||||
regcache_raw_supply (current_regcache, MIPS_UNUSED_REGNUM, zerobuf);
|
||||
for (regi = FIRST_EMBED_REGNUM; regi <= LAST_EMBED_REGNUM; regi++)
|
||||
for (regi = MIPS_FIRST_EMBED_REGNUM; regi <= MIPS_LAST_EMBED_REGNUM; regi++)
|
||||
regcache_raw_supply (current_regcache, regi, zerobuf);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user