mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-02-04 08:08:01 +00:00
* sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
double values in little endian mode.
This commit is contained in:
parent
498d4a7155
commit
c8a3b559eb
@ -1,3 +1,8 @@
|
||||
2004-06-03 Corinna Vinschen <vinschen@redhat.com>
|
||||
|
||||
* sh-tdep.c (sh3e_sh4_store_return_value): Correctly store
|
||||
double values in little endian mode.
|
||||
|
||||
2004-06-02 Albert Chin-A-Young <china@thewrittenword.com>
|
||||
|
||||
Committed by Andrew Cagney.
|
||||
|
@ -1147,7 +1147,11 @@ sh3e_sh4_store_return_value (struct type *type, struct regcache *regcache,
|
||||
int len = TYPE_LENGTH (type);
|
||||
int i, regnum = FP0_REGNUM;
|
||||
for (i = 0; i < len; i += 4)
|
||||
regcache_raw_write (regcache, regnum++, (char *) valbuf + i);
|
||||
if (TARGET_BYTE_ORDER == BFD_ENDIAN_LITTLE)
|
||||
regcache_raw_write (regcache, regnum++,
|
||||
(char *) valbuf + len - 4 - i);
|
||||
else
|
||||
regcache_raw_write (regcache, regnum++, (char *) valbuf + i);
|
||||
}
|
||||
else
|
||||
sh_default_store_return_value (type, regcache, valbuf);
|
||||
|
Loading…
x
Reference in New Issue
Block a user