From 6272856be8337e2a3ce95a5940c3542df921f562 Mon Sep 17 00:00:00 2001 From: Lars T Hansen Date: Tue, 1 Oct 2019 09:49:37 +0000 Subject: [PATCH] Bug 1584551 - Use correct register name for sigcontext's SP on AMR64 linux. r=jseward Differential Revision: https://phabricator.services.mozilla.com/D47590 --HG-- extra : moz-landing-system : lando --- js/src/wasm/WasmSignalHandlers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/wasm/WasmSignalHandlers.cpp b/js/src/wasm/WasmSignalHandlers.cpp index 636537f84786..f8977a6b074a 100644 --- a/js/src/wasm/WasmSignalHandlers.cpp +++ b/js/src/wasm/WasmSignalHandlers.cpp @@ -136,7 +136,7 @@ using mozilla::DebugOnly; # define EPC_sig(p) ((p)->uc_mcontext.pc) # define RFP_sig(p) ((p)->uc_mcontext.regs[29]) # define RLR_sig(p) ((p)->uc_mcontext.regs[30]) -# define R31_sig(p) ((p)->uc_mcontext.regs[31]) +# define R31_sig(p) ((p)->uc_mcontext.sp) # endif # if defined(__linux__) && defined(__mips__) # define EPC_sig(p) ((p)->uc_mcontext.pc)