]> git.proxmox.com Git - mirror_qemu.git/blobdiff - include/exec/ram_addr.h
core: replace getpagesize() with qemu_real_host_page_size
[mirror_qemu.git] / include / exec / ram_addr.h
index ad158bb2474417d133b179433c8007afd0e597a6..bed0554f4d2a5a1d6b77552a6febf5f3b714f1f1 100644 (file)
@@ -373,7 +373,7 @@ static inline void cpu_physical_memory_set_dirty_lebitmap(unsigned long *bitmap,
     hwaddr addr;
     ram_addr_t ram_addr;
     unsigned long len = (pages + HOST_LONG_BITS - 1) / HOST_LONG_BITS;
-    unsigned long hpratio = getpagesize() / TARGET_PAGE_SIZE;
+    unsigned long hpratio = qemu_real_host_page_size / TARGET_PAGE_SIZE;
     unsigned long page = BIT_WORD(start >> TARGET_PAGE_BITS);
 
     /* start address is aligned at the start of a word? */