Hello,
below patches add support for big-endian aarch64 to linux-user. Almost
everything is already in place. The patches just set up the CPU flags as
required for big-endianess, add a distinction in uname and make sure the
instructions for the signal trampoline end up in memory little-endian.
Finally, configure is extended to allow building of a
aarch64_be-linux-user target.
With this I am able to run individual aarch64_be binaries as well as
chroot into a full-blown aarch64_be userland using binfmt_misc, running
and compiling things (Gentoo crossdev/native).
Thanks,
Michael
Michael Weiser (4):
linux-user: Add support for big-endian aarch64
linux-user: Add separate aarch64_be uname
linux-user: Fix endianess of aarch64 signal trampoline
configure: Add aarch64_be-linux-user target
configure | 9 +++++----
default-configs/aarch64_be-linux-user.mak | 1 +
linux-user/aarch64/target_syscall.h | 4 ++++
linux-user/main.c | 6 ++++++
linux-user/signal.c | 10 +++++++---
5 files changed, 23 insertions(+), 7 deletions(-)
create mode 100644 default-configs/aarch64_be-linux-user.mak
--
2.15.1