Pass readable_regcache to gdbarch method read_pc
[deliverable/binutils-gdb.git] / gdb / spu-tdep.c
index a632c0656e9cb3c4471e3aa5e39977ad9861a73d..695b5cca0dc4ed9f779970ba0f4b521cd7580db8 100644 (file)
@@ -1176,11 +1176,12 @@ spu_unwind_sp (struct gdbarch *gdbarch, struct frame_info *next_frame)
 }
 
 static CORE_ADDR
-spu_read_pc (struct regcache *regcache)
+spu_read_pc (readable_regcache *regcache)
 {
   struct gdbarch_tdep *tdep = gdbarch_tdep (regcache->arch ());
   ULONGEST pc;
-  regcache_cooked_read_unsigned (regcache, SPU_PC_REGNUM, &pc);
+
+  regcache->cooked_read (SPU_PC_REGNUM, &pc);
   /* Mask off interrupt enable bit.  */
   return SPUADDR (tdep->id, pc & -4);
 }
This page took 0.024324 seconds and 4 git commands to generate.