diff options
| author | Mat M <mathew1800@gmail.com> | 2018-07-22 12:48:44 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-07-22 12:48:44 -0400 |
| commit | ad20b2638aff5d11ddd573246d34f12cf28d4b41 (patch) | |
| tree | 4f3217d3f564c47b8aeecac046e389ba6d3d07ed /src/core/core.cpp | |
| parent | 6bccca8869fd4f245f556f3e28d50fcfc3dac863 (diff) | |
| parent | 34bf2dbf680d55d3fece5063163ea81d4b0d7702 (diff) | |
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 9bd9f4bd95..b7f4b45323 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) { current_process = Kernel::Process::Create("main"); cpu_barrier = std::make_shared<CpuBarrier>(); + cpu_exclusive_monitor = Cpu::MakeExclusiveMonitor(cpu_cores.size()); for (size_t index = 0; index < cpu_cores.size(); ++index) { - cpu_cores[index] = std::make_shared<Cpu>(cpu_barrier, index); + cpu_cores[index] = std::make_shared<Cpu>(cpu_exclusive_monitor, cpu_barrier, index); } gpu_core = std::make_unique<Tegra::GPU>(); |
