mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-20 19:44:57 +00:00
Merge pull request #11559 from Pokechu22/cache-fix-plru-updates
PPCCache: Update PLRU on any cache access
This commit is contained in:
commit
e2d7b6d079
1 changed files with 4 additions and 4 deletions
|
@ -269,12 +269,12 @@ 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];
|
||||
}
|
||||
|
||||
// update plru
|
||||
if (way != 0xff)
|
||||
plru[set] = (plru[set] & ~s_plru_mask[way]) | s_plru_value[way];
|
||||
|
||||
return {set, way};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue