0001-Force-baseline-POWER8-AltiVec-VSX-CPU-features-when-.patch 955 Bytes
Newer Older
1 2 3 4 5 6 7 8 9 10
From ea104a841fca1ff4d5430915f1b7c52c6a642f13 Mon Sep 17 00:00:00 2001
From: Timothy Pearson <tpearson@raptorengineering.com>
Date: Fri, 21 Sep 2018 21:44:17 -0500
Subject: [PATCH] Force baseline POWER8 / AltiVec / VSX CPU features when on a
 PPC64 platform in LE mode

---
 BUILD.gn | 6 ++++++
 1 file changed, 6 insertions(+)

11
Index: chromium-129.0.6668.58/v8/BUILD.gn
12
===================================================================
13 14 15
--- chromium-129.0.6668.58.orig/v8/BUILD.gn
+++ chromium-129.0.6668.58/v8/BUILD.gn
@@ -1447,6 +1447,12 @@ config("toolchain") {
16 17 18 19 20 21 22 23 24 25 26 27
     }
     if (host_byteorder == "little") {
       defines += [ "V8_TARGET_ARCH_PPC_LE" ]
+        cflags += [
+        # Enable usage of AltiVec, VSX, and other POWER8 and higher features
+        "-mcpu=power8",
+        "-maltivec",
+        "-mvsx",
+      ]
     } else if (host_byteorder == "big") {
       defines += [ "V8_TARGET_ARCH_PPC_BE" ]
       if (current_os == "aix") {