linux-user: Add support for big-endian aarch64
authorMichael Weiser <michael.weiser@gmx.de>
Thu, 11 Jan 2018 13:25:31 +0000 (13:25 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 11 Jan 2018 13:25:31 +0000 (13:25 +0000)
commitdfdcf34031db02eb8d81dd3b1c3415ec900c40bb
tree11a7d7aecbc2f14addb5124d1ea03e93d3129ce2
parent612061b277915fadd80631eb7a6926f48a110c44
linux-user: Add support for big-endian aarch64

Enable big-endian mode for data accesses on aarch64 for big-endian linux
user mode. Activate it for all exception levels as documented by ARM:
Set the SCTLR EE bit for ELs 1 through 3. Additionally set bit E0E in
EL1 to enable it in EL0 as well.

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