valgrind: improve mips support
[openwrt/staging/yousong.git] / package / devel / valgrind / patches / 120-mips_fix_soft_float.patch
index 1cf5aeca02ad7eca1e5d7e9de88c8f90f9b61c29..a407a9311ebb10adcd0f1cb8a9bb07ae979d38c7 100644 (file)
     return ret;
  }
  
+--- a/coregrind/m_machine.c
++++ b/coregrind/m_machine.c
+@@ -1652,6 +1652,7 @@ Bool VG_(machine_get_hwcaps)( void )
+         }
+      }
++#ifndef __mips_soft_float
+      /* Check if CPU has FPU and 32 dbl. prec. FP registers */
+      int FIR = 0;
+      __asm__ __volatile__(
+@@ -1661,6 +1662,7 @@ Bool VG_(machine_get_hwcaps)( void )
+      if (FIR & (1 << FP64)) {
+         vai.hwcaps |= VEX_PRID_CPU_32FPR;
+      }
++#endif
+      VG_(convert_sigaction_fromK_to_toK)(&saved_sigill_act, &tmp_sigill_act);
+      VG_(sigaction)(VKI_SIGILL, &tmp_sigill_act, NULL);