On 5/1/25 7:55 AM, Richard Henderson wrote:
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.

Signed-off-by: Richard Henderson <richard.hender...@linaro.org>
---
  include/user/page-protection.h |  8 +++++---
  target/arm/cpu.h               |  4 ----
  accel/tcg/user-exec.c          | 26 ++++++++++++++++----------
  target/arm/tcg/mte_helper.c    |  4 ++--
  4 files changed, 23 insertions(+), 19 deletions(-)

Reviewed-by: Pierrick Bouvier <pierrick.bouv...@linaro.org>


Reply via email to