[PATCH-for-10.1] accel/tcg: Extract range_within_page() helper

2025-04-05 Thread Philippe Mathieu-Daudé
To ease code review, factor range_within_page() out. Signed-off-by: Philippe Mathieu-Daudé --- accel/tcg/cputlb.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/accel/tcg/cputlb.c b/accel/tcg/cputlb.c index b6713efdb81..91d185021a4 100644 --- a/accel/tcg/cputlb.c ++

Re: [PATCH-for-10.1] accel/tcg: Extract range_within_page() helper

2025-03-24 Thread Richard Henderson
On 3/23/25 15:53, Philippe Mathieu-Daudé wrote: @@ -772,7 +777,7 @@ void tlb_flush_range_by_mmuidx(CPUState *cpu, vaddr addr, * If all bits are significant, and len is small, * this devolves to tlb_flush_page. */ -if (bits >= TARGET_LONG_BITS && len <= TARGET_PAGE_SIZE) {