linux-user/ppc: Fix padding in mcontext_t for ppc64
commit5da5f47e6c65eda83e5433bd905c4df03be98596
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 7 Apr 2020 03:21:05 +0000 (6 20:21 -0700)
committerDavid Gibson <david@gibson.dropbear.id.au>
Fri, 17 Apr 2020 00:38:29 +0000 (17 10:38 +1000)
treefa8110e5c457daa3848750e5509a7a17b4507c51
parent20038cd7a8412feeb49c01f6ede89e36c8995472
linux-user/ppc: Fix padding in mcontext_t for ppc64

The padding that was added in 95cda4c44ee was added to a union,
and so it had no effect.  This fixes misalignment errors detected
by clang sanitizers for ppc64 and ppc64le.

In addition, only ppc64 allocates space for VSX registers, so do
not save them for ppc32.  The kernel only has references to
CONFIG_SPE in signal_32.c, so do not attempt to save them for ppc64.

Fixes: 95cda4c44ee
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20200407032105.26711-1-richard.henderson@linaro.org>
Acked-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
linux-user/ppc/signal.c