2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #7173 from Morph1984/invalidate-unmap

KPageTable: Perform ranged invalidation when unmapping code memory
This commit is contained in:
bunnei 2021-10-17 03:25:26 -07:00 committed by GitHub
commit 4e81b799f1
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -363,6 +363,8 @@ ResultCode KPageTable::UnmapProcessCodeMemory(VAddr dst_addr, VAddr src_addr, st
block_manager->Update(src_addr, num_pages, KMemoryState::Normal,
KMemoryPermission::ReadAndWrite);
system.InvalidateCpuInstructionCacheRange(dst_addr, size);
return ResultSuccess;
}