linux-user/s390x: Fix sigcontext sregs value

Using the host address of &frame->sregs is incorrect.
We need the guest address.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20210428193408.233706-7-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
This commit is contained in:
Richard Henderson 2021-04-28 12:33:59 -07:00 committed by Laurent Vivier
parent bd45be9f5f
commit 4e4a08200b
1 changed files with 1 additions and 1 deletions

View File

@ -142,7 +142,7 @@ void setup_frame(int sig, struct target_sigaction *ka,
save_sigregs(env, &frame->sregs);
__put_user((abi_ulong)(unsigned long)&frame->sregs, &frame->sc.sregs);
__put_user(frame_addr + offsetof(sigframe, sregs), &frame->sc.sregs);
/* Set up to return from userspace. If provided, use a stub
already in userspace. */