From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: Pierrick Bouvier <pierrick.bouvier@linaro.org>, qemu-devel@nongnu.org
Cc: "Peter Maydell" <peter.maydell@linaro.org>,
"Richard Henderson" <richard.henderson@linaro.org>,
qemu-arm@nongnu.org, "Paolo Bonzini" <pbonzini@redhat.com>,
kvm@vger.kernel.org, "Alex Bennée" <alex.bennee@linaro.org>
Subject: Re: [PATCH v3 03/29] include/exec/cpu-all: move compile time check for CPUArchState to cpu-target.c
Date: Wed, 2 Apr 2025 05:31:28 +0200 [thread overview]
Message-ID: <e11f5f2e-0838-4f28-88c1-a7241504d28a@linaro.org> (raw)
In-Reply-To: <20250325045915.994760-4-pierrick.bouvier@linaro.org>
On 25/3/25 05:58, Pierrick Bouvier wrote:
> Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
> ---
> include/exec/cpu-all.h | 4 ----
> cpu-target.c | 4 ++++
> 2 files changed, 4 insertions(+), 4 deletions(-)
>
> diff --git a/include/exec/cpu-all.h b/include/exec/cpu-all.h
> index 74017a5ce7c..b1067259e6b 100644
> --- a/include/exec/cpu-all.h
> +++ b/include/exec/cpu-all.h
> @@ -34,8 +34,4 @@
>
> #include "cpu.h"
This include ^^^^^^ ...
>
> -/* Validate correct placement of CPUArchState. */
> -QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) != 0);
> -QEMU_BUILD_BUG_ON(offsetof(ArchCPU, env) != sizeof(CPUState));
> -
> #endif /* CPU_ALL_H */
> diff --git a/cpu-target.c b/cpu-target.c
> index 519b0f89005..587f24b34e5 100644
> --- a/cpu-target.c
> +++ b/cpu-target.c
> @@ -29,6 +29,10 @@
> #include "accel/accel-cpu-target.h"
> #include "trace/trace-root.h"
... is also needed here, otherwise we get:
../../cpu-target.c:30:19: error: offsetof of incomplete type 'ArchCPU'
(aka 'struct ArchCPU')
30 | QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) != 0);
| ^
>
> +/* Validate correct placement of CPUArchState. */>
+QEMU_BUILD_BUG_ON(offsetof(ArchCPU, parent_obj) != 0);
> +QEMU_BUILD_BUG_ON(offsetof(ArchCPU, env) != sizeof(CPUState));
> +
> char *cpu_model_from_type(const char *typename)
> {
> const char *suffix = "-" CPU_RESOLVING_TYPE;
With "cpu.h" include:
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Tested-by: Philippe Mathieu-Daudé <philmd@linaro.org>
next prev parent reply other threads:[~2025-04-02 3:32 UTC|newest]
Thread overview: 36+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-25 4:58 [PATCH v3 00/29] single-binary: start make hw/arm/ common Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 01/29] exec/cpu-all: extract tlb flags defines to exec/tlb-flags.h Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 02/29] exec/cpu-all: move cpu_copy to linux-user/qemu.h Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 03/29] include/exec/cpu-all: move compile time check for CPUArchState to cpu-target.c Pierrick Bouvier
2025-04-02 3:31 ` Philippe Mathieu-Daudé [this message]
2025-04-02 15:25 ` Pierrick Bouvier
2025-04-02 20:06 ` Richard Henderson
2025-04-03 16:18 ` Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 04/29] exec/cpu-all: remove system/memory include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 05/29] exec/cpu-all: remove exec/page-protection include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 06/29] exec/cpu-all: remove tswap include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 07/29] exec/cpu-all: remove exec/cpu-interrupt include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 08/29] exec/cpu-all: remove exec/cpu-defs include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 09/29] exec/cpu-all: remove exec/target_page include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 10/29] exec/cpu-all: remove hw/core/cpu.h include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 11/29] accel/tcg: fix missing includes for TCG_GUEST_DEFAULT_MO Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 12/29] accel/tcg: fix missing includes for TARGET_HAS_PRECISE_SMC Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 13/29] exec/cpu-all: remove cpu include Pierrick Bouvier
2025-03-25 4:58 ` [PATCH v3 14/29] exec/cpu-all: transfer exec/cpu-common include to cpu.h headers Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 15/29] exec/cpu-all: remove this header Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 16/29] exec/target_page: runtime defintion for TARGET_PAGE_BITS_MIN Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 17/29] accel/kvm: move KVM_HAVE_MCE_INJECTION define to kvm-all.c Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 18/29] exec/poison: KVM_HAVE_MCE_INJECTION can now be poisoned Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 19/29] target/arm/cpu: always define kvm related registers Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 20/29] target/arm/cpu: flags2 is always uint64_t Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 21/29] target/arm/cpu: define same set of registers for aarch32 and aarch64 Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 22/29] target/arm/cpu: remove inline stubs for aarch32 emulation Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 23/29] meson: add common hw files Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 24/29] hw/arm/boot: make compilation unit hw common Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 25/29] hw/arm/armv7m: prepare compilation unit to be common Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 26/29] hw/arm/digic_boards: " Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 27/29] hw/arm/xlnx-zynqmp: " Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 28/29] hw/arm/xlnx-versal: " Pierrick Bouvier
2025-03-25 4:59 ` [PATCH v3 29/29] hw/arm: make most of the compilation units common Pierrick Bouvier
2025-03-25 5:02 ` [PATCH v3 00/29] single-binary: start make hw/arm/ common Pierrick Bouvier
2025-03-31 22:38 ` Richard Henderson
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=e11f5f2e-0838-4f28-88c1-a7241504d28a@linaro.org \
--to=philmd@linaro.org \
--cc=alex.bennee@linaro.org \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-arm@nongnu.org \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).