TLB clears fixed for real for real

man.
This commit is contained in:
Fazana committed 2021-08-23 18:38:43 +01:00
1 parent 43fae23555
commit 710256e9f1
2 files changed
+11 -6

No files matched your search

+7 -3
View File
@@ -325,9 +325,13 @@ void unmap_tlbs(void)
{
if (gTlbSegments[i] && i != 0x17 && i != 0x16 && i != 0x13)
{
osUnmapTLB(gTlbEntries);
gTlbSegments[i] = 0;
gTlbEntries--;
while (gTlbSegments[i] > 0)
{
osUnmapTLB(gTlbEntries);
gTlbSegments[i]--;
gTlbEntries--;
}
}
}