mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:56:38 +00:00
Add two fields that will hold TARGET_PAGE_BITS, TARGET_PAGE_BITS_VARY, TARGET_PAGE_BITS_LEGACY. Signed-off-by: Richard Henderson <richard.henderson@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org> Message-ID: <20260217095106.598486-3-richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
45 lines
1.2 KiB
C
45 lines
1.2 KiB
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;
|
|
/*
|
|
* runtime equivalent of
|
|
* TARGET_PAGE_BITS_VARY ? TARGET_PAGE_BITS_LEGACY : TARGET_PAGE_BITS
|
|
*/
|
|
unsigned page_bits_init;
|
|
/* runtime equivalent of TARGET_PAGE_BITS_VARY definition */
|
|
bool page_bits_vary;
|
|
} TargetInfo;
|
|
|
|
/**
|
|
* target_info:
|
|
*
|
|
* Returns: The TargetInfo structure definition for this target binary.
|
|
*/
|
|
const TargetInfo *target_info(void);
|
|
|
|
#endif
|