From: Joel Brobecker Date: Tue, 30 Apr 2013 08:28:54 +0000 (+0000) Subject: mep: define gdbarch_pc_regnum instead of gdbarch_write_pc. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=54746424da4a87144e2b7137730f7eed643acf4e;p=binutils-gdb.git mep: define gdbarch_pc_regnum instead of gdbarch_write_pc. gdb/ChangeLog: * mep-tdep.c (mep_write_pc): Delete. (mep_gdbarch_init): Remove call to set_gdbarch_write_pc. Add call to set_gdbarch_pc_regnum. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 68b9e6d77a8..5fae52883cc 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2013-04-29 Joel Brobecker + + * 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 * common/filestuff.c: Replace #include by diff --git a/gdb/mep-tdep.c b/gdb/mep-tdep.c index 7c5f9921530..fa58108524a 100644 --- a/gdb/mep-tdep.c +++ b/gdb/mep-tdep.c @@ -1125,13 +1125,6 @@ mep_read_pc (struct regcache *regcache) 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, @@ -2470,8 +2463,8 @@ mep_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) /* 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);