mirror of
https://github.com/melonDS-emu/melonDS.git
synced 2024-11-14 13:27:41 -07:00
cache should be disabled when pu is disabled
This commit is contained in:
parent
3c936d84b3
commit
2e421e29e3
@ -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);
|
||||||
|
Loading…
Reference in New Issue
Block a user