From f2b9a6696dbdea5aaafe489027833a09d97c9cf1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A9o=20Lam?= Date: Fri, 16 Mar 2018 21:04:51 +0100 Subject: [PATCH] Config: Set bMMU to true by default on x64 This prevents Dolphin from crashing when the emulated software crashes. AFAIK, there is absolutely no performance to enabling this with the x64 JIT. Eventually, we should probably just remove bMMU (https://github.com/dolphin-emu/dolphin/pull/1831). We can't do that yet because of the ARM JIT. --- Source/Core/Core/ConfigManager.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Source/Core/Core/ConfigManager.cpp b/Source/Core/Core/ConfigManager.cpp index a59dc8a126..cb6ef2c064 100644 --- a/Source/Core/Core/ConfigManager.cpp +++ b/Source/Core/Core/ConfigManager.cpp @@ -557,7 +557,7 @@ void SConfig::LoadCoreSettings(IniFile& ini) core->Get("WiimoteEnableSpeaker", &m_WiimoteEnableSpeaker, false); core->Get("RunCompareServer", &bRunCompareServer, false); core->Get("RunCompareClient", &bRunCompareClient, false); - core->Get("MMU", &bMMU, false); + core->Get("MMU", &bMMU, bMMU); core->Get("BBDumpPort", &iBBDumpPort, -1); core->Get("SyncGPU", &bSyncGPU, false); core->Get("SyncGpuMaxDistance", &iSyncGpuMaxDistance, 200000); @@ -772,7 +772,11 @@ void SConfig::LoadDefaults() bFastmem = true; bFPRF = false; bAccurateNaNs = false; +#ifdef _M_X86_64 + bMMU = true; +#else bMMU = false; +#endif bDCBZOFF = false; bLowDCBZHack = false; iBBDumpPort = -1;