summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-10-17 12:25:26 +0200
committerGitHub <noreply@github.com>2021-10-17 12:25:26 +0200
commit4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5 (patch)
treef770a76cfe8f3023320cf958d941bbb170b03831 /src/core/hle
parentMerge pull request #7077 from FernandoS27/face-down (diff)
parentKPageTable: Perform ranged invalidation when unmapping code memory (diff)
downloadyuzu-4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5.tar
yuzu-4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5.tar.gz
yuzu-4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5.tar.bz2
yuzu-4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5.tar.lz
yuzu-4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5.tar.xz
yuzu-4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5.tar.zst
yuzu-4e81b799f1e7bd00cb55df8a07adcef6e9c1bfd5.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/kernel/k_page_table.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/hle/kernel/k_page_table.cpp b/src/core/hle/kernel/k_page_table.cpp
index 701268545..5e0b620c2 100644
--- a/src/core/hle/kernel/k_page_table.cpp
+++ b/src/core/hle/kernel/k_page_table.cpp
@@ -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;
}