linux-user: Fix endianess of aarch64 signal trampoline
commit50f22fa60d95c04a179e2cbf4b5f58d1f6068b61
authorMichael Weiser <michael.weiser@gmx.de>
Thu, 11 Jan 2018 13:25:31 +0000 (11 13:25 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 11 Jan 2018 13:25:31 +0000 (11 13:25 +0000)
tree54ae7629bae9584746411b592bf970bd8c60dc1e
parentcb3aa5fea19cdc108baf6c3aff2e768bf9475b50
linux-user: Fix endianess of aarch64 signal trampoline

Since for aarch64 the signal trampoline is synthesized directly into the
signal frame we need to make sure the instructions end up little-endian.
Otherwise the wrong endianness will cause a SIGILL upon return from the
signal handler on big-endian targets.

Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20171220212308.12614-4-michael.weiser@gmx.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
linux-user/signal.c