cache should be disabled when pu is disabled

This commit is contained in:
Jaklyy 2024-07-27 15:02:13 -04:00
parent 3c936d84b3
commit 2e421e29e3

View File

@ -266,8 +266,6 @@ void ARMv5::UpdatePURegions(bool update_all)
// PU disabled // PU disabled
u8 mask = 0x07; u8 mask = 0x07;
if (CP15Control & (1<<2)) mask |= 0x30;
if (CP15Control & (1<<12)) mask |= 0x40;
memset(PU_UserMap, mask, 0x100000); memset(PU_UserMap, mask, 0x100000);
memset(PU_PrivMap, mask, 0x100000); memset(PU_PrivMap, mask, 0x100000);