mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-19 13:51:44 +08:00
* mips-tdep.c (deprecated_mips_set_processor_regs_hack): Read from
current regcache instead of calling read_register.
This commit is contained in:
parent
3d1a74ac50
commit
a961495892
@ -1,3 +1,8 @@
|
||||
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
|
||||
|
@ -4472,10 +4472,10 @@ void
|
||||
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;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user