* [Qemu-devel] [PATCH] target-sparc fpu fix
@ 2006-08-03 7:24 Heikki Lindholm
0 siblings, 0 replies; only message in thread
From: Heikki Lindholm @ 2006-08-03 7:24 UTC (permalink / raw)
To: qemu-devel
[-- Attachment #1: Type: text/plain, Size: 145 bytes --]
Sparc target does not build on powerpc anymore. Not quite sure if the
following patch is correct, but it fixes the problem.
-- Heikki Lindholm
[-- Attachment #2: qemu-sparcfpu.patch --]
[-- Type: text/plain, Size: 483 bytes --]
--- target-sparc/op_helper.c.old 2006-08-03 10:10:16.000000000 +0300
+++ target-sparc/op_helper.c 2006-08-03 09:45:14.000000000 +0300
@@ -12,12 +12,12 @@
#ifdef USE_INT_TO_FLOAT_HELPERS
void do_fitos(void)
{
- FT0 = int32_to_float32(*((int32_t *)&FT1));
+ FT0 = int32_to_float32(*((int32_t *)&FT1), &env->fp_status);
}
void do_fitod(void)
{
- DT0 = int32_to_float64(*((int32_t *)&FT1));
+ DT0 = int32_to_float64(*((int32_t *)&FT1), &env->fp_status);
}
#endif
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2006-08-03 7:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-03 7:24 [Qemu-devel] [PATCH] target-sparc fpu fix Heikki Lindholm
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).