Merge pull request #11559 from Pokechu22/cache-fix-plru-updates
PPCCache: Update PLRU on any cache access
This commit is contained in:
commit
e2d7b6d079
|
@ -269,11 +269,11 @@ std::pair<u32, u32> Cache::GetCache(u32 addr, bool locked)
|
|||
addrs[set][way] = addr;
|
||||
valid[set] |= (1 << way);
|
||||
modified[set] &= ~(1 << way);
|
||||
}
|
||||
|
||||
// update plru
|
||||
if (way != 0xff)
|
||||
plru[set] = (plru[set] & ~s_plru_mask[way]) | s_plru_value[way];
|
||||
}
|
||||
|
||||
return {set, way};
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue