mirror of
https://github.com/qemu/qemu.git
synced 2025-07-31 01:18:30 +00:00

target_endian_mode() returns the default endianness (QAPI type) of a target. 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: <20250708215320.70426-5-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
28 lines
634 B
C
28 lines
634 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 "hw/boards.h"
|
|
#include "cpu.h"
|
|
|
|
static const TargetInfo target_info_stub = {
|
|
.target_name = TARGET_NAME,
|
|
.target_arch = SYS_EMU_TARGET__MAX,
|
|
.long_bits = TARGET_LONG_BITS,
|
|
.cpu_type = CPU_RESOLVING_TYPE,
|
|
.machine_typename = TYPE_MACHINE,
|
|
.endianness = TARGET_BIG_ENDIAN ? ENDIAN_MODE_BIG : ENDIAN_MODE_LITTLE,
|
|
};
|
|
|
|
const TargetInfo *target_info(void)
|
|
{
|
|
return &target_info_stub;
|
|
}
|