aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorRichard Henderson <richard.henderson@linaro.org>2024-02-27 08:55:57 -1000
committerRichard Henderson <richard.henderson@linaro.org>2024-02-29 11:35:36 -1000
commit2c796d230e0bb82134d034020026bc8b711adfe0 (patch)
tree0fa60d9fe28e520c8ae4072514a65fa4191bb25a /linux-user
parent2cd71515c4bef41c6348d87dfd3a709d3905ba77 (diff)
downloadqemu-2c796d230e0bb82134d034020026bc8b711adfe0.zip
qemu-2c796d230e0bb82134d034020026bc8b711adfe0.tar.gz
qemu-2c796d230e0bb82134d034020026bc8b711adfe0.tar.bz2
linux-user: Remove qemu_host_page_size from elf_core_dump
Used only once in wmr_page_unprotect_regions. Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user')
-rw-r--r--linux-user/elfload.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/elfload.c b/linux-user/elfload.c
index d2919a4..cc2013c 100644
--- a/linux-user/elfload.c
+++ b/linux-user/elfload.c
@@ -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);