mirror of
https://github.com/mborgerson/xemu.git
synced 2026-03-11 22:24:48 +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>
30 lines
536 B
C
30 lines
536 B
C
/*
|
|
* QEMU target info API (returning QAPI types)
|
|
*
|
|
* Copyright (c) Linaro
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef QEMU_TARGET_INFO_EXTRA_H
|
|
#define QEMU_TARGET_INFO_EXTRA_H
|
|
|
|
#include "qapi/qapi-types-common.h"
|
|
#include "qapi/qapi-types-machine.h"
|
|
|
|
/**
|
|
* target_arch:
|
|
*
|
|
* Returns: QAPI SysEmuTarget enum (e.g. SYS_EMU_TARGET_X86_64).
|
|
*/
|
|
SysEmuTarget target_arch(void);
|
|
|
|
/**
|
|
* target_endian_mode:
|
|
*
|
|
* Returns: QAPI EndianMode enum (e.g. ENDIAN_MODE_LITTLE).
|
|
*/
|
|
EndianMode target_endian_mode(void);
|
|
|
|
#endif
|