mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-03-12 14:46:49 +01:00
Executable memory above 2GB is okay on a 32-bit machine.
Fixes issue 3913. The underlying problem, however, is that PanicAlert GUI popups are broken on 32-bit Linux. I haven't looked into why that is. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@6836 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
343771d392
commit
9ed3862c0a
@ -48,8 +48,10 @@ void* AllocateExecutableMemory(size_t size, bool low)
|
|||||||
|
|
||||||
if (ptr == NULL)
|
if (ptr == NULL)
|
||||||
PanicAlert("Failed to allocate executable memory");
|
PanicAlert("Failed to allocate executable memory");
|
||||||
|
#ifdef _M_X64
|
||||||
if ((u64)ptr >= 0x80000000 && low == true)
|
if ((u64)ptr >= 0x80000000 && low == true)
|
||||||
PanicAlert("Executable memory ended up above 2GB!");
|
PanicAlert("Executable memory ended up above 2GB!");
|
||||||
|
#endif
|
||||||
|
|
||||||
return ptr;
|
return ptr;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user