summaryrefslogtreecommitdiffstats
path: root/src/core/hle
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2018-12-05 06:32:53 +0100
committerLioncash <mathew1800@gmail.com>2018-12-05 06:33:47 +0100
commit7c9b194d63914f446e1170a0eedc17fa701ea7a7 (patch)
tree12c70be70b5d2d3c138fd2f8db536e7b97eaf514 /src/core/hle
parentMerge pull request #1704 from DarkLordZach/oss-sysarchive (diff)
downloadyuzu-7c9b194d63914f446e1170a0eedc17fa701ea7a7.tar
yuzu-7c9b194d63914f446e1170a0eedc17fa701ea7a7.tar.gz
yuzu-7c9b194d63914f446e1170a0eedc17fa701ea7a7.tar.bz2
yuzu-7c9b194d63914f446e1170a0eedc17fa701ea7a7.tar.lz
yuzu-7c9b194d63914f446e1170a0eedc17fa701ea7a7.tar.xz
yuzu-7c9b194d63914f446e1170a0eedc17fa701ea7a7.tar.zst
yuzu-7c9b194d63914f446e1170a0eedc17fa701ea7a7.zip
Diffstat (limited to 'src/core/hle')
-rw-r--r--src/core/hle/service/ldr/ldr.cpp10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/hle/service/ldr/ldr.cpp b/src/core/hle/service/ldr/ldr.cpp
index ca119dd3a..453d90a22 100644
--- a/src/core/hle/service/ldr/ldr.cpp
+++ b/src/core/hle/service/ldr/ldr.cpp
@@ -335,10 +335,7 @@ public:
vm_manager.ReprotectRange(*map_address + header.rw_offset, header.rw_size,
Kernel::VMAPermission::ReadWrite);
- Core::System::GetInstance().ArmInterface(0).ClearInstructionCache();
- Core::System::GetInstance().ArmInterface(1).ClearInstructionCache();
- Core::System::GetInstance().ArmInterface(2).ClearInstructionCache();
- Core::System::GetInstance().ArmInterface(3).ClearInstructionCache();
+ Core::System::GetInstance().InvalidateCpuInstructionCaches();
nro.insert_or_assign(*map_address, NROInfo{hash, nro_size + bss_size});
@@ -391,10 +388,7 @@ public:
Kernel::MemoryState::ModuleCodeStatic) == RESULT_SUCCESS);
ASSERT(process->UnmapMemory(mapped_addr, 0, nro_size) == RESULT_SUCCESS);
- Core::System::GetInstance().ArmInterface(0).ClearInstructionCache();
- Core::System::GetInstance().ArmInterface(1).ClearInstructionCache();
- Core::System::GetInstance().ArmInterface(2).ClearInstructionCache();
- Core::System::GetInstance().ArmInterface(3).ClearInstructionCache();
+ Core::System::GetInstance().InvalidateCpuInstructionCaches();
nro.erase(iter);
IPC::ResponseBuilder rb{ctx, 2};