|
From: <sv...@va...> - 2005-08-10 11:28:53
|
Author: dirk
Date: 2005-08-10 12:28:50 +0100 (Wed, 10 Aug 2005)
New Revision: 4362
Log:
r4323 | sewardj | 2005-08-05 01:52:21 +0200 (Fri, 05 Aug 2005) | 6 lines
ppc32-linux only: HACK: for now, mess with the auxv handed to the
client so as to not claim that the CPU supports Altivec. This is a
partially-successful hack to try and dissuade glibc and its minions
from doing Altivec insns.
Modified:
branches/VALGRIND_3_0_BRANCH/coregrind/m_main.c
Modified: branches/VALGRIND_3_0_BRANCH/coregrind/m_main.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
--- branches/VALGRIND_3_0_BRANCH/coregrind/m_main.c 2005-08-10 11:20:44 U=
TC (rev 4361)
+++ branches/VALGRIND_3_0_BRANCH/coregrind/m_main.c 2005-08-10 11:28:50 U=
TC (rev 4362)
@@ -179,6 +179,12 @@
(UInt)auxv->u.a_val, (UInt)auxv->a_type );
}
break;
+
+ case AT_HWCAP:
+ VG_(debugLog)(1, "main", "PPC32 hwcaps(1): 0x%x\n", (UInt)auxv-=
>u.a_val);
+ auxv->u.a_val &=3D ~0x10000000; /* claim there is no Altivec su=
pport */
+ VG_(debugLog)(1, "main", "PPC32 hwcaps(2): 0x%x\n", (UInt)auxv-=
>u.a_val);
+ break;
# endif
=20
case AT_PHDR:
|