mirror of
https://github.com/mborgerson/xemu.git
synced 2026-03-11 15:14:49 +00:00
Move get_elf_platform to i386/elfload.c; pass in CPUState. Create a simple get_elf_platform for x86_64. Introduce HAVE_ELF_PLATFORM. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
22 lines
340 B
C
22 lines
340 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu.h"
|
|
#include "loader.h"
|
|
|
|
|
|
const char *get_elf_cpu_model(uint32_t eflags)
|
|
{
|
|
return "max";
|
|
}
|
|
|
|
abi_ulong get_elf_hwcap(CPUState *cs)
|
|
{
|
|
return cpu_env(cs)->features[FEAT_1_EDX];
|
|
}
|
|
|
|
const char *get_elf_platform(CPUState *cs)
|
|
{
|
|
return "x86_64";
|
|
}
|