Bug 1435219 - Add missing WasmSignalHandler platform definitions on Linux sparc64 r=bbouvier

Signed-off-by: John Paul Adrian Glaubitz <glaubitz@suse.com>
This commit is contained in:
John Paul Adrian Glaubitz 2018-02-02 07:28:00 +02:00
parent f805944739
commit 0212dd5f6d

View File

@ -176,6 +176,11 @@ struct AutoSignalHandler
# define RSP_sig(p) ((p)->uc_mcontext.gregs[29])
# define R31_sig(p) ((p)->uc_mcontext.gregs[31])
# endif
# if defined(__linux__) && (defined(__sparc__) && defined(__arch64__))
# define PC_sig(p) ((p)->uc_mcontext.mc_gregs[MC_PC])
# define FP_sig(p) ((p)->uc_mcontext.mc_fp)
# define SP_sig(p) ((p)->uc_mcontext.mc_i7)
# endif
#elif defined(__NetBSD__)
# define XMM_sig(p,i) (((struct fxsave64*)(p)->uc_mcontext.__fpregs)->fx_xmm[i])
# define EIP_sig(p) ((p)->uc_mcontext.__gregs[_REG_EIP])