mmu: don't crash when table full, just ignore

Fixes MINIDUMP-NF
This commit is contained in:
Flyinghead 2023-03-25 11:45:03 +01:00
parent 47a33f97f9
commit 5e4e48fffe
1 changed files with 2 additions and 1 deletions

View File

@ -57,7 +57,8 @@ static void cache_entry(const TLB_Entry &entry)
{
if (entry.Data.SZ0 == 0 && entry.Data.SZ1 == 0)
return;
verify(full_table_size < ARRAY_SIZE(full_table));
if (full_table_size >= ARRAY_SIZE(full_table))
return;
full_table[full_table_size].entry = entry;