Disable the fake vmem hack on 32bit targets.

This hack is incompatible with these targets due to how much memory space we allocate.
This commit is contained in:
Ryan Houdek 2014-10-21 12:56:28 +00:00
parent 080883ad9e
commit a22fcf152d
1 changed files with 4 additions and 0 deletions

View File

@ -143,7 +143,11 @@ void Init()
{ {
bool wii = SConfig::GetInstance().m_LocalCoreStartupParameter.bWii; bool wii = SConfig::GetInstance().m_LocalCoreStartupParameter.bWii;
bMMU = SConfig::GetInstance().m_LocalCoreStartupParameter.bMMU; bMMU = SConfig::GetInstance().m_LocalCoreStartupParameter.bMMU;
#ifndef _ARCH_32
// The fake VMEM hack's address space is above the memory space that we allocate on 32bit targets
// Disable it entirely on 32bit targets.
bFakeVMEM = !bMMU; bFakeVMEM = !bMMU;
#endif
u32 flags = 0; u32 flags = 0;
if (wii) flags |= MV_WII_ONLY; if (wii) flags |= MV_WII_ONLY;