mirror of
https://github.com/xemu-project/xemu.git
synced 2026-10-21 18:19:16 +02:00
When adding the TargetInfo::@endianness field in commita37aec2e7d, we neglected to include the "qapi-types-common.h" header to get the EndianMode enum definition. Fix that. Fixes:a37aec2e7d("qemu/target-info: Add target_endian_mode()") Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-Id: <20251020220941.65269-10-philmd@linaro.org>
38 lines
954 B
C
38 lines
954 B
C
/*
|
|
* QEMU TargetInfo structure definition
|
|
*
|
|
* Copyright (c) Linaro
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef QEMU_TARGET_INFO_IMPL_H
|
|
#define QEMU_TARGET_INFO_IMPL_H
|
|
|
|
#include "qapi/qapi-types-common.h"
|
|
#include "qapi/qapi-types-machine.h"
|
|
|
|
typedef struct TargetInfo {
|
|
/* runtime equivalent of TARGET_NAME definition */
|
|
const char *target_name;
|
|
/* related to TARGET_ARCH definition */
|
|
SysEmuTarget target_arch;
|
|
/* runtime equivalent of TARGET_LONG_BITS definition */
|
|
unsigned long_bits;
|
|
/* runtime equivalent of CPU_RESOLVING_TYPE definition */
|
|
const char *cpu_type;
|
|
/* QOM typename machines for this binary must implement */
|
|
const char *machine_typename;
|
|
/* related to TARGET_BIG_ENDIAN definition */
|
|
EndianMode endianness;
|
|
} TargetInfo;
|
|
|
|
/**
|
|
* target_info:
|
|
*
|
|
* Returns: The TargetInfo structure definition for this target binary.
|
|
*/
|
|
const TargetInfo *target_info(void);
|
|
|
|
#endif
|