current regcache instead of calling read_register.
+2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
+
+ * mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
+ current regcache instead of calling read_register.
+
2007-06-15 Ulrich Weigand <uweigand@de.ibm.com>
* mep-tdep.c (current_me_module): Read from current regcache
deprecated_mips_set_processor_regs_hack (void)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch);
- CORE_ADDR prid;
-
- prid = read_register (MIPS_PRID_REGNUM);
+ ULONGEST prid;
+ regcache_cooked_read_unsigned (current_regcache,
+ MIPS_PRID_REGNUM, &prid);
if ((prid & ~0xf) == 0x700)
tdep->mips_processor_reg_names = mips_r3041_reg_names;
}