+2013-04-29 Joel Brobecker <brobecker@adacore.com>
+
+ * mep-tdep.c (mep_write_pc): Delete.
+ (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
+ Add call to set_gdbarch_pc_regnum.
+
2013-04-29 Joel Brobecker <brobecker@adacore.com>
* common/filestuff.c: Replace #include <dirent.h> by
return pc;
}
-static void
-mep_write_pc (struct regcache *regcache, CORE_ADDR pc)
-{
- regcache_cooked_write_unsigned (regcache, MEP_PC_REGNUM, pc);
-}
-
-
static enum register_status
mep_pseudo_cr32_read (struct gdbarch *gdbarch,
struct regcache *regcache,
/* Register set. */
set_gdbarch_read_pc (gdbarch, mep_read_pc);
- set_gdbarch_write_pc (gdbarch, mep_write_pc);
set_gdbarch_num_regs (gdbarch, MEP_NUM_RAW_REGS);
+ set_gdbarch_pc_regnum (gdbarch, MEP_PC_REGNUM);
set_gdbarch_sp_regnum (gdbarch, MEP_SP_REGNUM);
set_gdbarch_register_name (gdbarch, mep_register_name);
set_gdbarch_register_type (gdbarch, mep_register_type);