9c0984
diff -up firefox-78.2.0/mozglue/build/ppc.cpp.ppc-vsx firefox-78.2.0/mozglue/build/ppc.cpp
9c0984
--- firefox-78.2.0/mozglue/build/ppc.cpp.ppc-vsx	2020-09-11 07:07:05.850864720 +0200
9c0984
+++ firefox-78.2.0/mozglue/build/ppc.cpp	2020-09-11 07:08:48.884202679 +0200
9c0984
@@ -14,10 +14,6 @@
9c0984
 #if defined(XP_LINUX)
9c0984
 // Use the getauxval() function if available.
9c0984
 // ARCH_3_00 wasn't defined until glibc 2.23, so include just in case.
9c0984
-#  include <sys/auxv.h>
9c0984
-#  ifndef PPC_FEATURE2_ARCH_3_00
9c0984
-#    define PPC_FEATURE2_ARCH_3_00 0x00800000
9c0984
-#  endif
9c0984
 #endif
9c0984
 
9c0984
 const unsigned PPC_FLAG_VMX = 1;
9c0984
@@ -33,24 +29,8 @@ static signed get_ppc_cpu_flags(void) {
9c0984
   }
9c0984
   cpu_flags = 0;
9c0984
 
9c0984
-#if defined(XP_LINUX)
9c0984
-  // Try getauxval().
9c0984
-  unsigned long int cap = getauxval(AT_HWCAP);
9c0984
-  unsigned long int cap2 = getauxval(AT_HWCAP2);
9c0984
-
9c0984
-  if (cap & PPC_FEATURE_HAS_ALTIVEC) {
9c0984
-    cpu_flags |= PPC_FLAG_VMX;
9c0984
-  }
9c0984
-  if (cap & PPC_FEATURE_HAS_VSX) {
9c0984
-    cpu_flags |= PPC_FLAG_VSX;
9c0984
-  }
9c0984
-  if (cap2 & PPC_FEATURE2_ARCH_3_00) {
9c0984
-    cpu_flags |= PPC_FLAG_VSX3;
9c0984
-  }
9c0984
-#else
9c0984
   // Non-Linux detection here. Currently, on systems other than Linux,
9c0984
   // no CPU SIMD features will be detected.
9c0984
-#endif
9c0984
 
9c0984
   return cpu_flags;
9c0984
 }