do not fail on write invalid non memory address (failure should be for a tlb miss, not unhandled register

This commit is contained in:
zilmar 2012-10-04 10:07:26 +10:00
parent ff564bc11a
commit 236f2a1ddb
1 changed files with 2 additions and 1 deletions

View File

@ -254,7 +254,8 @@ BOOL CMipsMemoryVM::SW_VAddr ( DWORD VAddr, DWORD Value )
if (VAddr < 0xA4000000 || VAddr >= 0xA4002000) if (VAddr < 0xA4000000 || VAddr >= 0xA4002000)
{ {
VAddr &= 0x1FFFFFFF; VAddr &= 0x1FFFFFFF;
return SW_NonMemory(VAddr,Value); SW_NonMemory(VAddr,Value);
return true;
} }
} }
if (m_TLB_WriteMap[VAddr >> 12] == 0) { return FALSE; } if (m_TLB_WriteMap[VAddr >> 12] == 0) { return FALSE; }