summaryrefslogtreecommitdiff
path: root/package/devel/valgrind/patches/120-mips_fix_soft_float.patch
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@nbd.name>2016-07-05 10:08:59 +0200
committerFelix Fietkau <nbd@nbd.name>2016-07-07 10:57:45 +0200
commitbcb1d9399f8ee1028f6573ec4c8c5b9c1940ae0e (patch)
treed81968c5adcaf945b51cc429d7cd0b9d1aaace66 /package/devel/valgrind/patches/120-mips_fix_soft_float.patch
parent01fc738b46c0df35b41806c99f32d132743dbe59 (diff)
downloadmtk-20170518-bcb1d9399f8ee1028f6573ec4c8c5b9c1940ae0e.zip
mtk-20170518-bcb1d9399f8ee1028f6573ec4c8c5b9c1940ae0e.tar.gz
mtk-20170518-bcb1d9399f8ee1028f6573ec4c8c5b9c1940ae0e.tar.bz2
valgrind: update to the latest version, fix build issues on ARM
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Diffstat (limited to 'package/devel/valgrind/patches/120-mips_fix_soft_float.patch')
-rw-r--r--package/devel/valgrind/patches/120-mips_fix_soft_float.patch34
1 files changed, 34 insertions, 0 deletions
diff --git a/package/devel/valgrind/patches/120-mips_fix_soft_float.patch b/package/devel/valgrind/patches/120-mips_fix_soft_float.patch
new file mode 100644
index 0000000..1cf5aec
--- /dev/null
+++ b/package/devel/valgrind/patches/120-mips_fix_soft_float.patch
@@ -0,0 +1,34 @@
+--- a/VEX/priv/guest_mips_helpers.c
++++ b/VEX/priv/guest_mips_helpers.c
+@@ -1201,6 +1201,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;
+@@ -1320,6 +1321,7 @@ extern UInt mips_dirtyhelper_calculate_F
+ break;
+ }
+ #endif
++#endif
+ return ret;
+ }
+
+@@ -1329,6 +1331,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;
+@@ -1439,6 +1442,7 @@ extern UInt mips_dirtyhelper_calculate_F
+ break;
+ }
+ #endif
++#endif
+ return ret;
+ }
+