linux-user: Remove qemu_host_page_size from elf_core_dump
authorRichard Henderson <richard.henderson@linaro.org>
Tue, 27 Feb 2024 18:55:57 +0000 (08:55 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Thu, 29 Feb 2024 21:35:36 +0000 (11:35 -1000)
Used only once in wmr_page_unprotect_regions.

Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
linux-user/elfload.c

index d2919a411ded6f428e6e958727b99b1794660d05..cc2013c7b4f0342d40bf948fe6da713e4bc3843b 100644 (file)
@@ -4292,7 +4292,7 @@ static int wmr_page_unprotect_regions(void *opaque, target_ulong start,
                                       target_ulong end, unsigned long flags)
 {
     if ((flags & (PAGE_WRITE | PAGE_WRITE_ORG)) == PAGE_WRITE_ORG) {
-        size_t step = MAX(TARGET_PAGE_SIZE, qemu_host_page_size);
+        size_t step = MAX(TARGET_PAGE_SIZE, qemu_real_host_page_size());
 
         while (1) {
             page_unprotect(start, 0);