mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
config/target: Implement per-binary TargetInfo structure (ARM, AARCH64)
Implement the TargetInfo structure for qemu-system-arm and qemu-system-aarch64 binaries. 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-7-philmd@linaro.org>
This commit is contained in:
26
configs/targets/aarch64-softmmu.c
Normal file
26
configs/targets/aarch64-softmmu.c
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* QEMU binary/target API (qemu-system-aarch64)
|
||||
*
|
||||
* Copyright (c) Linaro
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/target-info-impl.h"
|
||||
#include "hw/arm/machines-qom.h"
|
||||
#include "target/arm/cpu-qom.h"
|
||||
|
||||
static const TargetInfo target_info_aarch64_system = {
|
||||
.target_name = "aarch64",
|
||||
.target_arch = SYS_EMU_TARGET_AARCH64,
|
||||
.long_bits = 64,
|
||||
.cpu_type = TYPE_ARM_CPU,
|
||||
.machine_typename = TYPE_TARGET_AARCH64_MACHINE,
|
||||
.endianness = ENDIAN_MODE_LITTLE,
|
||||
};
|
||||
|
||||
const TargetInfo *target_info(void)
|
||||
{
|
||||
return &target_info_aarch64_system;
|
||||
}
|
||||
26
configs/targets/arm-softmmu.c
Normal file
26
configs/targets/arm-softmmu.c
Normal file
@@ -0,0 +1,26 @@
|
||||
/*
|
||||
* QEMU binary/target API (qemu-system-arm)
|
||||
*
|
||||
* Copyright (c) Linaro
|
||||
*
|
||||
* SPDX-License-Identifier: GPL-2.0-or-later
|
||||
*/
|
||||
|
||||
#include "qemu/osdep.h"
|
||||
#include "qemu/target-info-impl.h"
|
||||
#include "hw/arm/machines-qom.h"
|
||||
#include "target/arm/cpu-qom.h"
|
||||
|
||||
static const TargetInfo target_info_arm_system = {
|
||||
.target_name = "arm",
|
||||
.target_arch = SYS_EMU_TARGET_ARM,
|
||||
.long_bits = 32,
|
||||
.cpu_type = TYPE_ARM_CPU,
|
||||
.machine_typename = TYPE_TARGET_ARM_MACHINE,
|
||||
.endianness = ENDIAN_MODE_LITTLE,
|
||||
};
|
||||
|
||||
const TargetInfo *target_info(void)
|
||||
{
|
||||
return &target_info_arm_system;
|
||||
}
|
||||
@@ -1,4 +1,5 @@
|
||||
foreach target : [
|
||||
'arm-softmmu', 'aarch64-softmmu',
|
||||
]
|
||||
config_target_info += {target : files(target + '.c')}
|
||||
endforeach
|
||||
|
||||
Reference in New Issue
Block a user