Revision a4c075f1 linux-user/elfload.c

b/linux-user/elfload.c
867 867

  
868 868
#endif /* TARGET_ALPHA */
869 869

  
870
#ifdef TARGET_S390X
871

  
872
#define ELF_START_MMAP (0x20000000000ULL)
873

  
874
#define elf_check_arch(x) ( (x) == ELF_ARCH )
875

  
876
#define ELF_CLASS	ELFCLASS64
877
#define ELF_DATA	ELFDATA2MSB
878
#define ELF_ARCH	EM_S390
879

  
880
static inline void init_thread(struct target_pt_regs *regs, struct image_info *infop)
881
{
882
    regs->psw.addr = infop->entry;
883
    regs->psw.mask = PSW_MASK_64 | PSW_MASK_32;
884
    regs->gprs[15] = infop->start_stack;
885
}
886

  
887
#endif /* TARGET_S390X */
888

  
870 889
#ifndef ELF_PLATFORM
871 890
#define ELF_PLATFORM (NULL)
872 891
#endif

Also available in: Unified diff