From: Richard Henderson Date: Thu, 22 Apr 2021 23:02:21 +0000 (-0700) Subject: linux-user/alpha: Fix rt sigframe return X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=8f5141a9e10c8621c902eeb969bd188d995ecc18;p=qemu.git linux-user/alpha: Fix rt sigframe return We incorrectly used the offset of the non-rt sigframe. Reviewed-by: Laurent Vivier Reviewed-by: Philippe Mathieu-Daudé Signed-off-by: Richard Henderson Reviewed-by: Alex Bennée Message-Id: <20210422230227.314751-2-richard.henderson@linaro.org> Signed-off-by: Laurent Vivier --- diff --git a/linux-user/alpha/signal.c b/linux-user/alpha/signal.c index d4e4666874..0eec9ba3fd 100644 --- a/linux-user/alpha/signal.c +++ b/linux-user/alpha/signal.c @@ -200,7 +200,7 @@ void setup_rt_frame(int sig, struct target_sigaction *ka, &frame->retcode[1]); __put_user(INSN_CALLSYS, &frame->retcode[2]); /* imb(); */ - r26 = frame_addr + offsetof(struct target_sigframe, retcode); + r26 = frame_addr + offsetof(struct target_rt_sigframe, retcode); } if (err) {