2025-04-17 17:59:35 +02:00
|
|
|
/*
|
|
|
|
|
* 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"
|
2025-03-23 12:47:37 +01:00
|
|
|
#include "qemu/target-info-impl.h"
|
2025-11-27 08:37:19 +01:00
|
|
|
#include "hw/core/boards.h"
|
2025-04-17 17:59:35 +02:00
|
|
|
#include "cpu.h"
|
|
|
|
|
|
2025-07-30 15:05:17 -07:00
|
|
|
/* Validate correct placement of CPUArchState. */
|
|
|
|
|
QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) != 0);
|
|
|
|
|
QEMU_BUILD_BUG_ON(offsetof(ArchCPU, env) != sizeof(CPUState));
|
|
|
|
|
|
2025-03-23 12:47:37 +01:00
|
|
|
static const TargetInfo target_info_stub = {
|
|
|
|
|
.target_name = TARGET_NAME,
|
2025-07-08 23:53:14 +02:00
|
|
|
.target_arch = SYS_EMU_TARGET__MAX,
|
2025-03-23 13:20:24 +01:00
|
|
|
.long_bits = TARGET_LONG_BITS,
|
2025-04-29 20:18:03 +02:00
|
|
|
.cpu_type = CPU_RESOLVING_TYPE,
|
2025-03-23 22:46:34 +01:00
|
|
|
.machine_typename = TYPE_MACHINE,
|
2025-07-08 23:53:15 +02:00
|
|
|
.endianness = TARGET_BIG_ENDIAN ? ENDIAN_MODE_BIG : ENDIAN_MODE_LITTLE,
|
2025-03-23 12:47:37 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
|
|
const TargetInfo *target_info(void)
|
|
|
|
|
{
|
|
|
|
|
return &target_info_stub;
|
|
|
|
|
}
|