From d18ab50520ee667b4fb56a7a75304bdd19c554fe Mon Sep 17 00:00:00 2001 From: Sonicadvance1 Date: Fri, 5 Mar 2010 09:23:28 +0000 Subject: Add a universal option to the osx flag, does not work yet since scons strips out the -arch flag that it thinks is a duplicate, add to linker flags since cross compiling on OSX was failing since it was trying to link everything as the wrong arch. Re-Enable the loadstores in 32bit Dolphin in OSX, due to the reason described in the comments (Fast 32bit OSX!). Add an alert if the memory space ends up above 32bit in *nix sides, since it will ALWAYS be above in 64bit OSX, Will try to fix. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@5155 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Common/Src/MemoryUtil.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Source/Core/Common/Src/MemoryUtil.cpp') diff --git a/Source/Core/Common/Src/MemoryUtil.cpp b/Source/Core/Common/Src/MemoryUtil.cpp index a6c89615ab..5ccf5729d5 100644 --- a/Source/Core/Common/Src/MemoryUtil.cpp +++ b/Source/Core/Common/Src/MemoryUtil.cpp @@ -62,6 +62,13 @@ void* AllocateExecutableMemory(size_t size, bool low) , -1, 0); // | MAP_FIXED // printf("Mapped executable memory at %p (size %i)\n", retval, size); + if ((u64)ptr >= 0x80000000) + { + // Should only happen in 64bit OSX + // Just a reminder, to show a OSX user that it may fail + PanicAlert("Executable memory ended up above 2GB!"); + } + if (!retval) { PanicAlert("Failed to allocate executable memory, errno=%i", errno); -- cgit v1.2.3