* alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from

register number when used as index into fpr_regs array.
This commit is contained in:
Mark Kettenis 2000-06-02 19:04:51 +00:00
parent 6b3bf56090
commit 66c9e0f2b8
2 changed files with 6 additions and 1 deletions

View file

@ -1,3 +1,8 @@
2000-06-02 Mark Kettenis <kettenis@gnu.org>
* alphabsd-nat.c (supply_fpregset): Substract FP0_REGNUM from
register number when used as index into fpr_regs array.
Tue May 30 13:31:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
* defs.h (TARGET_FLOAT_FORMAT, TARGET_DOUBLE_FORMAT,

View file

@ -101,7 +101,7 @@ supply_fpregset (fpregset_t *fpregsetp)
if (CANNOT_FETCH_REGISTER (i))
supply_register (i, NULL);
else
supply_register (i, (char *) &fpregsetp->fpr_regs[i]);
supply_register (i, (char *) &fpregsetp->fpr_regs[i - FP0_REGNUM]);
}
supply_register (FPCR_REGNUM, (char *) &fpregsetp->fpr_cr);