diff options
author | bunnei <bunneidev@gmail.com> | 2019-10-15 17:48:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-10-15 17:48:30 +0200 |
commit | cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc (patch) | |
tree | 1664df6e9abff74f37adee0c90ae3c9eaff6babf /src/core/core_cpu.cpp | |
parent | Merge pull request #2897 from DarkLordZach/oss-ext-fonts-1 (diff) | |
parent | Core_Timing: Address Remaining feedback. (diff) | |
download | yuzu-cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc.tar yuzu-cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc.tar.gz yuzu-cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc.tar.bz2 yuzu-cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc.tar.lz yuzu-cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc.tar.xz yuzu-cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc.tar.zst yuzu-cab2619aeb111bd6c5dbcc5adc0d2e8154a1e8fc.zip |
Diffstat (limited to 'src/core/core_cpu.cpp')
-rw-r--r-- | src/core/core_cpu.cpp | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/src/core/core_cpu.cpp b/src/core/core_cpu.cpp index 21c410e34..6bd9639c6 100644 --- a/src/core/core_cpu.cpp +++ b/src/core/core_cpu.cpp @@ -85,24 +85,16 @@ void Cpu::RunLoop(bool tight_loop) { // instead advance to the next event and try to yield to the next thread if (Kernel::GetCurrentThread() == nullptr) { LOG_TRACE(Core, "Core-{} idling", core_index); - - if (IsMainCore()) { - // TODO(Subv): Only let CoreTiming idle if all 4 cores are idling. - core_timing.Idle(); - core_timing.Advance(); - } - + core_timing.Idle(); + core_timing.Advance(); PrepareReschedule(); } else { - if (IsMainCore()) { - core_timing.Advance(); - } - if (tight_loop) { arm_interface->Run(); } else { arm_interface->Step(); } + core_timing.Advance(); } Reschedule(); |