summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp15
1 files changed, 10 insertions, 5 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index c426b6378..929db696d 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -497,12 +497,17 @@ const Core::ExclusiveMonitor& KernelCore::GetExclusiveMonitor() const {
497} 497}
498 498
499void KernelCore::InvalidateAllInstructionCaches() { 499void KernelCore::InvalidateAllInstructionCaches() {
500 if (!IsMulticore()) { 500 for (auto& physical_core : impl->cores) {
501 for (auto& physical_core : impl->cores) { 501 physical_core.ArmInterface().ClearInstructionCache();
502 physical_core.ArmInterface().ClearInstructionCache(); 502 }
503}
504
505void KernelCore::InvalidateCpuInstructionCacheRange(VAddr addr, std::size_t size) {
506 for (auto& physical_core : impl->cores) {
507 if (!physical_core.IsInitialized()) {
508 continue;
503 } 509 }
504 } else { 510 physical_core.ArmInterface().InvalidateCacheRange(addr, size);
505 UNIMPLEMENTED();
506 } 511 }
507} 512}
508 513