]> git.ipfire.org Git - thirdparty/qemu.git/commit
linux-user/nios2: Fixes for signal frame setup
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 21 Dec 2021 02:50:07 +0000 (18:50 -0800)
committerLaurent Vivier <laurent@vivier.eu>
Thu, 6 Jan 2022 10:40:52 +0000 (11:40 +0100)
commit80c6e9d4aea4252c3201719299adde1d55ee539e
tree24e614ed63401504a7a2c1d742aa14c45645d68a
parent87d7bfdba1d4a963e9a89052c38a32327fa25473
linux-user/nios2: Fixes for signal frame setup

Do not confuse host and guest addresses.  Lock and unlock
the target_rt_sigframe structure in setup_rt_sigframe.

Since rt_setup_ucontext always returns 0, drop the return
value entirely.  This eliminates the only write to the err
variable in setup_rt_sigframe.

Always copy the siginfo structure.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20211221025012.1057923-3-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/nios2/signal.c