summaryrefslogtreecommitdiffstats
path: root/src/core/arm/dynarmic
diff options
context:
space:
mode:
authorMerryMage <MerryMage@users.noreply.github.com>2021-01-02 18:36:02 +0100
committerMerryMage <MerryMage@users.noreply.github.com>2021-01-02 21:13:21 +0100
commit57c9da1b397b7d19b604f318502a881db87f0ba4 (patch)
tree0e00979bbab0dd7939d0184e4e95c4ba1e8e5fa7 /src/core/arm/dynarmic
parentMerge pull request #5209 from Morph1984/refactor-controller-connect (diff)
downloadyuzu-57c9da1b397b7d19b604f318502a881db87f0ba4.tar
yuzu-57c9da1b397b7d19b604f318502a881db87f0ba4.tar.gz
yuzu-57c9da1b397b7d19b604f318502a881db87f0ba4.tar.bz2
yuzu-57c9da1b397b7d19b604f318502a881db87f0ba4.tar.lz
yuzu-57c9da1b397b7d19b604f318502a881db87f0ba4.tar.xz
yuzu-57c9da1b397b7d19b604f318502a881db87f0ba4.tar.zst
yuzu-57c9da1b397b7d19b604f318502a881db87f0ba4.zip
Diffstat (limited to 'src/core/arm/dynarmic')
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_32.cpp3
-rw-r--r--src/core/arm/dynarmic/arm_dynarmic_64.cpp3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
index 8aaf11eee..0831dd5d2 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp
@@ -181,6 +181,9 @@ std::shared_ptr<Dynarmic::A32::Jit> ARM_Dynarmic_32::MakeJit(Common::PageTable&
if (Settings::values.cpuopt_unsafe_reduce_fp_error) {
config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_ReducedErrorFP;
}
+ if (Settings::values.cpuopt_unsafe_inaccurate_nan) {
+ config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_InaccurateNaN;
+ }
}
return std::make_unique<Dynarmic::A32::Jit>(config);
diff --git a/src/core/arm/dynarmic/arm_dynarmic_64.cpp b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
index d2e1dc724..4c5ebca22 100644
--- a/src/core/arm/dynarmic/arm_dynarmic_64.cpp
+++ b/src/core/arm/dynarmic/arm_dynarmic_64.cpp
@@ -212,6 +212,9 @@ std::shared_ptr<Dynarmic::A64::Jit> ARM_Dynarmic_64::MakeJit(Common::PageTable&
if (Settings::values.cpuopt_unsafe_reduce_fp_error) {
config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_ReducedErrorFP;
}
+ if (Settings::values.cpuopt_unsafe_inaccurate_nan) {
+ config.optimizations |= Dynarmic::OptimizationFlag::Unsafe_InaccurateNaN;
+ }
}
return std::make_shared<Dynarmic::A64::Jit>(config);