Skip to contentSkip to conversation

Fix SPARC target build on Linux/PPC

PATCH New David Woodhouse 1 participant 1 message Sep 11, 2006

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Fix SPARC target build on Linux/PPC

The soft-float bits don't build on PPC. Patch from Matthias Saou

target-sparc/op_helper.c +2 -2
diff -Naupr qemu-0.8.2.orig/target-sparc/op_helper.c qemu-0.8.2/target-sparc/op_helper.c
@@ -12,12 +12,12 @@ void raise_exception(int tt)
 #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
 
Signature · 1 line
dwmw2