mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2024-12-24 01:25:40 +00:00
b54cfecf1e
SPARC Linux has an oddity that it insists that mmap() of MAP_FIXED memory must be at an alignment defined by SHMLBA, which is more aligned than the page size (typically, SHMLBA alignment is to 16K, and pages are 8K). This is a relic of ancient hardware that had cache aliasing constraints, but even on modern hardware the kernel still insists on the alignment. To ensure that we get mmap() alignment sufficient to make the kernel happy, change QEMU_VMALLOC_ALIGN, qemu_fd_getpagesize() and qemu_mempath_getpagesize() to use the maximum of getpagesize() and SHMLBA. In particular, this allows 'make check' to pass on Sparc: we were previously failing the ivshmem tests. Backports commit 57d1f6d7ce23e79a8ebe4a57bd2363b269b4664b from qemu |
||
---|---|---|
.. | ||
bitmap.c | ||
bitops.c | ||
cacheinfo.c | ||
crc32c.c | ||
cutils.c | ||
error.c | ||
getauxval.c | ||
host-utils.c | ||
log.c | ||
Makefile.objs | ||
mmap-alloc.c | ||
module.c | ||
oslib-posix.c | ||
oslib-win32.c | ||
qemu-error.c | ||
qemu-thread-posix.c | ||
qemu-thread-win32.c | ||
qemu-timer-common.c | ||
range.c |