Browse Source

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

`float' arguments.
cagney_bigcore-20040122-branch
Mark Kettenis 23 years ago
parent
commit
8ada74e3cc
  1. 5
      gdb/ChangeLog
  2. 5
      gdb/sparc64-tdep.c

5
gdb/ChangeLog

@ -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

5
gdb/sparc64-tdep.c

@ -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

Loading…
Cancel
Save