summaryrefslogtreecommitdiffstats
path: root/src/core/loader
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2016-04-17 21:01:40 +0200
committerSubv <subv2112@gmail.com>2016-05-07 17:23:03 +0200
commit5b7f86708cd72b5d42b16ba4a0cc348dc83129d1 (patch)
treeff6250a8839ac14398c761ca161299ce3f28916f /src/core/loader
parentMerge pull request #1685 from lioncash/hdr (diff)
downloadyuzu-5b7f86708cd72b5d42b16ba4a0cc348dc83129d1.tar
yuzu-5b7f86708cd72b5d42b16ba4a0cc348dc83129d1.tar.gz
yuzu-5b7f86708cd72b5d42b16ba4a0cc348dc83129d1.tar.bz2
yuzu-5b7f86708cd72b5d42b16ba4a0cc348dc83129d1.tar.lz
yuzu-5b7f86708cd72b5d42b16ba4a0cc348dc83129d1.tar.xz
yuzu-5b7f86708cd72b5d42b16ba4a0cc348dc83129d1.tar.zst
yuzu-5b7f86708cd72b5d42b16ba4a0cc348dc83129d1.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 a4b47ef8c..52c5fbaaf 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));