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:
Soren Jorvang 2011-01-12 21:25:33 +00:00
parent 343771d392
commit 9ed3862c0a
1 changed files with 2 additions and 0 deletions

View File

@ -48,8 +48,10 @@ void* AllocateExecutableMemory(size_t size, bool low)
if (ptr == NULL)
PanicAlert("Failed to allocate executable memory");
#ifdef _M_X64
if ((u64)ptr >= 0x80000000 && low == true)
PanicAlert("Executable memory ended up above 2GB!");
#endif
return ptr;
}