linux-user: introduce functions to detect CPU type
commit768fe76e92477870ab14399dbc6bb8d801621c5c
authorYunQiang Su <syq@debian.org>
Tue, 20 Feb 2018 17:33:05 +0000 (20 18:33 +0100)
committerLaurent Vivier <laurent@vivier.eu>
Sun, 25 Feb 2018 16:28:49 +0000 (25 17:28 +0100)
treebefe6ca9718d06ae9b1e03256ea43f555a864c01
parent542ca4349878a2ea3818aea5c448a6db567da3ae
linux-user: introduce functions to detect CPU type

Add a function to return ELF e_flags and use it
to select the CPU model.

Signed-off-by: YunQiang Su <syq@debian.org>
[lv: split the patch and some cleanup in get_elf_eflags()]
Signed-off-by: Laurent Vivier <laurent@vivier.eu>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-Id: <20180220173307.25125-3-laurent@vivier.eu>
linux-user/elfload.c
linux-user/main.c
linux-user/qemu.h