Browse Source
16k page size for apple
Signed-off-by: lizzie <lizzie@eden-emu.dev>
liz-dynarmic-macos-fbsd-port
lizzie
3 months ago
committed by
Caio Oliveira
No known key found for this signature in database
GPG Key ID: 362DA3DC1901E080
1 changed files with
4 additions and
3 deletions
-
src/common/host_memory.cpp
|
|
|
@ -548,9 +548,10 @@ class HostMemory::Impl { |
|
|
|
public: |
|
|
|
explicit Impl(size_t backing_size_, size_t virtual_size_) |
|
|
|
: backing_size{backing_size_}, virtual_size{virtual_size_} { |
|
|
|
long page_size = sysconf(_SC_PAGESIZE); |
|
|
|
ASSERT_MSG(page_size == 0x1000, "page size {:#x} is incompatible with 4K paging", |
|
|
|
page_size); |
|
|
|
// TODO: Solve all 4k paging issues
|
|
|
|
//long page_size = sysconf(_SC_PAGESIZE);
|
|
|
|
//ASSERT_MSG(page_size == 0x1000, "page size {:#x} is incompatible with 4K paging",
|
|
|
|
// page_size);
|
|
|
|
// Backing memory initialization
|
|
|
|
#if defined(__sun__) || defined(__HAIKU__) || defined(__NetBSD__) || defined(__DragonFly__)
|
|
|
|
fd = shm_open_anon(O_RDWR | O_CREAT | O_EXCL | O_NOFOLLOW, 0600); |
|
|
|
|