diff options
author | Michael Weiser <michael.weiser@gmx.de> | 2018-01-11 13:25:31 +0000 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2018-01-11 13:25:31 +0000 |
commit | cb3aa5fea19cdc108baf6c3aff2e768bf9475b50 (patch) | |
tree | 8339098f59782a08d9b60d79567b34fae2436217 /linux-user/aarch64 | |
parent | dfdcf34031db02eb8d81dd3b1c3415ec900c40bb (diff) | |
download | qemu-cb3aa5fea19cdc108baf6c3aff2e768bf9475b50.zip qemu-cb3aa5fea19cdc108baf6c3aff2e768bf9475b50.tar.gz qemu-cb3aa5fea19cdc108baf6c3aff2e768bf9475b50.tar.bz2 |
linux-user: Add separate aarch64_be uname
Make big-endian aarch64 systems identify as aarch64_be as expected by
big-endian userland and toolchains.
Signed-off-by: Michael Weiser <michael.weiser@gmx.de>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Message-id: 20171220212308.12614-3-michael.weiser@gmx.de
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'linux-user/aarch64')
-rw-r--r-- | linux-user/aarch64/target_syscall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/aarch64/target_syscall.h b/linux-user/aarch64/target_syscall.h index 1b62953..604ab99 100644 --- a/linux-user/aarch64/target_syscall.h +++ b/linux-user/aarch64/target_syscall.h @@ -8,7 +8,11 @@ struct target_pt_regs { uint64_t pstate; }; +#if defined(TARGET_WORDS_BIGENDIAN) +#define UNAME_MACHINE "aarch64_be" +#else #define UNAME_MACHINE "aarch64" +#endif #define UNAME_MINIMUM_RELEASE "3.8.0" #define TARGET_CLONE_BACKWARDS #define TARGET_MINSIGSTKSZ 2048 |