Merge pull request #5856 from Hojun-Cho/lookupcache_l1_grow_clear

LookupCache: Clear L1 entries on dynamic cache growth
This commit is contained in:
Ryan Houdek authored and GitHub committed 2026-08-26 12:12:44 -07:00
commit 49c1cda5c0
1 file changed
+3
@@ -242,6 +242,9 @@ public:
if (AveragePerSecond >= DynamicL1CacheIncreaseCountHeuristic()) {
if (CurrentL1Entries < MAX_L1_ENTRIES) {
// Entries whose address has the new mask bit set would be unreachable by InvalidateCache
FEXCore::Allocator::VirtualDontNeed(reinterpret_cast<void*>(L1Pointer), CurrentL1Entries * sizeof(LookupCacheEntry), false);
CurrentL1Entries <<= 1;
L1PointerMask = CurrentL1Entries - 1;