mmu: avoid crash due to approximative fast mmu matching

Fixes MINIDUMP-EA (Sonic Shuffle)
This commit is contained in:
Flyinghead 2023-04-02 22:06:22 +02:00
parent 252ad711f1
commit f94a08f12f
1 changed files with 7 additions and 1 deletions

View File

@ -467,7 +467,13 @@ retry_ITLB_Match:
if (entry == 4)
{
verify(mmach == false);
#ifndef FAST_MMU
verify(!mmach);
#else
// the matching may be approximative
if (mmach)
return MMU_ERROR_TLB_MISS;
#endif
const TLB_Entry *tlb_entry;
u32 lookup = mmu_full_lookup(va, &tlb_entry, rv);