MMU: small simplification of TLB structure

We only need one "recent" per set, not NUM_WAYS recents. Slightly faster.
Breaks savestate compatibility.
This commit is contained in:
Fiora
2015-01-01 14:35:17 -08:00
parent a0e5c76a1f
commit dde8b24d00
4 changed files with 38 additions and 53 deletions

View File

@ -125,12 +125,12 @@ void Init(int cpu_core)
{
for (int set = 0; set < 64; set++)
{
ppcState.tlb[tlb][set].recent = 0;
for (int way = 0; way < 2; way++)
{
ppcState.tlb[tlb][set][way].flags = TLB_FLAG_INVALID;
ppcState.tlb[tlb][set][way].paddr = 0;
ppcState.tlb[tlb][set][way].pte = 0;
ppcState.tlb[tlb][set][way].tag = 0;
ppcState.tlb[tlb][set].paddr[way] = 0;
ppcState.tlb[tlb][set].pte[way] = 0;
ppcState.tlb[tlb][set].tag[way] = TLB_TAG_INVALID;
}
}
}