OSDN Git Service

linux-user, m68k: select CPU according to ELF header values
authorLaurent Vivier <laurent@vivier.eu>
Tue, 20 Feb 2018 17:33:06 +0000 (18:33 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 25 Feb 2018 16:29:21 +0000 (17:29 +0100)
commit33dff5ff909c54c6545aa818419caf8802156d55
tree080794b435ac61f4062a5c90a39e1fc64aeba44d
parent768fe76e92477870ab14399dbc6bb8d801621c5c
linux-user, m68k: select CPU according to ELF header values

M680x0 doesn't support the same set of instructions
as ColdFire, so we can't use "any" CPU type to execute
m68020 instructions.
We select CPU type ("m68040" or "any" for ColdFire)
according to the ELF header. If we can't, we
use by default the value used until now: "any".

Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180220173307.25125-4-laurent@vivier.eu>
include/elf.h
linux-user/m68k/target_elf.h