|
From: <sv...@va...> - 2005-08-04 23:52:29
|
Author: sewardj
Date: 2005-08-05 00:52:21 +0100 (Fri, 05 Aug 2005)
New Revision: 4323
Log:
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:
trunk/coregrind/m_main.c
Modified: trunk/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
--- trunk/coregrind/m_main.c 2005-08-04 19:26:54 UTC (rev 4322)
+++ trunk/coregrind/m_main.c 2005-08-04 23:52:21 UTC (rev 4323)
@@ -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:
|