mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-02-10 14:39:01 +01: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
@ -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…
x
Reference in New Issue
Block a user