diff options
Diffstat (limited to 'gdb/remote-sim.c')
-rw-r--r-- | gdb/remote-sim.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/remote-sim.c b/gdb/remote-sim.c index 48fa503..d6efa75 100644 --- a/gdb/remote-sim.c +++ b/gdb/remote-sim.c @@ -427,7 +427,7 @@ static void gdbsim_fetch_register (struct target_ops *ops, struct regcache *regcache, int regno) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); struct inferior *inf = find_inferior_ptid (regcache_get_ptid (regcache)); struct sim_inferior_data *sim_data = get_sim_inferior_data (inf, SIM_INSTANCE_NEEDED); @@ -497,7 +497,7 @@ static void gdbsim_store_register (struct target_ops *ops, struct regcache *regcache, int regno) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); struct inferior *inf = find_inferior_ptid (regcache_get_ptid (regcache)); struct sim_inferior_data *sim_data = get_sim_inferior_data (inf, SIM_INSTANCE_NEEDED); |