diff options
author | Felix Fietkau <nbd@openwrt.org> | 2016-01-20 22:59:34 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2016-01-20 22:59:34 +0000 |
commit | 054e8b416edf33f93cb0616b18194f6fd0942626 (patch) | |
tree | 1f04a9cb63f7f8f4c816c0bf2e25cd22635332d7 | |
parent | 59257c6d0799d6c779bb4889cd787663a38496bf (diff) | |
download | master-187ad058-054e8b416edf33f93cb0616b18194f6fd0942626.tar.gz master-187ad058-054e8b416edf33f93cb0616b18194f6fd0942626.tar.bz2 master-187ad058-054e8b416edf33f93cb0616b18194f6fd0942626.zip |
valgrind: fix build with mips soft-float
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48419 3c298f89-4303-0410-b956-a3cf2f4a3e73
-rw-r--r-- | package/devel/valgrind/patches/130-mips_fix_soft_float.patch | 34 |
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; + } + |