mirror of
https://github.com/mborgerson/xemu.git
synced 2026-03-12 12:54:44 +00:00
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20250708215320.70426-6-philmd@linaro.org> Reviewed-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
54 lines
1.1 KiB
C
54 lines
1.1 KiB
C
/*
|
|
* QEMU target info API (returning native types)
|
|
*
|
|
* Copyright (c) Linaro
|
|
*
|
|
* SPDX-License-Identifier: GPL-2.0-or-later
|
|
*/
|
|
|
|
#ifndef QEMU_TARGET_INFO_H
|
|
#define QEMU_TARGET_INFO_H
|
|
|
|
/**
|
|
* target_name:
|
|
*
|
|
* Returns: Canonical target name (i.e. "i386").
|
|
*/
|
|
const char *target_name(void);
|
|
|
|
/**
|
|
* target_long_bits:
|
|
*
|
|
* Returns: number of bits in a long type for this target (i.e. 64).
|
|
*/
|
|
unsigned target_long_bits(void);
|
|
|
|
/**
|
|
* target_machine_typename:
|
|
*
|
|
* Returns: Name of the QOM interface implemented by machines
|
|
* usable on this target binary.
|
|
*/
|
|
const char *target_machine_typename(void);
|
|
|
|
/**
|
|
* target_cpu_type:
|
|
*
|
|
* Returns: target CPU base QOM type name (i.e. TYPE_X86_CPU).
|
|
*/
|
|
const char *target_cpu_type(void);
|
|
|
|
/**
|
|
* target_big_endian:
|
|
*
|
|
* Returns: %true if the (default) endianness of the target is big endian,
|
|
* %false otherwise.
|
|
*
|
|
* Common code should normally never need to know about the endianness of
|
|
* the target, so please do *not* use this function unless you know very
|
|
* well what you are doing!
|
|
*/
|
|
bool target_big_endian(void);
|
|
|
|
#endif
|