From: Julian Seward Date: Thu, 4 Aug 2005 23:52:21 +0000 (+0000) Subject: ppc32-linux only: HACK: for now, mess with the auxv handed to the X-Git-Tag: svn/VALGRIND_3_1_0~667 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b07d3b8200daffd0b340d16729e5a235b232dfdf;p=thirdparty%2Fvalgrind.git 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. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@4323 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index b417e9cd73..91a5ec633d 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -179,6 +179,12 @@ static int scan_auxv(void* init_sp) (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 &= ~0x10000000; /* claim there is no Altivec support */ + VG_(debugLog)(1, "main", "PPC32 hwcaps(2): 0x%x\n", (UInt)auxv->u.a_val); + break; # endif case AT_PHDR: