summaryrefslogtreecommitdiffstats
path: root/src/core/core.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-05-06 05:54:43 +0200
committerbunnei <bunneidev@gmail.com>2018-05-11 01:34:52 +0200
commit8aa5d25f826c8969a1e9938d8c8e12fa6df8be82 (patch)
tree5e0832f4382787a889d3f0ed1ec75175a6ac8071 /src/core/core.cpp
parentsvc: Implement GetThreadCoreMask and SetThreadCoreMask. (diff)
downloadyuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.gz
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.bz2
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.lz
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.xz
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.tar.zst
yuzu-8aa5d25f826c8969a1e9938d8c8e12fa6df8be82.zip
Diffstat (limited to 'src/core/core.cpp')
-rw-r--r--src/core/core.cpp5
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) {
return cpu_cores[core_index]->ArmInterface();
}
+Cpu& System::CpuCore(size_t core_index) {
+ ASSERT(core_index < NUM_CPU_CORES);
+ return *cpu_cores[core_index];
+}
+
System::ResultStatus System::Init(EmuWindow* emu_window, u32 system_mode) {
NGLOG_DEBUG(HW_Memory, "initialized OK");