mirror of
https://github.com/yuzu-emu/yuzu.git
synced 2025-06-13 12:28:31 -05:00
System: Address Feedback
This commit is contained in:
committed by
FernandoS27
parent
de4b01f75d
commit
2d1984c20c
@ -135,7 +135,8 @@ struct KernelCore::Impl {
|
||||
}
|
||||
|
||||
void InitializePhysicalCores(KernelCore& kernel) {
|
||||
exclusive_monitor = Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount());
|
||||
exclusive_monitor =
|
||||
Core::MakeExclusiveMonitor(system.Memory(), global_scheduler.CpuCoresCount());
|
||||
for (std::size_t i = 0; i < global_scheduler.CpuCoresCount(); i++) {
|
||||
cores.emplace_back(system, kernel, i, *exclusive_monitor);
|
||||
}
|
||||
@ -284,7 +285,7 @@ void KernelCore::InvalidateAllInstructionCaches() {
|
||||
}
|
||||
|
||||
void KernelCore::PrepareReschedule(std::size_t id) {
|
||||
if (id >= 0 && id < impl->global_scheduler.CpuCoresCount()) {
|
||||
if (id < impl->global_scheduler.CpuCoresCount()) {
|
||||
impl->cores[id].Stop();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user