Author: nbd
Date: 2016-01-20 23:59:34 +0100 (Wed, 20 Jan 2016)
New Revision: 48419

Added:
   trunk/package/devel/valgrind/patches/130-mips_fix_soft_float.patch
Log:
valgrind: fix build with mips soft-float

Signed-off-by: Felix Fietkau <[email protected]>

Added: trunk/package/devel/valgrind/patches/130-mips_fix_soft_float.patch
===================================================================
--- trunk/package/devel/valgrind/patches/130-mips_fix_soft_float.patch          
                (rev 0)
+++ trunk/package/devel/valgrind/patches/130-mips_fix_soft_float.patch  
2016-01-20 22:59:34 UTC (rev 48419)
@@ -0,0 +1,34 @@
+--- a/VEX/priv/guest_mips_helpers.c
++++ b/VEX/priv/guest_mips_helpers.c
+@@ -1189,6 +1189,7 @@ extern UInt mips_dirtyhelper_calculate_F
+                                                    flt_op inst )
+ {
+    UInt ret = 0;
++#ifndef __mips_soft_float
+ #if defined(__mips__)
+    VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
+    UInt loFsVal, hiFsVal, loFtVal, hiFtVal;
+@@ -1308,6 +1309,7 @@ extern UInt mips_dirtyhelper_calculate_F
+          break;
+    }
+ #endif
++#endif
+    return ret;
+ }
+ 
+@@ -1317,6 +1319,7 @@ extern UInt mips_dirtyhelper_calculate_F
+                                                    flt_op inst )
+ {
+    UInt ret = 0;
++#ifndef __mips_soft_float
+ #if defined(__mips__)
+ #if defined(VGA_mips32)
+    VexGuestMIPS32State* guest_state = (VexGuestMIPS32State*)gs;
+@@ -1427,6 +1430,7 @@ extern UInt mips_dirtyhelper_calculate_F
+          break;
+    }
+ #endif
++#endif
+    return ret;
+ }
+ 
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to