summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--osdep.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/osdep.c b/osdep.c
index 8ff260ab98..30a1263f06 100644
--- a/osdep.c
+++ b/osdep.c
@@ -213,7 +213,7 @@ void *qemu_vmalloc(size_t size)
#ifdef _BSD
return valloc(size);
#else
- return memalign(4096, size);
+ return memalign(qemu_getpagesize(), size);
#endif
}