Skip to content
Permalink
Browse files
Merge pull request #11559 from Pokechu22/cache-fix-plru-updates
PPCCache: Update PLRU on any cache access
  • Loading branch information
AdmiralCurtiss committed Feb 13, 2023
2 parents 8f91cb6 + 14c4f4e commit e2d7b6d
Showing 1 changed file 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};
}

0 comments on commit e2d7b6d

Please sign in to comment.