mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
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>
This commit is contained in:
committed by
Alexander Graf
parent
a721d390b3
commit
d90b94cd78
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user