summaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/kernel.cpp
diff options
context:
space:
mode:
authorGravatar Fernando Sahmkow2020-06-27 18:20:06 -0400
committerGravatar Fernando Sahmkow2020-06-27 18:20:06 -0400
commit2f8947583f2f0af4058600243d6c1d244e3c4890 (patch)
treea0e7a10c6131efb23d6fdb3ee7fc0de4bd4163af /src/core/hle/kernel/kernel.cpp
parentNvFlinger: Clang Format. (diff)
downloadyuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.gz
yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.tar.xz
yuzu-2f8947583f2f0af4058600243d6c1d244e3c4890.zip
Core/Common: Address Feedback.
Diffstat (limited to 'src/core/hle/kernel/kernel.cpp')
-rw-r--r--src/core/hle/kernel/kernel.cpp14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/core/hle/kernel/kernel.cpp b/src/core/hle/kernel/kernel.cpp
index dbb75416d..1f2af7a1b 100644
--- a/src/core/hle/kernel/kernel.cpp
+++ b/src/core/hle/kernel/kernel.cpp
@@ -472,16 +472,12 @@ const Core::ExclusiveMonitor& KernelCore::GetExclusiveMonitor() const {
472} 472}
473 473
474void KernelCore::InvalidateAllInstructionCaches() { 474void KernelCore::InvalidateAllInstructionCaches() {
475 if (!IsMulticore()) { 475 auto& threads = GlobalScheduler().GetThreadList();
476 auto& threads = GlobalScheduler().GetThreadList(); 476 for (auto& thread : threads) {
477 for (auto& thread : threads) { 477 if (!thread->IsHLEThread()) {
478 if (!thread->IsHLEThread()) { 478 auto& arm_interface = thread->ArmInterface();
479 auto& arm_interface = thread->ArmInterface(); 479 arm_interface.ClearInstructionCache();
480 arm_interface.ClearInstructionCache();
481 }
482 } 480 }
483 } else {
484 UNIMPLEMENTED_MSG("Cache Invalidation unimplemented for multicore");
485 } 481 }
486} 482}
487 483