diff options
| author | 2018-07-22 12:48:44 -0400 | |
|---|---|---|
| committer | 2018-07-22 12:48:44 -0400 | |
| commit | 5fc99553d20d7d747730f7da4d12bdeb0593adb2 (patch) | |
| tree | 4f3217d3f564c47b8aeecac046e389ba6d3d07ed /src/core/core.cpp | |
| parent | Merge pull request #772 from MerryMage/dynarmic (diff) | |
| parent | Implement exclusive monitor (diff) | |
| download | yuzu-5fc99553d20d7d747730f7da4d12bdeb0593adb2.tar.gz yuzu-5fc99553d20d7d747730f7da4d12bdeb0593adb2.tar.xz yuzu-5fc99553d20d7d747730f7da4d12bdeb0593adb2.zip | |
Merge pull request #638 from MerryMage/mp
Implement exclusive monitor
Diffstat (limited to 'src/core/core.cpp')
| -rw-r--r-- | src/core/core.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/core.cpp b/src/core/core.cpp index 9bd9f4bd9..b7f4b4532 100644 --- a/src/core/core.cpp +++ b/src/core/core.cpp | |||
| @@ -171,8 +171,9 @@ System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) { | |||
| 171 | current_process = Kernel::Process::Create("main"); | 171 | current_process = Kernel::Process::Create("main"); |
| 172 | 172 | ||
| 173 | cpu_barrier = std::make_shared<CpuBarrier>(); | 173 | cpu_barrier = std::make_shared<CpuBarrier>(); |
| 174 | cpu_exclusive_monitor = Cpu::MakeExclusiveMonitor(cpu_cores.size()); | ||
| 174 | for (size_t index = 0; index < cpu_cores.size(); ++index) { | 175 | for (size_t index = 0; index < cpu_cores.size(); ++index) { |
| 175 | cpu_cores[index] = std::make_shared<Cpu>(cpu_barrier, index); | 176 | cpu_cores[index] = std::make_shared<Cpu>(cpu_exclusive_monitor, cpu_barrier, index); |
| 176 | } | 177 | } |
| 177 | 178 | ||
| 178 | gpu_core = std::make_unique<Tegra::GPU>(); | 179 | gpu_core = std::make_unique<Tegra::GPU>(); |