openbsd-ports/devel/spidermonkey78/patches/patch-js_src_wasm_WasmSignalHandlers_cpp

17 lines
620 B
Plaintext
Raw Normal View History

$OpenBSD: patch-js_src_wasm_WasmSignalHandlers_cpp,v 1.1.1.1 2020/10/16 19:39:41 jasper Exp $
Fully define all the registers needed on mips.
Index: js/src/wasm/WasmSignalHandlers.cpp
--- js/src/wasm/WasmSignalHandlers.cpp.orig
+++ js/src/wasm/WasmSignalHandlers.cpp
@@ -103,6 +103,8 @@ using mozilla::DebugOnly;
# if defined(__mips__)
# define EPC_sig(p) ((p)->sc_pc)
# define RFP_sig(p) ((p)->sc_regs[30])
+# define RSP_sig(p) ((p)->sc_regs[29])
+# define R31_sig(p) ((p)->sc_regs[31])
# endif
# if defined(__ppc64__) || defined(__PPC64__) || defined(__ppc64le__) || \
defined(__PPC64LE__)