linux-user: Fix incorrect offset of tuc_stack in ARM do_sigframe_return_v2
authorTimothy E Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
Fri, 9 Sep 2016 18:35:58 +0000 (19:35 +0100)
committerRiku Voipio <riku.voipio@linaro.org>
Wed, 21 Sep 2016 19:17:02 +0000 (22:17 +0300)
commit45eafb4d32ced9ff1dcb3800c89f8beaf47b61cc
treeff0e7ef92529043bb2e2186eabcd15e7c9481bb1
parent5ea2fc84da1bffce749c9d0848f5336def2818bb
linux-user: Fix incorrect offset of tuc_stack in ARM do_sigframe_return_v2

struct target_ucontext_v2 is not at the begining of the signal frame,
therefore do_sigaltstack was being passed bogus arguments.

As the offset depends on the type of signal frame fixed by passing in the
beginning of the context from do_sigreturn_v2 and do_rt_sigreturn_v2.

Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Timothy Edward Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/signal.c