summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-04-03 03:47:04 +0200
committerGitHub <noreply@github.com>2021-04-03 03:47:04 +0200
commitc5ca8675c84ca73375cf3fe2ade257c8aa5c1239 (patch)
tree3752d42f7abb111cee5d2e45b8b1950f31b42a26 /src/core
parentMerge pull request #6131 from german77/rightjoyconSLSR (diff)
parentarm_dynarmic: Increase size of code cache (diff)
downloadyuzu-c5ca8675c84ca73375cf3fe2ade257c8aa5c1239.tar
yuzu-c5ca8675c84ca73375cf3fe2ade257c8aa5c1239.tar.gz
yuzu-c5ca8675c84ca73375cf3fe2ade257c8aa5c1239.tar.bz2
yuzu-c5ca8675c84ca73375cf3fe2ade257c8aa5c1239.tar.lz
yuzu-c5ca8675c84ca73375cf3fe2ade257c8aa5c1239.tar.xz
yuzu-c5ca8675c84ca73375cf3fe2ade257c8aa5c1239.tar.zst
yuzu-c5ca8675c84ca73375cf3fe2ade257c8aa5c1239.zip
Diffstat (limited to 'src/core')
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_32.cpp4
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_64.cpp4
2 files changed, 8 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
index 4b2a62b4f..08d889135 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
@@ -137,6 +137,10 @@ std::shared_ptr<Dynarmic::A32::Jit> ARM_Dynarmic_32::MakeJit(Common::PageTable*
// Timing
config.wall_clock_cntpct = uses_wall_clock;
+ // Code cache size
+ config.code_cache_size = 512 * 1024 * 1024;
+ config.far_code_offset = 256 * 1024 * 1024;
+
// Safe optimizations
if (Settings::values.cpu_accuracy == Settings::CPUAccuracy::DebugMode) {
if (!Settings::values.cpuopt_page_tables) {
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
index 083c2bdee..e12e50658 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
@@ -177,6 +177,10 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable*
// Timing
config.wall_clock_cntpct = uses_wall_clock;
+ // Code cache size
+ config.code_cache_size = 512 * 1024 * 1024;
+ config.far_code_offset = 256 * 1024 * 1024;
+
// Safe optimizations
if (Settings::values.cpu_accuracy == Settings::CPUAccuracy::DebugMode) {
if (!Settings::values.cpuopt_page_tables) {