From bee2fa8e84972e55c9bca1b62f690fe036cf24de Mon Sep 17 00:00:00 2001 From: Jan Horak Date: Tue, 5 Sep 2017 11:34:45 +0200 Subject: [PATCH] Fix for missing cacheFlush when JS_CODEGE_NONE is used (s390) --- build-cacheFlush-missing.patch | 13 +++++++++++++ firefox.spec | 3 +++ 2 files changed, 16 insertions(+) create mode 100644 build-cacheFlush-missing.patch 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