]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Un-break ppc32 following recent hw-capabilities hackery.
authorJulian Seward <jseward@acm.org>
Fri, 27 Jan 2006 21:52:39 +0000 (21:52 +0000)
committerJulian Seward <jseward@acm.org>
Fri, 27 Jan 2006 21:52:39 +0000 (21:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5598

coregrind/m_machine.c

index 49bfb035d8eddc7ffdb85e1ce7a6420b440d7b57..6c15588ee3e0e3ac48d22fa7a3831a11257b83ac 100644 (file)
@@ -341,7 +341,7 @@ Bool VG_(machine_get_hwcaps)( void )
      vki_sigset_t         saved_set, tmp_set;
      struct vki_sigaction saved_act, tmp_act;
 
-     volatile Bool have_fp, have_vmx;
+     volatile Bool have_F, have_V, have_FX, have_GX;
 
      VG_(sigemptyset)(&tmp_set);
      VG_(sigaddset)(&tmp_set, VKI_SIGILL);
@@ -391,16 +391,15 @@ Bool VG_(machine_get_hwcaps)( void )
      if (__builtin_setjmp(env_sigill)) {
         have_GX = False;
      } else {
-        __asm__ __volatile__("fsqrte 0,0");
+        __asm__ __volatile__("frsqrte 0,0");
      }
 
      VG_(sigaction)(VKI_SIGILL, &saved_act, NULL);
      VG_(sigprocmask)(VKI_SIG_SETMASK, &saved_set, NULL);
-
-     if (0)
+     /*
         VG_(printf)("F %d V %d FX %d GX %d\n", 
                     (Int)have_F, (Int)have_V, (Int)have_FX, (Int)have_GX);
-
+     */
      /* Make FP a prerequisite for VMX (bogusly so), and for FX and GX. */
      if (have_V && !have_F)
         have_V = False;
@@ -430,7 +429,7 @@ Bool VG_(machine_get_hwcaps)( void )
      vki_sigset_t         saved_set, tmp_set;
      struct vki_sigaction saved_act, tmp_act;
 
-     volatile Bool have_fp, have_vmx;
+     volatile Bool have_F, have_V, have_FX, have_GX;
 
      VG_(sigemptyset)(&tmp_set);
      VG_(sigaddset)(&tmp_set, VKI_SIGILL);
@@ -480,16 +479,16 @@ Bool VG_(machine_get_hwcaps)( void )
      if (__builtin_setjmp(env_sigill)) {
         have_GX = False;
      } else {
-        __asm__ __volatile__("fsqrte 0,0");
+        __asm__ __volatile__("frsqrte 0,0");
      }
 
      VG_(sigaction)(VKI_SIGILL, &saved_act, NULL);
      VG_(sigprocmask)(VKI_SIG_SETMASK, &saved_set, NULL);
-
+     /*
      if (0)
         VG_(printf)("F %d V %d FX %d GX %d\n", 
                     (Int)have_F, (Int)have_V, (Int)have_FX, (Int)have_GX);
-
+     */
      /* on ppc64, if we don't even have FP, just give up. */
      if (!have_F)
         return False;