diff options
author | merry <git@mary.rs> | 2022-02-27 20:40:05 +0100 |
---|---|---|
committer | merry <git@mary.rs> | 2022-02-27 20:40:05 +0100 |
commit | 16784e5bb3dd043f9430401097a4be42ad21eb91 (patch) | |
tree | d09e952371f9e7e90aecba4d8b4e9654d10c50a2 /src/core/arm/dynarmic/arm_dynarmic_64.cpp | |
parent | Merge pull request #7955 from bunnei/update-dynarmic (diff) | |
download | yuzu-16784e5bb3dd043f9430401097a4be42ad21eb91.tar yuzu-16784e5bb3dd043f9430401097a4be42ad21eb91.tar.gz yuzu-16784e5bb3dd043f9430401097a4be42ad21eb91.tar.bz2 yuzu-16784e5bb3dd043f9430401097a4be42ad21eb91.tar.lz yuzu-16784e5bb3dd043f9430401097a4be42ad21eb91.tar.xz yuzu-16784e5bb3dd043f9430401097a4be42ad21eb91.tar.zst yuzu-16784e5bb3dd043f9430401097a4be42ad21eb91.zip |
Diffstat (limited to 'src/core/arm/dynarmic/arm_dynarmic_64.cpp')
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_64.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp index 56836bd05..d96226c41 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp @@ -185,6 +185,9 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable* config.fastmem_pointer = page_table->fastmem_arena; config.fastmem_address_space_bits = address_space_bits; config.silently_mirror_fastmem = false; + + config.fastmem_exclusive_access = true; + config.recompile_on_exclusive_fastmem_failure = true; } // Multi-process state @@ -237,6 +240,12 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable* if (!Settings::values.cpuopt_fastmem) { config.fastmem_pointer = nullptr; } + if (!Settings::values.cpuopt_fastmem_exclusives) { + config.fastmem_exclusive_access = false; + } + if (!Settings::values.cpuopt_recompile_exclusives) { + config.recompile_on_exclusive_fastmem_failure = false; + } } // Unsafe optimizations @@ -254,6 +263,9 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable* if (Settings::values.cpuopt_unsafe_fastmem_check) { config.fastmem_address_space_bits = 64; } + if (Settings::values.cpuopt_unsafe_ignore_global_monitor) { + config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_IgnoreGlobalMonitor; + } } // Curated optimizations @@ -262,6 +274,7 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable* config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_UnfuseFMA; config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_InaccurateNaN; config.fastmem_address_space_bits = 64; + config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_IgnoreGlobalMonitor; } return std::make_shared<Dynarmic::A64::Jit>(config); |