mirror of
https://gitlab.com/qemu-project/qemu
synced 2025-04-29 09:22:36 +08:00

Have target_name() be a target-agnostic method, dispatching to a per-target TargetInfo singleton structure. By default a stub singleton is used. No logical change expected. Inspired-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250424222112.36194-3-philmd@linaro.org>
27 lines
456 B
C
27 lines
456 B
C
/*
|
|
* QEMU target info stubs (target specific)
|
|
*
|
|
* Copyright (c) Linaro
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu/target-info.h"
|
|
#include "qemu/target-info-impl.h"
|
|
#include "cpu.h"
|
|
|
|
static const TargetInfo target_info_stub = {
|
|
.target_name = TARGET_NAME,
|
|
};
|
|
|
|
const TargetInfo *target_info(void)
|
|
{
|
|
return &target_info_stub;
|
|
}
|
|
|
|
const char *target_cpu_type(void)
|
|
{
|
|
return CPU_RESOLVING_TYPE;
|
|
}
|