mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 15:23:53 -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
|
@ -561,6 +561,11 @@ typedef struct {
|
|||
#define SHF_ALPHA_GPREL 0x10000000
|
||||
|
||||
|
||||
/* PowerPC specific definitions. */
|
||||
|
||||
/* Processor specific flags for the ELF header e_flags field. */
|
||||
#define EF_PPC64_ABI 0x3
|
||||
|
||||
/* PowerPC relocations defined by the ABIs */
|
||||
#define R_PPC_NONE 0
|
||||
#define R_PPC_ADDR32 1 /* 32bit absolute address */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue