mirror of
https://github.com/yuzu-emu/unicorn.git
synced 2025-05-24 02:12:15 +00:00
Anonymous and file-backed RAM allocation are now almost exactly the same. Reduce code duplication by moving RAM mmap code out of oslib-posix.c and exec.c. Backports commit 794e8f301a17953efa78ab7538019ec43c59e82a from qemu
11 lines
199 B
C
11 lines
199 B
C
#ifndef QEMU_MMAP_ALLOC
|
|
#define QEMU_MMAP_ALLOC
|
|
|
|
#include "qemu-common.h"
|
|
|
|
void *qemu_ram_mmap(int fd, size_t size, size_t align, bool shared);
|
|
|
|
void qemu_ram_munmap(void *ptr, size_t size);
|
|
|
|
#endif
|