From: Pierrick Bouvier <pierrick.bouvier@linaro.org>
To: Richard Henderson <richard.henderson@linaro.org>, qemu-devel@nongnu.org
Cc: philmd@linaro.org
Subject: Re: [PATCH 02/16] accel/tcg: Compile watchpoint.c once
Date: Fri, 7 Mar 2025 11:12:24 -0800 [thread overview]
Message-ID: <4453772c-bba9-4d9b-a917-135ece56efae@linaro.org> (raw)
In-Reply-To: <20250307185645.970034-4-richard.henderson@linaro.org>
On 3/7/25 10:56, Richard Henderson wrote:
> Move tb_check_watchpoint declaration from tb-internal.h, which is
> still target-specific, to internal-common.h, which isn't.
> Otherwise, all that is required to build watchpoint.c once is
> to include the new exec/cpu-interrupt.h instead of exec/exec-all.h.
>
> Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
> ---
> accel/tcg/internal-common.h | 2 ++
> accel/tcg/tb-internal.h | 2 --
> accel/tcg/watchpoint.c | 5 ++---
> accel/tcg/meson.build | 2 +-
> 4 files changed, 5 insertions(+), 6 deletions(-)
>
> diff --git a/accel/tcg/internal-common.h b/accel/tcg/internal-common.h
> index 7ef620d963..9b6ab3a8cc 100644
> --- a/accel/tcg/internal-common.h
> +++ b/accel/tcg/internal-common.h
> @@ -72,4 +72,6 @@ void tcg_exec_unrealizefn(CPUState *cpu);
> /* current cflags for hashing/comparison */
> uint32_t curr_cflags(CPUState *cpu);
>
> +void tb_check_watchpoint(CPUState *cpu, uintptr_t retaddr);
> +
> #endif
> diff --git a/accel/tcg/tb-internal.h b/accel/tcg/tb-internal.h
> index abd423fcf5..62a59a5307 100644
> --- a/accel/tcg/tb-internal.h
> +++ b/accel/tcg/tb-internal.h
> @@ -75,6 +75,4 @@ void tb_invalidate_phys_range_fast(ram_addr_t ram_addr,
>
> bool tb_invalidate_phys_page_unwind(tb_page_addr_t addr, uintptr_t pc);
>
> -void tb_check_watchpoint(CPUState *cpu, uintptr_t retaddr);
> -
> #endif
> diff --git a/accel/tcg/watchpoint.c b/accel/tcg/watchpoint.c
> index 40112b2b2e..ba8c9859cf 100644
> --- a/accel/tcg/watchpoint.c
> +++ b/accel/tcg/watchpoint.c
> @@ -19,11 +19,10 @@
>
> #include "qemu/osdep.h"
> #include "qemu/main-loop.h"
> -#include "qemu/error-report.h"
> -#include "exec/exec-all.h"
> +#include "exec/breakpoint.h"
> +#include "exec/cpu-interrupt.h"
> #include "exec/page-protection.h"
> #include "exec/translation-block.h"
> -#include "tb-internal.h"
> #include "system/tcg.h"
> #include "system/replay.h"
> #include "accel/tcg/cpu-ops.h"
> diff --git a/accel/tcg/meson.build b/accel/tcg/meson.build
> index 69f4808ac4..979ce90eb0 100644
> --- a/accel/tcg/meson.build
> +++ b/accel/tcg/meson.build
> @@ -20,7 +20,6 @@ specific_ss.add_all(when: 'CONFIG_TCG', if_true: tcg_specific_ss)
>
> specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
> 'cputlb.c',
> - 'watchpoint.c',
> 'tcg-accel-ops.c',
> 'tcg-accel-ops-mttcg.c',
> 'tcg-accel-ops-icount.c',
> @@ -30,4 +29,5 @@ specific_ss.add(when: ['CONFIG_SYSTEM_ONLY', 'CONFIG_TCG'], if_true: files(
> system_ss.add(when: ['CONFIG_TCG'], if_true: files(
> 'icount-common.c',
> 'monitor.c',
> + 'watchpoint.c',
> ))
Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
next prev parent reply other threads:[~2025-03-07 19:12 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-03-07 18:56 [PATCH 00/16] accel/tcg: Compile more files once Richard Henderson
2025-03-07 18:56 ` [PATCH] include/exec: Move TARGET_PAGE_{SIZE, MASK, BITS} to target_page.h Richard Henderson
2025-03-07 19:11 ` Pierrick Bouvier
2025-03-07 18:56 ` [PATCH 01/16] include/exec: Split out exec/cpu-interrupt.h Richard Henderson
2025-03-07 19:11 ` Pierrick Bouvier
2025-03-07 22:03 ` Philippe Mathieu-Daudé
2025-03-07 18:56 ` [PATCH 02/16] accel/tcg: Compile watchpoint.c once Richard Henderson
2025-03-07 19:12 ` Pierrick Bouvier [this message]
2025-03-07 22:02 ` Philippe Mathieu-Daudé
2025-03-07 18:56 ` [PATCH 03/16] exec: Declare tlb_reset_dirty*() in 'exec/cputlb.h' Richard Henderson
2025-03-07 18:56 ` [PATCH 04/16] exec: Declare tlb_set_page_full() " Richard Henderson
2025-03-07 18:56 ` [PATCH 05/16] exec: Declare tlb_set_page_with_attrs() " Richard Henderson
2025-03-07 18:56 ` [PATCH 06/16] exec: Declare tlb_set_page() " Richard Henderson
2025-03-07 18:56 ` [PATCH 07/16] exec: Declare tlb_hit*() " Richard Henderson
2025-03-07 18:56 ` [PATCH 08/16] exec: Declare tlb_flush*() " Richard Henderson
2025-03-07 18:56 ` [PATCH 09/16] system: Build watchpoint.c once Richard Henderson
2025-03-07 19:12 ` Pierrick Bouvier
2025-03-07 21:57 ` Philippe Mathieu-Daudé
2025-03-07 18:56 ` [PATCH 10/16] accel/tcg: Build tcg-accel-ops.c once Richard Henderson
2025-03-07 19:13 ` Pierrick Bouvier
2025-03-07 18:56 ` [PATCH 11/16] accel/tcg: Build tcg-accel-ops-icount.c once Richard Henderson
2025-03-07 19:13 ` Pierrick Bouvier
2025-03-07 18:56 ` [PATCH 12/16] accel/tcg: Build tcg-accel-ops-rr.c once Richard Henderson
2025-03-07 19:13 ` Pierrick Bouvier
2025-03-07 18:56 ` [PATCH 13/16] accel/tcg: Build tcg-accel-ops-mttcg.c once Richard Henderson
2025-03-07 19:13 ` Pierrick Bouvier
2025-03-07 18:56 ` [PATCH 14/16] include/exec: Split out helper-getpc.h Richard Henderson
2025-03-07 19:13 ` Pierrick Bouvier
2025-03-07 22:00 ` Philippe Mathieu-Daudé
2025-03-07 22:23 ` Philippe Mathieu-Daudé
2025-03-07 18:56 ` [PATCH 15/16] accel/tcg: Build tcg-runtime.c once Richard Henderson
2025-03-07 19:13 ` Pierrick Bouvier
2025-03-07 18:56 ` [PATCH 16/16] accel/tcg: Build tcg-runtime-gvec.c once Richard Henderson
2025-03-07 19:14 ` Pierrick Bouvier
2025-03-07 21:55 ` Philippe Mathieu-Daudé
2025-03-07 20:13 ` [PATCH 00/16] accel/tcg: Compile more files once Pierrick Bouvier
2025-03-07 21:42 ` Philippe Mathieu-Daudé
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=4453772c-bba9-4d9b-a917-135ece56efae@linaro.org \
--to=pierrick.bouvier@linaro.org \
--cc=philmd@linaro.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).