From 1ddb7d3a42796505c45a4f1aebd48f1bc3f19399 Mon Sep 17 00:00:00 2001 From: kanjitalk755 Date: Sat, 16 Dec 2023 10:01:31 +0900 Subject: [PATCH] Fix for 6K Retina --- BasiliskII/src/CrossPlatform/vm_alloc.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/BasiliskII/src/CrossPlatform/vm_alloc.cpp b/BasiliskII/src/CrossPlatform/vm_alloc.cpp index f4977610..ace91785 100755 --- a/BasiliskII/src/CrossPlatform/vm_alloc.cpp +++ b/BasiliskII/src/CrossPlatform/vm_alloc.cpp @@ -37,6 +37,7 @@ #include #include #include +#include #include "vm_alloc.h" #if defined(__APPLE__) && defined(__MACH__) @@ -223,10 +224,11 @@ void vm_exit(void) } static void *reserved_buf; -static const size_t RESERVED_SIZE = 64 * 1024 * 1024; // for 5K Retina +static const size_t RESERVED_SIZE = 80 * 1024 * 1024; // for 6K Retina void *vm_acquire_reserved(size_t size) { - return reserved_buf && size <= RESERVED_SIZE ? reserved_buf : VM_MAP_FAILED; + assert(reserved_buf && size <= RESERVED_SIZE); + return reserved_buf; } int vm_init_reserved(void *hostAddress) {