diff options
Diffstat (limited to 'gdb/spu-multiarch.c')
-rw-r--r-- | gdb/spu-multiarch.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/spu-multiarch.c b/gdb/spu-multiarch.c index e521c7e..3929959 100644 --- a/gdb/spu-multiarch.c +++ b/gdb/spu-multiarch.c @@ -144,7 +144,7 @@ static void spu_fetch_registers (struct target_ops *ops, struct regcache *regcache, int regno) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); struct target_ops *ops_beneath = find_target_beneath (ops); int spufs_fd; @@ -204,7 +204,7 @@ static void spu_store_registers (struct target_ops *ops, struct regcache *regcache, int regno) { - struct gdbarch *gdbarch = get_regcache_arch (regcache); + struct gdbarch *gdbarch = regcache->arch (); struct target_ops *ops_beneath = find_target_beneath (ops); int spufs_fd; CORE_ADDR spufs_addr; |