mirror of
https://github.com/qemu/qemu.git
synced 2026-01-14 03:01:08 +00:00
Define the TYPE_TARGET_ARM_MACHINE and TYPE_TARGET_AARCH64_MACHINE QOM interface names to allow machines to implement them. Register these interfaces in common code in target_info-qom.c used by all binaries because QOM interfaces must be registered before being checked (see next commit with the 'none' machine). 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> Acked-by: Peter Maydell <peter.maydell@linaro.org> Message-Id: <20251021205741.57109-2-philmd@linaro.org>
25 lines
502 B
C
25 lines
502 B
C
/*
|
|
* QEMU binary/target API (QOM types)
|
|
*
|
|
* Copyright (c) Linaro
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qom/object.h"
|
|
#include "hw/arm/machines-qom.h"
|
|
|
|
static const TypeInfo target_info_types[] = {
|
|
{
|
|
.name = TYPE_TARGET_ARM_MACHINE,
|
|
.parent = TYPE_INTERFACE,
|
|
},
|
|
{
|
|
.name = TYPE_TARGET_AARCH64_MACHINE,
|
|
.parent = TYPE_INTERFACE,
|
|
},
|
|
};
|
|
|
|
DEFINE_TYPES(target_info_types)
|