mirror of
https://github.com/izzy2lost/xemu.git
synced 2026-07-06 00:20:22 -07:00
linux-user: Move elf parameters to riscv/target_elf.h
Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
This commit is contained in:
@@ -130,20 +130,6 @@ typedef abi_uint target_gid_t;
|
||||
#endif
|
||||
typedef abi_int target_pid_t;
|
||||
|
||||
#ifdef TARGET_RISCV
|
||||
|
||||
#define ELF_ARCH EM_RISCV
|
||||
|
||||
#ifdef TARGET_RISCV32
|
||||
#define ELF_CLASS ELFCLASS32
|
||||
#define VDSO_HEADER "vdso-32.c.inc"
|
||||
#else
|
||||
#define ELF_CLASS ELFCLASS64
|
||||
#define VDSO_HEADER "vdso-64.c.inc"
|
||||
#endif
|
||||
|
||||
#endif /* TARGET_RISCV */
|
||||
|
||||
#ifdef TARGET_HPPA
|
||||
|
||||
#define ELF_CLASS ELFCLASS32
|
||||
|
||||
@@ -8,6 +8,16 @@
|
||||
#ifndef RISCV_TARGET_ELF_H
|
||||
#define RISCV_TARGET_ELF_H
|
||||
|
||||
#define ELF_ARCH EM_RISCV
|
||||
|
||||
#ifdef TARGET_RISCV32
|
||||
#define ELF_CLASS ELFCLASS32
|
||||
#define VDSO_HEADER "vdso-32.c.inc"
|
||||
#else
|
||||
#define ELF_CLASS ELFCLASS64
|
||||
#define VDSO_HEADER "vdso-64.c.inc"
|
||||
#endif
|
||||
|
||||
#define HAVE_ELF_HWCAP 1
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user