summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorTillmann Karras <tilkax@gmail.com>2015-01-03 11:46:26 +0100
committerTillmann Karras <tilkax@gmail.com>2015-01-12 02:22:05 +0100
commitf98359ef5c4da25d0a6bf2ea09f2a96618e7c768 (patch)
tree34a27f06be9798cf4fc74dc29c2a26b200b6a32d /Source/Core
parent7105e5a8f01120f459300a81841e287fa6bbeec2 (diff)
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.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/Common/MemoryUtil.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/Source/Core/Common/MemoryUtil.cpp b/Source/Core/Common/MemoryUtil.cpp
index fd88726814..87cc7812e0 100644
--- a/Source/Core/Common/MemoryUtil.cpp
+++ b/Source/Core/Common/MemoryUtil.cpp
@@ -21,6 +21,10 @@
#include <sys/mman.h>
#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)
#include <unistd.h>
#define PAGE_MASK (getpagesize() - 1)