accel/tcg: Add TCGCPUOps.tlb_fill_align
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 7 Oct 2024 23:34:06 +0000 (16:34 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Sun, 13 Oct 2024 18:27:05 +0000 (11:27 -0700)
commitf168808d7d100ed96c52c4438c4ddb557bd086bf
tree1eed81ae8bd9db16c05b15c0b9b7d9897ed8beb8
parente5b063e81fd2b30aad1e9128238871c71b62a666
accel/tcg: Add TCGCPUOps.tlb_fill_align

Add a new callback to handle softmmu paging.  Return the page
details directly, instead of passing them indirectly to
tlb_set_page.  Handle alignment simultaneously with paging so
that faults are handled with target-specific priority.

Route all calls of the two hooks through a tlb_fill_align
function local to cputlb.c.

As yet no targets implement the new hook.
As yet cputlb.c does not use the new alignment check.

Reviewed-by: Helge Deller <deller@gmx.de>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cputlb.c
include/hw/core/cpu.h
include/hw/core/tcg-cpu-ops.h
include/qemu/typedefs.h