Only flush write MMU cache on WP flag toggle as read and execute MMU cache is not affected by the flag.

This commit is contained in:
OBattler
2025-03-23 15:36:05 +01:00
parent c5efce619f
commit 609f34cc49
4 changed files with 28 additions and 8 deletions

View File

@@ -225,6 +225,21 @@ flushmmucache(void)
#endif
}
void
flushmmucache_write(void)
{
for (uint16_t c = 0; c < 256; c++) {
if (writelookup[c] != (int) 0xffffffff) {
page_lookup[writelookup[c]] = NULL;
page_lookupp[writelookup[c]] = 4;
writelookup2[writelookup[c]] = LOOKUP_INV;
writelookupp[writelookup[c]] = 4;
writelookup[c] = 0xffffffff;
}
}
mmuflush++;
}
void
flushmmucache_pc(void)
{