mirror of https://gitee.com/openkylin/qemu.git
linux-user: fix alpha signal emulation
setup_frame() doesn't set correctly the address of the trampoline code. The offset of retcode array must be added to the stack frame address. Signed-off-by: Laurent Vivier <laurent@vivier.eu> Message-Id: <20180401204653.14211-1-laurent@vivier.eu>
This commit is contained in:
parent
f184de7553
commit
95a29a4e3e
|
@ -6367,7 +6367,7 @@ static void setup_frame(int sig, struct target_sigaction *ka,
|
|||
&frame->retcode[1]);
|
||||
__put_user(INSN_CALLSYS, &frame->retcode[2]);
|
||||
/* imb() */
|
||||
r26 = frame_addr;
|
||||
r26 = frame_addr + offsetof(struct target_sigframe, retcode);
|
||||
}
|
||||
|
||||
unlock_user_struct(frame, frame_addr, 1);
|
||||
|
@ -6424,7 +6424,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka,
|
|||
&frame->retcode[1]);
|
||||
__put_user(INSN_CALLSYS, &frame->retcode[2]);
|
||||
/* imb(); */
|
||||
r26 = frame_addr;
|
||||
r26 = frame_addr + offsetof(struct target_sigframe, retcode);
|
||||
}
|
||||
|
||||
if (err) {
|
||||
|
|
Loading…
Reference in New Issue