accel/tcg: Do not align tb->page_addr[0]
commit93b996161b54860ded173f54ed96257717bb9728
authorRichard Henderson <richard.henderson@linaro.org>
Mon, 15 Aug 2022 20:00:57 +0000 (15 15:00 -0500)
committerRichard Henderson <richard.henderson@linaro.org>
Tue, 4 Oct 2022 19:13:04 +0000 (4 12:13 -0700)
treed4557fe8738dd29451cd39c5b2c1de25c9e46d2d
parentb21af662c15522b83a973bc2ffd51d0117c0e039
accel/tcg: Do not align tb->page_addr[0]

Let tb->page_addr[0] contain the address of the first byte of the
translated block, rather than the address of the page containing the
start of the translated block.  We need to recover this value anyway
at various points, and it is easier to discard a page offset when it
is not needed, which happens naturally via the existing find_page shift.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/cpu-exec.c
accel/tcg/cputlb.c
accel/tcg/translate-all.c