about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/libtools/signals.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/libtools/signals.c b/src/libtools/signals.c
index a3030e40..bb58efee 100644
--- a/src/libtools/signals.c
+++ b/src/libtools/signals.c
@@ -1114,6 +1114,7 @@ void my_sigactionhandler_oldcode(int32_t sig, int simple, siginfo_t* info, void
     fpu_xsave_mask(emu, xstate, 0, 0b111);
     memcpy(&sigcontext->xstate, xstate, sizeof(sigcontext->xstate));
     ((struct x64_fpstate*)xstate)->res[12] = 0x46505853;   // magic number to signal an XSTATE type of fpregs
+    ((struct x64_fpstate*)xstate)->res[13] = 0; // offset to xstate after this?
     // get signal mask
 
     if(new_ss) {