summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMai <mai.iam2048@gmail.com>2023-04-10 09:04:05 +0200
committerGitHub <noreply@github.com>2023-04-10 09:04:05 +0200
commit47b80da9064f91d89b11a09192e1fc2fd5f57e69 (patch)
tree1e8b3e570182bf71f9bcd18c0fb5e7af60a80bbd
parentMerge pull request #10014 from goldenx86/linuxLTO (diff)
parentkernel: move more memory to application in 8GB arrangement (diff)
downloadyuzu-47b80da9064f91d89b11a09192e1fc2fd5f57e69.tar
yuzu-47b80da9064f91d89b11a09192e1fc2fd5f57e69.tar.gz
yuzu-47b80da9064f91d89b11a09192e1fc2fd5f57e69.tar.bz2
yuzu-47b80da9064f91d89b11a09192e1fc2fd5f57e69.tar.lz
yuzu-47b80da9064f91d89b11a09192e1fc2fd5f57e69.tar.xz
yuzu-47b80da9064f91d89b11a09192e1fc2fd5f57e69.tar.zst
yuzu-47b80da9064f91d89b11a09192e1fc2fd5f57e69.zip
-rw-r--r--src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp10
-rw-r--r--src/yuzu/configuration/configure_general.ui2
-rw-r--r--src/yuzu_cmd/default_ini.h2
3 files changed, 8 insertions, 6 deletions
diff --git a/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp b/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp
index 42d1fcc28..36d0d20d2 100644
--- a/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp
+++ b/src/core/hle/kernel/board/nintendo/nx/k_system_control.cpp
@@ -35,11 +35,11 @@ namespace {
using namespace Common::Literals;
u32 GetMemorySizeForInit() {
- return Settings::values.use_extended_memory_layout ? Smc::MemorySize_6GB : Smc::MemorySize_4GB;
+ return Settings::values.use_extended_memory_layout ? Smc::MemorySize_8GB : Smc::MemorySize_4GB;
}
Smc::MemoryArrangement GetMemoryArrangeForInit() {
- return Settings::values.use_extended_memory_layout ? Smc::MemoryArrangement_6GB
+ return Settings::values.use_extended_memory_layout ? Smc::MemoryArrangement_8GB
: Smc::MemoryArrangement_4GB;
}
} // namespace
@@ -91,7 +91,8 @@ std::size_t KSystemControl::Init::GetApplicationPoolSize() {
case Smc::MemoryArrangement_6GBForAppletDev:
return 3285_MiB;
case Smc::MemoryArrangement_8GB:
- return 4916_MiB;
+ // Real kernel sets this to 4916_MiB. We are not debugging applets.
+ return 6547_MiB;
}
}();
@@ -115,7 +116,8 @@ size_t KSystemControl::Init::GetAppletPoolSize() {
case Smc::MemoryArrangement_6GBForAppletDev:
return 2193_MiB;
case Smc::MemoryArrangement_8GB:
- return 2193_MiB;
+ //! Real kernel sets this to 2193_MiB. We are not debugging applets.
+ return 562_MiB;
}
}();
diff --git a/src/yuzu/configuration/configure_general.ui b/src/yuzu/configuration/configure_general.ui
index 6cd79673c..add110bb0 100644
--- a/src/yuzu/configuration/configure_general.ui
+++ b/src/yuzu/configuration/configure_general.ui
@@ -64,7 +64,7 @@
<item>
<widget class="QCheckBox" name="use_extended_memory_layout">
<property name="text">
- <string>Extended memory layout (6GB DRAM)</string>
+ <string>Extended memory layout (8GB DRAM)</string>
</property>
</widget>
</item>
diff --git a/src/yuzu_cmd/default_ini.h b/src/yuzu_cmd/default_ini.h
index 20e403400..209cfc28a 100644
--- a/src/yuzu_cmd/default_ini.h
+++ b/src/yuzu_cmd/default_ini.h
@@ -163,7 +163,7 @@ keyboard_enabled =
# 0: Disabled, 1 (default): Enabled
use_multi_core =
-# Enable extended guest system memory layout (6GB DRAM)
+# Enable extended guest system memory layout (8GB DRAM)
# 0 (default): Disabled, 1: Enabled
use_extended_memory_layout =