Index fpregsetp->fpr correctly.

This commit is contained in:
skrll 2003-11-03 15:59:11 +00:00
parent 78677ac649
commit c1946cebd4
1 changed files with 2 additions and 2 deletions

View File

@ -119,10 +119,10 @@ fill_fpregset (fpregset_t *fpregsetp, int regno)
{
int regnum;
for (regnum = ARM_F0_REGNUM; regnum <= ARM_F7_REGNUM; regnum++)
regcache_collect(regnum, (char *) &fpregsetp->fpr[regnum]);
regcache_collect(regnum, (char *) &fpregsetp->fpr[regnum - ARM_F0_REGNUM]);
}
else if (regno >= ARM_F0_REGNUM && regno <= ARM_F7_REGNUM)
regcache_collect(regno, (char *) &fpregsetp->fpr[regno]);
regcache_collect(regno, (char *) &fpregsetp->fpr[regno - ARM_F0_REGNUM]);
if (ARM_FPS_REGNUM == regno || -1 == regno)
regcache_collect (ARM_FPS_REGNUM, (char *) &fpregsetp->fpr_fpsr);