Kernel/svcBreak: Implement CacheInvalidation for Singlecore and correct svcBreak.

This commit is contained in:
Fernando Sahmkow 2020-03-31 15:12:41 -04:00
parent 54e304fe2a
commit c8bf47dcfb
2 changed files with 13 additions and 3 deletions

View file

@ -545,7 +545,17 @@ const Core::ExclusiveMonitor& KernelCore::GetExclusiveMonitor() const {
}
void KernelCore::InvalidateAllInstructionCaches() {
//TODO: Reimplement, this
if (!IsMulticore()) {
auto& threads = GlobalScheduler().GetThreadList();
for (auto& thread : threads) {
if (!thread->IsHLEThread()) {
auto& arm_interface = thread->ArmInterface();
arm_interface.ClearInstructionCache();
}
}
} else {
UNIMPLEMENTED_MSG("Cache Invalidation unimplemented for multicore");
}
}
void KernelCore::PrepareReschedule(std::size_t id) {