diff options
Diffstat (limited to 'gdb/m32c-tdep.c')
-rw-r--r-- | gdb/m32c-tdep.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/gdb/m32c-tdep.c b/gdb/m32c-tdep.c index 14bd87f..fd8ba47 100644 --- a/gdb/m32c-tdep.c +++ b/gdb/m32c-tdep.c @@ -312,7 +312,7 @@ static m32c_write_reg_t m32c_r3r2r1r0_write; static enum register_status m32c_raw_read (struct m32c_reg *reg, struct regcache *cache, gdb_byte *buf) { - return regcache_raw_read (cache, reg->num, buf); + return cache->raw_read (reg->num, buf); } @@ -333,7 +333,8 @@ m32c_read_flg (struct regcache *cache) { struct gdbarch_tdep *tdep = gdbarch_tdep (cache->arch ()); ULONGEST flg; - regcache_raw_read_unsigned (cache, tdep->flg->num, &flg); + + cache->raw_read (tdep->flg->num, &flg); return flg & 0xffff; } @@ -354,7 +355,7 @@ static enum register_status m32c_banked_read (struct m32c_reg *reg, struct regcache *cache, gdb_byte *buf) { struct m32c_reg *bank_reg = m32c_banked_register (reg, cache); - return regcache_raw_read (cache, bank_reg->num, buf); + return cache->raw_read (bank_reg->num, buf); } @@ -447,7 +448,7 @@ m32c_part_read (struct m32c_reg *reg, struct regcache *cache, gdb_byte *buf) memset (buf, 0, TYPE_LENGTH (reg->type)); m32c_find_part (reg, &offset, &len); - return regcache_cooked_read_part (cache, reg->rx->num, offset, len, buf); + return cache->cooked_read_part (reg->rx->num, offset, len, buf); } |