MemoryUtil: add comment for Valgrind

Valgrind doesn't support the mmap() flag MAP_32BIT. Adding a simple
CMake option would force a recompile, so just add this comment.
This commit is contained in:
Tillmann Karras 2015-01-03 11:46:26 +01:00
parent 7105e5a8f0
commit f98359ef5c
1 changed files with 4 additions and 0 deletions

View File

@ -21,6 +21,10 @@
#include <sys/mman.h> #include <sys/mman.h>
#endif #endif
// Valgrind doesn't support MAP_32BIT.
// Uncomment the following line to be able to run Dolphin in Valgrind.
//#undef MAP_32BIT
#if !defined(_WIN32) && defined(_M_X86_64) && !defined(MAP_32BIT) #if !defined(_WIN32) && defined(_M_X86_64) && !defined(MAP_32BIT)
#include <unistd.h> #include <unistd.h>
#define PAGE_MASK (getpagesize() - 1) #define PAGE_MASK (getpagesize() - 1)