diff options
| author | 2020-06-27 18:20:06 -0400 | |
|---|---|---|
| committer | 2020-06-27 18:20:06 -0400 | |
| commit | 2f8947583f2f0af4058600243d6c1d244e3c4890 (patch) | |
| tree | a0e7a10c6131efb23d6fdb3ee7fc0de4bd4163af /src/core/hle/kernel/kernel.cpp | |
| parent | NvFlinger: Clang Format. (diff) | |
| download | yuzu-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.cpp | 14 |
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 | ||
| 474 | void KernelCore::InvalidateAllInstructionCaches() { | 474 | void 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 | ||