summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar amazingfate2023-11-26 20:25:18 -0500
committerGravatar Liam2023-11-26 20:44:07 -0500
commita76a8fb5fecb4731a9a9231f3e06d5743c34e090 (patch)
tree5b7b163235de2c0ea47b5ea5e698715397fe14d3 /src/common
parentgeneral: fix mac compile (diff)
downloadyuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar.gz
yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.tar.xz
yuzu-a76a8fb5fecb4731a9a9231f3e06d5743c34e090.zip
qt: add cpu_backend configuration
Diffstat (limited to 'src/common')
-rw-r--r--src/common/CMakeLists.txt2
-rw-r--r--src/common/settings.h2
-rw-r--r--src/common/wall_clock.cpp4
3 files changed, 4 insertions, 4 deletions
diff --git a/src/common/CMakeLists.txt b/src/common/CMakeLists.txt
index 98fd5f1e4..d38d5c6d1 100644
--- a/src/common/CMakeLists.txt
+++ b/src/common/CMakeLists.txt
@@ -199,7 +199,7 @@ if(ARCHITECTURE_x86_64)
199 target_link_libraries(common PRIVATE xbyak::xbyak) 199 target_link_libraries(common PRIVATE xbyak::xbyak)
200endif() 200endif()
201 201
202if (ARCHITECTURE_arm64 AND (ANDROID OR LINUX)) 202if (HAS_NCE)
203 target_sources(common 203 target_sources(common
204 PRIVATE 204 PRIVATE
205 arm64/native_clock.cpp 205 arm64/native_clock.cpp
diff --git a/src/common/settings.h b/src/common/settings.h
index fea639ee3..508615011 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -182,7 +182,7 @@ struct Values {
182 // Cpu 182 // Cpu
183 SwitchableSetting<CpuBackend, true> cpu_backend{ 183 SwitchableSetting<CpuBackend, true> cpu_backend{
184 linkage, CpuBackend::Dynarmic, CpuBackend::Dynarmic, 184 linkage, CpuBackend::Dynarmic, CpuBackend::Dynarmic,
185#ifdef ARCHITECTURE_arm64 185#ifdef HAS_NCE
186 CpuBackend::Nce, 186 CpuBackend::Nce,
187#else 187#else
188 CpuBackend::Dynarmic, 188 CpuBackend::Dynarmic,
diff --git a/src/common/wall_clock.cpp b/src/common/wall_clock.cpp
index caca9a123..012fdc1e0 100644
--- a/src/common/wall_clock.cpp
+++ b/src/common/wall_clock.cpp
@@ -10,7 +10,7 @@
10#include "common/x64/rdtsc.h" 10#include "common/x64/rdtsc.h"
11#endif 11#endif
12 12
13#if defined(ARCHITECTURE_arm64) && defined(__linux__) 13#ifdef HAS_NCE
14#include "common/arm64/native_clock.h" 14#include "common/arm64/native_clock.h"
15#endif 15#endif
16 16
@@ -68,7 +68,7 @@ std::unique_ptr<WallClock> CreateOptimalClock() {
68 // - Is not more precise than 1 GHz (1ns resolution) 68 // - Is not more precise than 1 GHz (1ns resolution)
69 return std::make_unique<StandardWallClock>(); 69 return std::make_unique<StandardWallClock>();
70 } 70 }
71#elif defined(ARCHITECTURE_arm64) && defined(__linux__) 71#elif defined(HAS_NCE)
72 return std::make_unique<Arm64::NativeClock>(); 72 return std::make_unique<Arm64::NativeClock>();
73#else 73#else
74 return std::make_unique<StandardWallClock>(); 74 return std::make_unique<StandardWallClock>();