summaryrefslogtreecommitdiffstats
path: root/package/devel
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2016-01-20 22:59:34 +0000
committerFelix Fietkau <nbd@openwrt.org>2016-01-20 22:59:34 +0000
commit1c4d5aa207a50a6a0b016fb3844cc01436b5551b (patch)
treed5885fb42c4d14c38a57802b68421d17a9ca734a /package/devel
parent5668dba5ea42e748e910fa351af3dd279561a673 (diff)
downloadmaster-31e0f0ae-1c4d5aa207a50a6a0b016fb3844cc01436b5551b.tar.gz
master-31e0f0ae-1c4d5aa207a50a6a0b016fb3844cc01436b5551b.tar.bz2
master-31e0f0ae-1c4d5aa207a50a6a0b016fb3844cc01436b5551b.zip
valgrind: fix build with mips soft-float
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 48419
Diffstat (limited to 'package/devel')
-rw-r--r--package/devel/valgrind/patches/130-mips_fix_soft_float.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/devel/valgrind/patches/130-mips_fix_soft_float.patch b/package/devel/valgrind/patches/130-mips_fix_soft_float.patch
new file mode 100644
index 0000000000..e1d387c5a8
--- /dev/null
+++ b/package/devel/valgrind/patches/130-mips_fix_soft_float.patch
@@ -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;
+ }
+