qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH] target-sparc fpu fix


From: Heikki Lindholm
Subject: [Qemu-devel] [PATCH] target-sparc fpu fix
Date: Thu, 03 Aug 2006 10:24:21 +0300
User-agent: Mozilla Thunderbird 1.0.7 (Macintosh/20050923)

Sparc target does not build on powerpc anymore. Not quite sure if the following patch is correct, but it fixes the problem.

-- Heikki Lindholm
--- 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
 

reply via email to

[Prev in Thread] Current Thread [Next in Thread]