* sparc64-tdep.c (sparc64_store_arguments): Fix handling of

`float' arguments.
This commit is contained in:
Mark Kettenis 2004-01-04 12:18:25 +00:00
parent 0647ed71ac
commit 8ada74e3cc
2 changed files with 8 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-01-04 Mark Kettenis <kettenis@gnu.org>
* sparc64-tdep.c (sparc64_store_arguments): Fix handling of
`float' arguments.
2004-01-04 Mark Kettenis <kettenis@gnu.org>
* sparc64-tdep.c (sparc64_store_floating_fields): Update comment

View File

@ -911,10 +911,11 @@ sparc64_store_arguments (struct regcache *regcache, int nargs,
undefined." Even though the psABI says that "the
left half is undefined", set it to zero here. */
memset (buf, 0, 4);
valbuf = memcpy (buf + 4, valbuf, 4);
memcpy (buf + 4, valbuf, 4);
valbuf = buf;
len = 8;
if (element < 16)
regnum = SPARC64_D0_REGNUM;
regnum = SPARC64_D0_REGNUM + element;
}
}
else