summaryrefslogtreecommitdiffstats
path: root/src/core/loader
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2016-05-08 21:03:08 +0200
committerbunnei <bunneidev@gmail.com>2016-05-08 21:03:08 +0200
commit282a2ad539223d61067a1957fab8c45571075987 (patch)
tree1adb819b34340de4395ada46ac6b089cdf121b4a /src/core/loader
parentMerge pull request #1718 from alex-laties/fixup-type-conversions (diff)
parentKernel/Threading: Warn when a thread can be scheduled in the Syscore (Core 1). (diff)
downloadyuzu-282a2ad539223d61067a1957fab8c45571075987.tar
yuzu-282a2ad539223d61067a1957fab8c45571075987.tar.gz
yuzu-282a2ad539223d61067a1957fab8c45571075987.tar.bz2
yuzu-282a2ad539223d61067a1957fab8c45571075987.tar.lz
yuzu-282a2ad539223d61067a1957fab8c45571075987.tar.xz
yuzu-282a2ad539223d61067a1957fab8c45571075987.tar.zst
yuzu-282a2ad539223d61067a1957fab8c45571075987.zip
Diffstat (limited to 'src/core/loader')
-rw-r--r--src/core/loader/ncch.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/loader/ncch.cpp b/src/core/loader/ncch.cpp
index d362a4419..7391bdb26 100644
--- a/src/core/loader/ncch.cpp
+++ b/src/core/loader/ncch.cpp
@@ -156,6 +156,9 @@ ResultStatus AppLoader_NCCH::LoadExec() {
Kernel::g_current_process->resource_limit = Kernel::ResourceLimit::GetForCategory(
static_cast<Kernel::ResourceLimitCategory>(exheader_header.arm11_system_local_caps.resource_limit_category));
+ // Set the default CPU core for this process
+ Kernel::g_current_process->ideal_processor = exheader_header.arm11_system_local_caps.ideal_processor;
+
// Copy data while converting endianess
std::array<u32, ARRAY_SIZE(exheader_header.arm11_kernel_caps.descriptors)> kernel_caps;
std::copy_n(exheader_header.arm11_kernel_caps.descriptors, kernel_caps.size(), begin(kernel_caps));