summaryrefslogtreecommitdiff
path: root/src/core/core.h
diff options
context:
space:
mode:
authorGravatar bunnei2018-05-03 00:34:54 -0400
committerGravatar bunnei2018-05-10 19:34:47 -0400
commit9bf2a428f9e9359763be1bfd90c32371044c711e (patch)
tree89188fea0b3457421fe203cc7a2754523d0acf04 /src/core/core.h
parentcore: Support session close with multicore. (diff)
downloadyuzu-9bf2a428f9e9359763be1bfd90c32371044c711e.tar.gz
yuzu-9bf2a428f9e9359763be1bfd90c32371044c711e.tar.xz
yuzu-9bf2a428f9e9359763be1bfd90c32371044c711e.zip
core: Add a configuration setting for use_multi_core.
Diffstat (limited to 'src/core/core.h')
-rw-r--r--src/core/core.h10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/core/core.h b/src/core/core.h
index 561e7b48f..115061932 100644
--- a/src/core/core.h
+++ b/src/core/core.h
@@ -112,10 +112,7 @@ public:
112 return CurrentCpuCore().ArmInterface(); 112 return CurrentCpuCore().ArmInterface();
113 } 113 }
114 114
115 ARM_Interface& ArmInterface(size_t core_index) { 115 ARM_Interface& ArmInterface(size_t core_index);
116 ASSERT(core_index < NUM_CPU_CORES);
117 return cpu_cores[core_index]->ArmInterface();
118 }
119 116
120 Tegra::GPU& GPU() { 117 Tegra::GPU& GPU() {
121 return *gpu_core; 118 return *gpu_core;
@@ -125,10 +122,7 @@ public:
125 return *CurrentCpuCore().Scheduler(); 122 return *CurrentCpuCore().Scheduler();
126 } 123 }
127 124
128 const std::shared_ptr<Kernel::Scheduler>& Scheduler(size_t core_index) { 125 const std::shared_ptr<Kernel::Scheduler>& Scheduler(size_t core_index);
129 ASSERT(core_index < NUM_CPU_CORES);
130 return cpu_cores[core_index]->Scheduler();
131 }
132 126
133 Kernel::SharedPtr<Kernel::Process>& CurrentProcess() { 127 Kernel::SharedPtr<Kernel::Process>& CurrentProcess() {
134 return current_process; 128 return current_process;