summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Horak <jhorak@redhat.com>2017-09-05 11:34:45 +0200
committerJan Horak <jhorak@redhat.com>2017-09-05 11:34:45 +0200
commitbee2fa8e84972e55c9bca1b62f690fe036cf24de (patch)
treefc4c9ec69cae7f5bbffff0760f4a4dd6a9571e2a
parentAdded fix for s390x, fixing macroassembler-none.h (diff)
downloadlibrewolf-fedora-ff-bee2fa8e84972e55c9bca1b62f690fe036cf24de.tar.gz
librewolf-fedora-ff-bee2fa8e84972e55c9bca1b62f690fe036cf24de.tar.bz2
librewolf-fedora-ff-bee2fa8e84972e55c9bca1b62f690fe036cf24de.zip
Fix for missing cacheFlush when JS_CODEGE_NONE is used (s390)
-rw-r--r--build-cacheFlush-missing.patch13
-rw-r--r--firefox.spec3
2 files changed, 16 insertions, 0 deletions
diff --git a/build-cacheFlush-missing.patch b/build-cacheFlush-missing.patch
new file mode 100644
index 0000000..51c368c
--- /dev/null
+++ b/build-cacheFlush-missing.patch
@@ -0,0 +1,13 @@
+diff -up firefox-55.0.3/js/src/jit/ExecutableAllocator.h.wasm firefox-55.0.3/js/src/jit/ExecutableAllocator.h
+--- firefox-55.0.3/js/src/jit/ExecutableAllocator.h.wasm 2017-09-05 11:32:12.235909468 +0200
++++ firefox-55.0.3/js/src/jit/ExecutableAllocator.h 2017-09-05 11:32:46.157916575 +0200
+@@ -219,7 +219,7 @@ class ExecutableAllocator
+
+ static void poisonCode(JSRuntime* rt, JitPoisonRangeVector& ranges);
+
+-#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) || defined(JS_SIMULATOR_ARM64)
++#if defined(JS_CODEGEN_X86) || defined(JS_CODEGEN_X64) || defined(JS_SIMULATOR_ARM64) || defined(JS_CODEGEN_NONE)
+ static void cacheFlush(void*, size_t)
+ {
+ }
+diff -up firefox-55.0.3/js/src/jit-test/tests/wasm/bench/wasm_box2d.wasm firefox-55.0.3/js/src/jit-test/tests/wasm/bench/wasm_box2d
diff --git a/firefox.spec b/firefox.spec
index 9f5fb8d..a7d8e03 100644
--- a/firefox.spec
+++ b/firefox.spec
@@ -141,6 +141,8 @@ Patch36: build-missing-xlocale-h.patch
# Always feel lucky for unsupported platforms:
# https://bugzilla.mozilla.org/show_bug.cgi?id=1347128
Patch37: build-jit-atomic-always-lucky.patch
+# Fixing missing cacheFlush when JS_CODEGEN_NONE is used (s390x)
+Patch38: build-cacheFlush-missing.patch
# Fedora specific patches
# Unable to install addons from https pages
@@ -321,6 +323,7 @@ This package contains results of tests executed during build.
%patch35 -p1 -b .ppc-jit
%endif
%patch37 -p1 -b .jit-atomic-lucky
+%patch38 -p1 -b .cacheFlush-missing
%patch3 -p1 -b .arm
bgstack15