|
From: <sv...@va...> - 2006-01-27 21:52:44
|
Author: sewardj
Date: 2006-01-27 21:52:39 +0000 (Fri, 27 Jan 2006)
New Revision: 5598
Log:
Un-break ppc32 following recent hw-capabilities hackery.
Modified:
trunk/coregrind/m_machine.c
Modified: trunk/coregrind/m_machine.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_machine.c 2006-01-27 21:23:23 UTC (rev 5597)
+++ trunk/coregrind/m_machine.c 2006-01-27 21:52:39 UTC (rev 5598)
@@ -341,7 +341,7 @@
vki_sigset_t saved_set, tmp_set;
struct vki_sigaction saved_act, tmp_act;
=20
- volatile Bool have_fp, have_vmx;
+ volatile Bool have_F, have_V, have_FX, have_GX;
=20
VG_(sigemptyset)(&tmp_set);
VG_(sigaddset)(&tmp_set, VKI_SIGILL);
@@ -391,16 +391,15 @@
if (__builtin_setjmp(env_sigill)) {
have_GX =3D False;
} else {
- __asm__ __volatile__("fsqrte 0,0");
+ __asm__ __volatile__("frsqrte 0,0");
}
=20
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",=20
(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 =3D False;
@@ -430,7 +429,7 @@
vki_sigset_t saved_set, tmp_set;
struct vki_sigaction saved_act, tmp_act;
=20
- volatile Bool have_fp, have_vmx;
+ volatile Bool have_F, have_V, have_FX, have_GX;
=20
VG_(sigemptyset)(&tmp_set);
VG_(sigaddset)(&tmp_set, VKI_SIGILL);
@@ -480,16 +479,16 @@
if (__builtin_setjmp(env_sigill)) {
have_GX =3D False;
} else {
- __asm__ __volatile__("fsqrte 0,0");
+ __asm__ __volatile__("frsqrte 0,0");
}
=20
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",=20
(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;
|