]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
ppc32-linux only: HACK: for now, mess with the auxv handed to the
authorJulian Seward <jseward@acm.org>
Thu, 4 Aug 2005 23:52:21 +0000 (23:52 +0000)
committerJulian Seward <jseward@acm.org>
Thu, 4 Aug 2005 23:52:21 +0000 (23:52 +0000)
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

coregrind/m_main.c

index b417e9cd73e3c6d4e16ecbd5d44904e05e862428..91a5ec633d08b55c3eb85ee8cff3a7b6a17cd0e0 100644 (file)
@@ -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: