25 lines
677 B
Diff
25 lines
677 B
Diff
commit 558ab896cbdd90259950c631ba29a1c66bf4c2d3
|
|
Author: q66 <daniel@octaforge.org>
|
|
Date: Mon Feb 28 23:53:22 2022 +0100
|
|
|
|
add some hwcap bits fallbacks
|
|
|
|
diff --git a/deps/v8/src/base/cpu.cc b/deps/v8/src/base/cpu.cc
|
|
index a1b21d2..8e52802 100644
|
|
--- a/deps/v8/src/base/cpu.cc
|
|
+++ b/deps/v8/src/base/cpu.cc
|
|
@@ -768,6 +768,13 @@ CPU::CPU()
|
|
|
|
#elif V8_HOST_ARCH_PPC || V8_HOST_ARCH_PPC64
|
|
|
|
+#ifndef PPC_FEATURE2_HAS_ISEL
|
|
+#define PPC_FEATURE2_HAS_ISEL 0x08000000
|
|
+#endif
|
|
+#ifndef PPC_FEATURE2_ARCH_3_1
|
|
+#define PPC_FEATURE2_ARCH_3_1 0x00040000
|
|
+#endif
|
|
+
|
|
#ifndef USE_SIMULATOR
|
|
#if V8_OS_LINUX
|
|
// Read processor info from getauxval() (needs at least glibc 2.18 or musl).
|