mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06: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:
parent
a721d390b3
commit
d90b94cd78
3 changed files with 24 additions and 2 deletions
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue