diff options
| author | 2018-05-05 23:54:43 -0400 | |
|---|---|---|
| committer | 2018-05-10 19:34:52 -0400 | |
| commit | 8aa5d25f826c8969a1e9938d8c8e12fa6df8be82 (patch) | |
| tree | 5e0832f4382787a889d3f0ed1ec75175a6ac8071 /src/core/core.cpp | |
| parent | svc: Implement GetThreadCoreMask and SetThreadCoreMask. (diff) | |
| download | yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.gz yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.xz yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.zip | |
threading: Reschedule only on cores that are necessary.
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 59c8940f7..6cbfc3035 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -141,6 +141,11 @@ ARM_Interface& System::ArmInterface(size_t core_index) { | |||
| 141 | return cpu_cores[core_index]->ArmInterface(); | 141 | return cpu_cores[core_index]->ArmInterface(); |
| 142 | } | 142 | } |
| 143 | 143 | ||
| 144 | Cpu& System::CpuCore(size_t core_index) { | ||
| 145 | ASSERT(core_index < NUM_CPU_CORES); | ||
| 146 | return *cpu_cores[core_index]; | ||
| 147 | } | ||
| 148 | |||
| 144 | System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { | 149 | System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { |
| 145 | NGLOG_DEBUG(HW_Memory, "initialized OK"); | 150 | NGLOG_DEBUG(HW_Memory, "initialized OK"); |
| 146 | 151 | ||