[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v5 0/4] linux-user: select CPU type according ELF he
From: |
Laurent Vivier |
Subject: |
[Qemu-devel] [PATCH v5 0/4] linux-user: select CPU type according ELF header values |
Date: |
Tue, 20 Feb 2018 18:33:03 +0100 |
This idea has been suggested to me before by Philippe
Mathieu-Daudé, and recently YunQiang Su has proposed a
patch to manage the MIPS r6 case.
Based on this, this series tries to clean-up the original
patch, and introduces the use for m68k architecture and
port the patch from YunQiang Su.
v5: Use EF_MIPS_ARCH mask to read MIPS architecture flags
-> removed Richard's R-b because of this change
Some architectures like sparc32plus are
32bit architectures using 64bit processors.
We need to select the CPU according to the
TARGET_ABI ("sparc" path to target_elf.h)
and the TARGET_ARCH ("sparc64").
(Reported by Peter Maydell)
v4: Add YunQiang Su's S-o-b
I don't use cpu type as suggested by Igor because
his latest series "generalize parsing of cpu_model (part 4)" v3
doesn't seem to need this anymore (use of parse_cpu_model())
v3: fix code indent problem reported by patchew
remove useless "!= 0"
check for EF_M68K_M68000
add EF_M68K_* flags in elf.h
set 680x0 default CPU to m68040
change "#if ... #endif" structure for ppc
v2: move cpu_model selection to linux-user/*/target_elf.h
provide eflags to cpu_get_model() instead of fd
(and modify other patches accordingly)
Laurent Vivier (2):
linux-user: Move CPU type name selection to a function
linux-user,m68k: select CPU according to ELF header values
YunQiang Su (2):
linux-user: introduce functions to detect CPU type
linux-user: MIPS set cpu to r6 CPU if binary is R6
include/elf.h | 35 ++++++++++++++++++++++
linux-user/aarch64/target_elf.h | 14 +++++++++
linux-user/alpha/target_elf.h | 14 +++++++++
linux-user/arm/target_elf.h | 14 +++++++++
linux-user/cris/target_elf.h | 14 +++++++++
linux-user/elfload.c | 35 ++++++++++++++++++++++
linux-user/hppa/target_elf.h | 14 +++++++++
linux-user/i386/target_elf.h | 14 +++++++++
linux-user/m68k/target_elf.h | 20 +++++++++++++
linux-user/main.c | 59 +++++++-------------------------------
linux-user/microblaze/target_elf.h | 14 +++++++++
linux-user/mips/target_elf.h | 17 +++++++++++
linux-user/mips64/target_elf.h | 17 +++++++++++
linux-user/nios2/target_elf.h | 14 +++++++++
linux-user/openrisc/target_elf.h | 14 +++++++++
linux-user/ppc/target_elf.h | 18 ++++++++++++
linux-user/qemu.h | 1 +
linux-user/s390x/target_elf.h | 14 +++++++++
linux-user/sh4/target_elf.h | 14 +++++++++
linux-user/sparc/target_elf.h | 18 ++++++++++++
linux-user/sparc64/target_elf.h | 14 +++++++++
linux-user/tilegx/target_elf.h | 14 +++++++++
linux-user/unicore32/target_elf.h | 14 +++++++++
linux-user/x86_64/target_elf.h | 14 +++++++++
24 files changed, 382 insertions(+), 48 deletions(-)
create mode 100644 linux-user/aarch64/target_elf.h
create mode 100644 linux-user/alpha/target_elf.h
create mode 100644 linux-user/arm/target_elf.h
create mode 100644 linux-user/cris/target_elf.h
create mode 100644 linux-user/hppa/target_elf.h
create mode 100644 linux-user/i386/target_elf.h
create mode 100644 linux-user/m68k/target_elf.h
create mode 100644 linux-user/microblaze/target_elf.h
create mode 100644 linux-user/mips/target_elf.h
create mode 100644 linux-user/mips64/target_elf.h
create mode 100644 linux-user/nios2/target_elf.h
create mode 100644 linux-user/openrisc/target_elf.h
create mode 100644 linux-user/ppc/target_elf.h
create mode 100644 linux-user/s390x/target_elf.h
create mode 100644 linux-user/sh4/target_elf.h
create mode 100644 linux-user/sparc/target_elf.h
create mode 100644 linux-user/sparc64/target_elf.h
create mode 100644 linux-user/tilegx/target_elf.h
create mode 100644 linux-user/unicore32/target_elf.h
create mode 100644 linux-user/x86_64/target_elf.h
--
2.14.3
- [Qemu-devel] [PATCH v5 0/4] linux-user: select CPU type according ELF header values,
Laurent Vivier <=