linux-user/include/host/sparc64: Fix host_sigcontext
commit4f152ef27e26d82905244b7cbe344929630d8fae
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Feb 2022 06:49:12 +0000 (8 09:49 +0300)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 8 Feb 2022 21:49:30 +0000 (9 08:49 +1100)
treebdb76d337e321ecb50dca0e816d1a76693037b74
parent238b32de39b77b01ef4f205e09b01fda8a3a9216
linux-user/include/host/sparc64: Fix host_sigcontext

Sparc64 is unique on linux in *not* passing ucontext_t as
the third argument to a SA_SIGINFO handler.  It passes the
old struct sigcontext instead.

Set both pc and npc in host_signal_set_pc.

Fixes: 8b5bd461935b ("linux-user/host/sparc: Populate host_signal.h")
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/include/host/sparc64/host-signal.h