From: Richard Henderson <richard.henderson@linaro.org>
To: "Anton Johansson" <anjo@rev.ng>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Cc: qemu-devel@nongnu.org, Paolo Bonzini <pbonzini@redhat.com>,
Pierrick Bouvier <pierrick.bouvier@linaro.org>
Subject: Re: [PATCH v3 09/13] accel/tcg: Include 'accel/tcg/getpc.h' in 'exec/helper-proto'
Date: Mon, 28 Apr 2025 13:13:28 -0700 [thread overview]
Message-ID: <75635d14-33b0-4dd9-9a89-2ef06728a0d0@linaro.org> (raw)
In-Reply-To: <ll6avykvfgf7yn27pwe7qvquq7udalqwzfaf6xdxxh7rfmh7q4@kwscgnbg5hb2>
On 4/28/25 11:27, Anton Johansson wrote:
> On 24/04/25, Philippe Mathieu-Daudé wrote:
>> Most files including "exec/helper-proto.h" call GETPC().
>> Include it there (in the common part) instead of the
>> unspecific "exec/exec-all.h" header.
>>
>> Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
>> ---
>> include/exec/exec-all.h | 1 -
>> include/exec/helper-proto-common.h | 2 ++
>> accel/tcg/translate-all.c | 1 +
>> target/avr/helper.c | 1 -
>> 4 files changed, 3 insertions(+), 2 deletions(-)
>>
>> diff --git a/include/exec/exec-all.h b/include/exec/exec-all.h
>> index 4c5ad98c6a9..816274bf905 100644
>> --- a/include/exec/exec-all.h
>> +++ b/include/exec/exec-all.h
>> @@ -26,7 +26,6 @@
>> #include "exec/vaddr.h"
>>
>> #if defined(CONFIG_TCG)
>> -#include "accel/tcg/getpc.h"
>>
>> /**
>> * probe_access:
>> diff --git a/include/exec/helper-proto-common.h b/include/exec/helper-proto-common.h
>> index 16782ef46c8..76e6c25becb 100644
>> --- a/include/exec/helper-proto-common.h
>> +++ b/include/exec/helper-proto-common.h
>> @@ -13,4 +13,6 @@
>> #include "exec/helper-proto.h.inc"
>> #undef HELPER_H
>>
>> +#include "accel/tcg/getpc.h"
>> +
>
> Non-TCG builds will fail since exec/helper-proto.h is sometimes
> included outside CONFIG_TCG (e.g. target/arm/debug_helper.c).
Yes, I've removed that #ifndef in getpc.h on my tcg-next-1 branch.
r~
next prev parent reply other threads:[~2025-04-28 20:13 UTC|newest]
Thread overview: 23+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-24 20:23 [PATCH v3 00/13] include: Remove "exec/exec-all.h" Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 01/13] accel/tcg: Use vaddr for walk_memory_regions callback Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 02/13] accel/tcg: Use vaddr in user/page-protection.h Philippe Mathieu-Daudé
2025-04-28 18:32 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 03/13] accel/tcg: Correct list of included headers in tcg-stub.c Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 04/13] include/exec: Include missing headers in exec-all.h Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 05/13] include/exec: Move tb_invalidate_phys_range to translation-block.h Philippe Mathieu-Daudé
2025-04-28 18:33 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 06/13] accel/tcg: Compile tb-maint.c twice Philippe Mathieu-Daudé
2025-04-28 18:38 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 07/13] target/riscv: Include missing 'accel/tcg/getpc.h' in csr.c Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 08/13] target/hexagon: Include missing 'accel/tcg/getpc.h' Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 09/13] accel/tcg: Include 'accel/tcg/getpc.h' in 'exec/helper-proto' Philippe Mathieu-Daudé
2025-04-28 18:27 ` Anton Johansson via
2025-04-28 20:13 ` Richard Henderson [this message]
2025-04-24 20:24 ` [PATCH v3 10/13] physmem: Move TCG IOTLB methods around Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 11/13] physmem: Restrict TCG IOTLB code to TCG accel Philippe Mathieu-Daudé
2025-04-28 18:51 ` Anton Johansson via
2025-04-28 20:13 ` Richard Henderson
2025-04-28 20:52 ` Anton Johansson via
2025-04-24 20:24 ` [PATCH v3 12/13] accel/tcg: Extract probe API out of 'exec/exec-all.h' Philippe Mathieu-Daudé
2025-04-24 20:24 ` [PATCH v3 13/13] include: Remove 'exec/exec-all.h' Philippe Mathieu-Daudé
2025-04-28 20:12 ` [PATCH v3 00/13] include: Remove "exec/exec-all.h" 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=75635d14-33b0-4dd9-9a89-2ef06728a0d0@linaro.org \
--to=richard.henderson@linaro.org \
--cc=anjo@rev.ng \
--cc=pbonzini@redhat.com \
--cc=philmd@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-devel@nongnu.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).