diff options
Diffstat (limited to 'gdb/rs6000-tdep.c')
-rw-r--r-- | gdb/rs6000-tdep.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/rs6000-tdep.c b/gdb/rs6000-tdep.c index d271ea9..02a76f7 100644 --- a/gdb/rs6000-tdep.c +++ b/gdb/rs6000-tdep.c @@ -395,7 +395,7 @@ ppc_supply_fpregset (const struct regset *regset, struct regcache *regcache, offset = offsets->f0_offset; for (i = tdep->ppc_fp0_regnum; i < tdep->ppc_fp0_regnum + ppc_num_fprs; - i++, offset += 4) + i++, offset += 8) { if (regnum == -1 || regnum == i) ppc_supply_reg (regcache, i, fpregs, offset); @@ -474,10 +474,10 @@ ppc_collect_fpregset (const struct regset *regset, offset = offsets->f0_offset; for (i = tdep->ppc_fp0_regnum; i <= tdep->ppc_fp0_regnum + ppc_num_fprs; - i++, offset += 4) + i++, offset += 8) { if (regnum == -1 || regnum == i) - ppc_collect_reg (regcache, regnum, fpregs, offset); + ppc_collect_reg (regcache, i, fpregs, offset); } if (regnum == -1 || regnum == tdep->ppc_fpscr_regnum) |