]> git.ipfire.org Git - thirdparty/qemu.git/commit
accel/tcg: Remove TARGET_PAGE_DATA_SIZE
authorRichard Henderson <richard.henderson@linaro.org>
Thu, 1 May 2025 03:23:59 +0000 (20:23 -0700)
committerRichard Henderson <richard.henderson@linaro.org>
Mon, 5 May 2025 16:24:10 +0000 (09:24 -0700)
commit964080d3563f1211b70051c8ea5add752586da09
tree4eea31059a8cca1b7cc1cf00e5b103dac734cd2f
parent2c0b261fcd259f0e027633c744d279d255b4ff49
accel/tcg: Remove TARGET_PAGE_DATA_SIZE

This macro is used by only one target, and even then under
unusual conditions -- AArch64 with mmap's PROT_MTE flag.

Since page size for aarch64-linux-user is variable, the
per-page data size is also variable.
Since page_reset_target_data via target_munmap does not
have ready access to CPUState, simply pass in the size
from the first allocation and remember that.

Reviewed-by: Pierrick Bouvier <pierrick.bouvier@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
accel/tcg/user-exec.c
include/user/page-protection.h
target/arm/cpu.h
target/arm/tcg/mte_helper.c