summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/process.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-10-24 00:42:15 +0200
committerbunnei <bunneidev@gmail.com>2018-10-26 00:03:54 +0200
commitc2049aa4e5e7a77b0f1988e7082921b2e5083fa6 (patch)
treed42024d6da32d202ed5927bf0e94d11887413c5a /src/core/hle/kernel/process.cpp
parentKernel/Memory: Added a function to first a suitable guest address at which to allocate a region of a given size. (diff)
downloadyuzu-c2049aa4e5e7a77b0f1988e7082921b2e5083fa6.tar
yuzu-c2049aa4e5e7a77b0f1988e7082921b2e5083fa6.tar.gz
yuzu-c2049aa4e5e7a77b0f1988e7082921b2e5083fa6.tar.bz2
yuzu-c2049aa4e5e7a77b0f1988e7082921b2e5083fa6.tar.lz
yuzu-c2049aa4e5e7a77b0f1988e7082921b2e5083fa6.tar.xz
yuzu-c2049aa4e5e7a77b0f1988e7082921b2e5083fa6.tar.zst
yuzu-c2049aa4e5e7a77b0f1988e7082921b2e5083fa6.zip
Diffstat (limited to 'src/core/hle/kernel/process.cpp')
-rw-r--r--src/core/hle/kernel/process.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/hle/kernel/process.cpp b/src/core/hle/kernel/process.cpp
index 073dd5a7d..420218d59 100644
--- a/src/core/hle/kernel/process.cpp
+++ b/src/core/hle/kernel/process.cpp
@@ -232,6 +232,12 @@ void Process::LoadModule(CodeSet module_, VAddr base_addr) {
MapSegment(module_.CodeSegment(), VMAPermission::ReadExecute, MemoryState::CodeStatic);
MapSegment(module_.RODataSegment(), VMAPermission::Read, MemoryState::CodeMutable);
MapSegment(module_.DataSegment(), VMAPermission::ReadWrite, MemoryState::CodeMutable);
+
+ // Clear instruction cache in CPU JIT
+ Core::System::GetInstance().ArmInterface(0).ClearInstructionCache();
+ Core::System::GetInstance().ArmInterface(1).ClearInstructionCache();
+ Core::System::GetInstance().ArmInterface(2).ClearInstructionCache();
+ Core::System::GetInstance().ArmInterface(3).ClearInstructionCache();
}
ResultVal<VAddr> Process::HeapAllocate(VAddr target, u64 size, VMAPermission perms) {