+2018-03-06 Andrew Burgess <andrew.burgess@embecosm.com>
+
+ * riscv-tdep.c (riscv_pseudo_register_read): Delete.
+ (riscv_pseudo_register_write): Delete.
+ (riscv_gdbarch_init): Remove all use of pseudo registers.
+
2018-03-06 Simon Marchi <simon.marchi@polymtl.ca>
* record-btrace.c (btrace_print_lines): Replace cleanup
return NULL;
}
-/* Implement the pseudo_register_read gdbarch method. */
-
-static enum register_status
-riscv_pseudo_register_read (struct gdbarch *gdbarch,
- readable_regcache *regcache,
- int regnum,
- gdb_byte *buf)
-{
- return regcache->raw_read (regnum, buf);
-}
-
-/* Implement the pseudo_register_write gdbarch method. */
-
-static void
-riscv_pseudo_register_write (struct gdbarch *gdbarch,
- struct regcache *regcache,
- int cookednum,
- const gdb_byte *buf)
-{
- regcache_raw_write (regcache, cookednum, buf);
-}
-
/* Implement the register_type gdbarch method. */
static struct type *
set_gdbarch_sw_breakpoint_from_kind (gdbarch, riscv_sw_breakpoint_from_kind);
/* Register architecture. */
- set_gdbarch_pseudo_register_read (gdbarch, riscv_pseudo_register_read);
- set_gdbarch_pseudo_register_write (gdbarch, riscv_pseudo_register_write);
set_gdbarch_num_regs (gdbarch, RISCV_LAST_REGNUM + 1);
- set_gdbarch_num_pseudo_regs (gdbarch, RISCV_LAST_REGNUM + 1);
set_gdbarch_sp_regnum (gdbarch, RISCV_SP_REGNUM);
set_gdbarch_pc_regnum (gdbarch, RISCV_PC_REGNUM);
set_gdbarch_ps_regnum (gdbarch, RISCV_FP_REGNUM);