diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:37 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2018-05-30 14:54:37 -0400 |
commit | 10eaee5f56611ce5f92ccd305849c0cc6addd130 (patch) | |
tree | d7ddbdf42f173b202ee806251a9053db8f2c40d8 /gdb/rl78-tdep.c | |
parent | 0b8835861cde41744a08f215b48fccd135815b63 (diff) | |
download | gdb-10eaee5f56611ce5f92ccd305849c0cc6addd130.zip gdb-10eaee5f56611ce5f92ccd305849c0cc6addd130.tar.gz gdb-10eaee5f56611ce5f92ccd305849c0cc6addd130.tar.bz2 |
Remove regcache_raw_write
Remove regcache_raw_write, update all callers to use regcache::raw_write
instead.
gdb/ChangeLog:
* regcache.h (regcache_raw_write): Remove, update callers to use
regcache::raw_write instead.
* regcache.c (regcache_raw_write): Remove.
Diffstat (limited to 'gdb/rl78-tdep.c')
-rw-r--r-- | gdb/rl78-tdep.c | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/gdb/rl78-tdep.c b/gdb/rl78-tdep.c index af6a089..ace01b1 100644 --- a/gdb/rl78-tdep.c +++ b/gdb/rl78-tdep.c @@ -730,28 +730,28 @@ rl78_pseudo_register_write (struct gdbarch *gdbarch, int raw_regnum = RL78_RAW_BANK0_R0_REGNUM + (reg - RL78_BANK0_R0_REGNUM); - regcache_raw_write (regcache, raw_regnum, buffer); + regcache->raw_write (raw_regnum, buffer); } else if (RL78_BANK0_RP0_REGNUM <= reg && reg <= RL78_BANK3_RP3_REGNUM) { int raw_regnum = 2 * (reg - RL78_BANK0_RP0_REGNUM) + RL78_RAW_BANK0_R0_REGNUM; - regcache_raw_write (regcache, raw_regnum, buffer); - regcache_raw_write (regcache, raw_regnum + 1, buffer + 1); + regcache->raw_write (raw_regnum, buffer); + regcache->raw_write (raw_regnum + 1, buffer + 1); } else if (RL78_BANK0_RP0_PTR_REGNUM <= reg && reg <= RL78_BANK3_RP3_PTR_REGNUM) { int raw_regnum = 2 * (reg - RL78_BANK0_RP0_PTR_REGNUM) + RL78_RAW_BANK0_R0_REGNUM; - regcache_raw_write (regcache, raw_regnum, buffer); - regcache_raw_write (regcache, raw_regnum + 1, buffer + 1); + regcache->raw_write (raw_regnum, buffer); + regcache->raw_write (raw_regnum + 1, buffer + 1); } else if (reg == RL78_SP_REGNUM) { - regcache_raw_write (regcache, RL78_SPL_REGNUM, buffer); - regcache_raw_write (regcache, RL78_SPH_REGNUM, buffer + 1); + regcache->raw_write (RL78_SPL_REGNUM, buffer); + regcache->raw_write (RL78_SPH_REGNUM, buffer + 1); } else if (reg == RL78_PC_REGNUM) { @@ -759,7 +759,7 @@ rl78_pseudo_register_write (struct gdbarch *gdbarch, memcpy (rawbuf, buffer, 3); rawbuf[3] = 0; - regcache_raw_write (regcache, RL78_RAW_PC_REGNUM, rawbuf); + regcache->raw_write (RL78_RAW_PC_REGNUM, rawbuf); } else if (RL78_X_REGNUM <= reg && reg <= RL78_H_REGNUM) { @@ -772,7 +772,7 @@ rl78_pseudo_register_write (struct gdbarch *gdbarch, /* RSB0 is at bit 3; RSBS1 is at bit 5. */ raw_regnum = RL78_RAW_BANK0_R0_REGNUM + bank * RL78_REGS_PER_BANK + (reg - RL78_X_REGNUM); - regcache_raw_write (regcache, raw_regnum, buffer); + regcache->raw_write (raw_regnum, buffer); } else if (RL78_AX_REGNUM <= reg && reg <= RL78_HL_REGNUM) { @@ -784,8 +784,8 @@ rl78_pseudo_register_write (struct gdbarch *gdbarch, /* RSB0 is at bit 3; RSBS1 is at bit 5. */ raw_regnum = RL78_RAW_BANK0_R0_REGNUM + bank * RL78_REGS_PER_BANK + 2 * (reg - RL78_AX_REGNUM); - regcache_raw_write (regcache, raw_regnum, buffer); - regcache_raw_write (regcache, raw_regnum + 1, buffer + 1); + regcache->raw_write (raw_regnum, buffer); + regcache->raw_write (raw_regnum + 1, buffer + 1); } else gdb_assert_not_reached ("invalid pseudo register number"); |