mirror of
https://github.com/qemu/qemu.git
synced 2026-02-16 05:44:45 +00:00
Rename from cpu_get_model to emphasize that this is an elf-specific function. Declare the function once in loader.h. This frees up target_elf.h for other uses. Reviewed-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
19 lines
322 B
C
19 lines
322 B
C
/* SPDX-License-Identifier: GPL-2.0-or-later */
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu.h"
|
|
#include "loader.h"
|
|
#include "elf.h"
|
|
|
|
|
|
const char *get_elf_cpu_model(uint32_t eflags)
|
|
{
|
|
if (eflags == 0 || (eflags & EF_M68K_M68000)) {
|
|
/* 680x0 */
|
|
return "m68040";
|
|
}
|
|
|
|
/* Coldfire */
|
|
return "any";
|
|
}
|