From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: pierrick.bouvier@oss.qualcomm.com
Subject: Re: [PATCH 3/5] target-info: Merge target-info-impl.h into target-info.h
Date: Tue, 12 May 2026 05:20:43 +0200 [thread overview]
Message-ID: <259bfc18-98f3-4cc7-9f9d-a060291d39b2@linaro.org> (raw)
In-Reply-To: <20260511190634.472174-4-richard.henderson@linaro.org>
Hi,
On 11/5/26 21:06, Richard Henderson wrote:
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> include/qemu/target-info-impl.h | 43 -------------------------------
> include/qemu/target-info-qom.h | 2 +-
> include/qemu/target-info.h | 31 ++++++++++++++++++++++
> configs/targets/aarch64-softmmu.c | 2 +-
> configs/targets/arm-softmmu.c | 2 +-
> page-vary-common.c | 2 +-
> page-vary-system.c | 2 +-
> target-info-qom.c | 2 +-
> target-info-stub.c | 1 -
> target-info.c | 1 -
> 10 files changed, 37 insertions(+), 51 deletions(-)
> delete mode 100644 include/qemu/target-info-impl.h
> diff --git a/include/qemu/target-info.h b/include/qemu/target-info.h
> index 23c997de54..c9f7f2aa26 100644
> --- a/include/qemu/target-info.h
> +++ b/include/qemu/target-info.h
> @@ -9,6 +9,37 @@
> #ifndef QEMU_TARGET_INFO_H
> #define QEMU_TARGET_INFO_H
>
> +#include "qapi/qapi-types-common.h"
> +#include "qapi/qapi-types-machine.h"
Per commit 0af00042a92 ("qemu/target-info: Factor target_arch() out"):
Keeping native types in "qemu/target-info.h" is necessary
to keep building tests such tests/tcg/plugins/mem.c, as
per the comment added in commit ecbcc9ead2f ("tests/tcg:
add a system test to check memory instrumentation"):
/*
* plugins should not include anything from QEMU aside from the
* API header. However as this is a test plugin to exercise the
* internals of QEMU and we want to avoid needless code duplication
* we do so here. bswap.h is pretty self-contained although it needs
* a few things provided by compiler.h.
*/
Is that no longuer necessary?
> +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;
next prev parent reply other threads:[~2026-05-12 3:21 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-11 19:06 [PATCH 0/5] target_info optimizations Richard Henderson
2026-05-11 19:06 ` [PATCH 1/5] meson: Build target-info-qom.c with -fno-lto Richard Henderson
2026-05-11 19:38 ` Pierrick Bouvier
2026-05-11 20:08 ` Richard Henderson
2026-05-11 19:06 ` [PATCH 2/5] target-info: Expose target_info as const data Richard Henderson
2026-05-12 2:22 ` Pierrick Bouvier
2026-05-11 19:06 ` [PATCH 3/5] target-info: Merge target-info-impl.h into target-info.h Richard Henderson
2026-05-12 2:25 ` Pierrick Bouvier
2026-05-12 3:20 ` Philippe Mathieu-Daudé [this message]
2026-05-11 19:06 ` [PATCH 4/5] target-info: Merge target-info-qapi.h " Richard Henderson
2026-05-12 2:25 ` Pierrick Bouvier
2026-05-11 19:06 ` [PATCH 5/5] target-info: Inline accessors Richard Henderson
2026-05-12 2:26 ` Pierrick Bouvier
2026-05-12 2:14 ` [PATCH 0/5] target_info optimizations Pierrick Bouvier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=259bfc18-98f3-4cc7-9f9d-a060291d39b2@linaro.org \
--to=philmd@linaro.org \
--cc=pierrick.bouvier@oss.qualcomm.com \
--cc=qemu-devel@nongnu.org \
--cc=richard.henderson@linaro.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.