summaryrefslogtreecommitdiff
path: root/src/common
diff options
context:
space:
mode:
authorGravatar Liam2023-11-17 23:44:53 +0200
committerGravatar t8952023-11-25 00:46:47 -0500
commit9f91ba1f7357c61dd2c7c3b437ea203d467fd400 (patch)
tree3cfe55acf5d2f8a0d75373934b4c22a4e9bb2a09 /src/common
parentdevice_memory: Enable direct mapped addresses for nce (diff)
downloadyuzu-9f91ba1f7357c61dd2c7c3b437ea203d467fd400.tar.gz
yuzu-9f91ba1f7357c61dd2c7c3b437ea203d467fd400.tar.xz
yuzu-9f91ba1f7357c61dd2c7c3b437ea203d467fd400.zip
arm: Implement native code execution backend
Diffstat (limited to '')
-rw-r--r--src/common/host_memory.cpp10
-rw-r--r--src/common/settings.cpp4
-rw-r--r--src/common/settings.h2
3 files changed, 8 insertions, 8 deletions
diff --git a/src/common/host_memory.cpp b/src/common/host_memory.cpp
index 3e4b34de6..38d7b29f7 100644
--- a/src/common/host_memory.cpp
+++ b/src/common/host_memory.cpp
@@ -189,6 +189,11 @@ public:
189 } 189 }
190 } 190 }
191 191
192 void EnableDirectMappedAddress() {
193 // TODO
194 UNREACHABLE();
195 }
196
192 const size_t backing_size; ///< Size of the backing memory in bytes 197 const size_t backing_size; ///< Size of the backing memory in bytes
193 const size_t virtual_size; ///< Size of the virtual address placeholder in bytes 198 const size_t virtual_size; ///< Size of the virtual address placeholder in bytes
194 199
@@ -340,11 +345,6 @@ private:
340 return false; 345 return false;
341 } 346 }
342 347
343 void EnableDirectMappedAddress() {
344 // TODO
345 UNREACHABLE();
346 }
347
348 HANDLE process{}; ///< Current process handle 348 HANDLE process{}; ///< Current process handle
349 HANDLE backing_handle{}; ///< File based backing memory 349 HANDLE backing_handle{}; ///< File based backing memory
350 350
diff --git a/src/common/settings.cpp b/src/common/settings.cpp
index 167e984a6..81a036ef0 100644
--- a/src/common/settings.cpp
+++ b/src/common/settings.cpp
@@ -158,8 +158,8 @@ bool IsFastmemEnabled() {
158 158
159static bool is_nce_enabled = false; 159static bool is_nce_enabled = false;
160 160
161void SetNceEnabled(bool is_64bit) { 161void SetNceEnabled(bool is_39bit) {
162 is_nce_enabled = values.cpu_backend.GetValue() == CpuBackend::Nce && is_64bit; 162 is_nce_enabled = values.cpu_backend.GetValue() == CpuBackend::Nce && is_39bit;
163} 163}
164 164
165bool IsNceEnabled() { 165bool IsNceEnabled() {
diff --git a/src/common/settings.h b/src/common/settings.h
index fea639ee3..648e0be0d 100644
--- a/src/common/settings.h
+++ b/src/common/settings.h
@@ -181,7 +181,7 @@ struct Values {
181 181
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::Nce, CpuBackend::Dynarmic,
185#ifdef ARCHITECTURE_arm64 185#ifdef ARCHITECTURE_arm64
186 CpuBackend::Nce, 186 CpuBackend::Nce,
187#else 187#else