mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
s390x: s390x-linux-user support
This patch adds support for running s390x binaries in the linux-user emulation code. Signed-off-by: Ulrich Hecht <uli@suse.de> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
7a86d29a7e
commit
a4c075f178
10 changed files with 1184 additions and 7 deletions
|
@ -867,6 +867,25 @@ static inline void init_thread(struct target_pt_regs *regs,
|
|||
|
||||
#endif /* TARGET_ALPHA */
|
||||
|
||||
#ifdef TARGET_S390X
|
||||
|
||||
#define ELF_START_MMAP (0x20000000000ULL)
|
||||
|
||||
#define elf_check_arch(x) ( (x) == ELF_ARCH )
|
||||
|
||||
#define ELF_CLASS ELFCLASS64
|
||||
#define ELF_DATA ELFDATA2MSB
|
||||
#define ELF_ARCH EM_S390
|
||||
|
||||
static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
|
||||
{
|
||||
regs->psw.addr = infop->entry;
|
||||
regs->psw.mask = PSW_MASK_64 | PSW_MASK_32;
|
||||
regs->gprs[15] = infop->start_stack;
|
||||
}
|
||||
|
||||
#endif /* TARGET_S390X */
|
||||
|
||||
#ifndef ELF_PLATFORM
|
||||
#define ELF_PLATFORM (NULL)
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue