diff options
author | Doug Kwan <dougkwan@google.com> | 2014-05-29 09:12:19 -0500 |
---|---|---|
committer | Alexander Graf <agraf@suse.de> | 2014-06-16 13:24:40 +0200 |
commit | d90b94cd78af672cdfd52dc3789ab249534c2f40 (patch) | |
tree | 447f45edd3c9ddaef66ae7e3d58c60d98595889d /linux-user/ppc/syscall.h | |
parent | a721d390b302a383a99224e08d12caad2e97d7ab (diff) |
target-ppc: Support little-endian PPC64 in user mode.
Look at ELF header to determine ABI version on PPC64. This is required
for executing the first instruction correctly. Also print correct machine
name in uname() system call.
Signed-off-by: Doug Kwan <dougkwan@google.com>
Signed-off-by: Tom Musta <tommusta@gmail.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'linux-user/ppc/syscall.h')
-rw-r--r-- | linux-user/ppc/syscall.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/ppc/syscall.h b/linux-user/ppc/syscall.h index 6514c637a5..db92bbee17 100644 --- a/linux-user/ppc/syscall.h +++ b/linux-user/ppc/syscall.h @@ -58,8 +58,12 @@ struct target_revectored_struct { */ #if defined(TARGET_PPC64) && !defined(TARGET_ABI32) +#ifdef TARGET_WORDS_BIGENDIAN #define UNAME_MACHINE "ppc64" #else +#define UNAME_MACHINE "ppc64le" +#endif +#else #define UNAME_MACHINE "ppc" #endif #define UNAME_MINIMUM_RELEASE "2.6.32" |