]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
mips64: disable intercepting the spinlock function
authorPetar Jovanovic <mips32r2@gmail.com>
Sun, 2 Jun 2013 18:08:04 +0000 (18:08 +0000)
committerPetar Jovanovic <mips32r2@gmail.com>
Sun, 2 Jun 2013 18:08:04 +0000 (18:08 +0000)
This change disables intercepting pthread_spin_lock() for MIPS64, similar to
r13190 for MIPS32. Used in DRD and Helgrind as a workaround for the issue
#311690.

git-svn-id: svn://svn.valgrind.org/valgrind/trunk@13417

configure.in

index c5f26922b41339f45d5d0525fa1775983a36c65a..232ddcbc8bc5bc3db96f7311ad8d70b0d12dd9cb 100644 (file)
@@ -2165,9 +2165,10 @@ AM_CONDITIONAL([HAVE_PTHREAD_MUTEX_TIMEDLOCK],
 AM_CONDITIONAL([HAVE_PTHREAD_SPINLOCK],
                [test x$ac_cv_func_pthread_spin_lock = xyes])
 
-if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX ; then
+if test x$VGCONF_PLATFORM_PRI_CAPS = xMIPS32_LINUX \
+     -o x$VGCONF_PLATFORM_PRI_CAPS = xMIPS64_LINUX ; then
   AC_DEFINE([DISABLE_PTHREAD_SPINLOCK_INTERCEPT], 1,
-            [Disable intercept pthread_spin_lock() on MIPS32.])
+            [Disable intercept pthread_spin_lock() on MIPS32 and MIPS64.])
 fi
 
 #----------------------------------------------------------------------------