linux-user/sparc: Minor corrections to do_sigreturn
commit1176e57a8b34c845a89b2b0f86e424a825d40faa
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 26 Apr 2021 02:53:30 +0000 (25 19:53 -0700)
committerLaurent Vivier <laurent@vivier.eu>
Sat, 15 May 2021 19:43:23 +0000 (15 21:43 +0200)
tree120fa4dbbbffff8b2310bfd6373fe0e6782a16ae
parent757d260143488d1d0b4016020969ab28259b854b
linux-user/sparc: Minor corrections to do_sigreturn

Check that the input sp is 16 byte aligned, not 4.
Do that before the lock_user_struct check.

Validate the saved sp is 8 byte aligned.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20210426025334.1168495-22-richard.henderson@linaro.org>
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
linux-user/sparc/signal.c