Skip to contentSkip to conversation

package/webkitgtk: disable JSC JIT for MIPSr6

PATCH New Adrian Perez de Castro 2 participants 6 messages Feb 11, 2020 – Mar 7, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 package/webkitgtk: disable JSC JIT for MIPSr6

Forcibly disable the JavaScriptCore JIT compilation support for MIPSr6 processors, which are unsupported.

---
 package/webkitgtk/webkitgtk.mk | 9 +++++++++
 1 file changed, 9 insertions(+)
package/webkitgtk/webkitgtk.mk +9 -0
index e5d591fcd2..cbd9003071 100644
@@ -104,4 +104,13 @@ else
 WEBKITGTK_CONF_OPTS += -DUSE_GSTREAMER_GL=OFF
 endif
 
+# JIT is not supported for MIPS r6, but the WebKit build system does not
+# have a check for these processors. Disable JIT forcibly here and use
+# the CLoop interpreter instead.
+#
+# Upstream bug: https://bugs.webkit.org/show_bug.cgi?id=191258
+ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
+WEBKITGTK_CONF_OPTS += -DENABLE_JIT=OFF -DENABLE_C_LOOP=ON
+endif
+
 $(eval $(cmake-package))
Signature · 1 line
2.25.0
#1 lore raw

PATCH 2/2 package/wpewebkit: disable JSC JIT for MIPSr6

Forcibly disable the JavaScriptCore JIT compilation support for MIPSr6 processors, which are unsupported.

---
 package/wpewebkit/wpewebkit.mk | 9 +++++++++
 1 file changed, 9 insertions(+)
package/wpewebkit/wpewebkit.mk +9 -0
index cf45b68943..8b890301b7 100644
@@ -63,4 +63,13 @@ else
 WPEWEBKIT_CONF_OPTS += -DUSE_WOFF2=OFF
 endif
 
+# JIT is not supported for MIPS r6, but the WebKit build system does not
+# have a check for these processors. Disable JIT forcibly here and use
+# the CLoop interpreter instead.
+#
+# Upstream bug: https://bugs.webkit.org/show_bug.cgi?id=191258
+ifeq ($(BR2_MIPS_CPU_MIPS32R6)$(BR2_MIPS_CPU_MIPS64R6),y)
+WPEWEBKIT_CONF_OPTS += -DENABLE_JIT=OFF -DENABLE_C_LOOP=ON
+endif
+
 $(eval $(cmake-package))
Signature · 1 line
2.25.0
#2 lore raw

PATCH 2/2 package/wpewebkit: disable JSC JIT for MIPSr6

Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

Forcibly disable the JavaScriptCore JIT compilation support for MIPSr6 processors, which are unsupported.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 2/2 package/wpewebkit: disable JSC JIT for MIPSr6

In reply to Adrian Perez de Castro
Quoted 6 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

Forcibly disable the JavaScriptCore JIT compilation support for MIPSr6 processors, which are unsupported.

Committed to 2019.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#4 lore raw

PATCH 1/2 package/webkitgtk: disable JSC JIT for MIPSr6

In reply to Adrian Perez de Castro
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

Forcibly disable the JavaScriptCore JIT compilation support for MIPSr6 processors, which are unsupported.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#5 lore raw

PATCH 1/2 package/webkitgtk: disable JSC JIT for MIPSr6

In reply to Adrian Perez de Castro
Quoted 8 lines
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Adrian" == Adrian Perez de Castro <[email protected]> writes:

Forcibly disable the JavaScriptCore JIT compilation support for MIPSr6 processors, which are unsupported.

Committed to 2019.02.x and 2019.11.x, thanks.

Signature · 1 line
Bye, Peter Korsgaard