minor cleanup in vm
This commit is contained in:
parent
12126fb571
commit
a6bd398ece
1 changed files with 1 additions and 6 deletions
|
@ -202,7 +202,7 @@ static void *uae_vm_alloc_with_flags(uae_u32 size, int flags, int protect)
|
|||
int native_protect = protect_to_native(protect);
|
||||
#endif
|
||||
|
||||
#ifndef CPU_64_BIT
|
||||
#ifndef CPU_AARCH64
|
||||
flags &= ~UAE_VM_32BIT;
|
||||
#endif
|
||||
if (flags & UAE_VM_32BIT) {
|
||||
|
@ -357,11 +357,6 @@ static void *try_reserve(uintptr_t try_addr, uae_u32 size, int flags)
|
|||
|
||||
void *uae_vm_reserve(uae_u32 size, int flags)
|
||||
{
|
||||
#if 0
|
||||
if (size > 768 * 1024 * 1024) {
|
||||
return NULL;
|
||||
}
|
||||
#endif
|
||||
void *address = NULL;
|
||||
#ifdef _WIN32
|
||||
address = try_reserve(0x80000000, size, flags);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue