+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.
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);