summaryrefslogtreecommitdiff
path: root/src/core/loader/nro.cpp
diff options
context:
space:
mode:
authorGravatar GPUCode2023-11-20 15:52:18 +0200
committerGravatar t8952023-11-25 00:47:36 -0500
commit3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0 (patch)
tree4f8cb57560d4aa06d73a799537945b5a842460b2 /src/core/loader/nro.cpp
parentcommon: Enforce fastmem for nce usage (diff)
downloadyuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.gz
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.xz
yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.zip
core: Define HAS_NCE macro
Diffstat (limited to 'src/core/loader/nro.cpp')
-rw-r--r--src/core/loader/nro.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loader/nro.cpp b/src/core/loader/nro.cpp
index 49d4d7e43..2e7368349 100644
--- a/src/core/loader/nro.cpp
+++ b/src/core/loader/nro.cpp
@@ -22,7 +22,7 @@
22#include "core/loader/nso.h" 22#include "core/loader/nso.h"
23#include "core/memory.h" 23#include "core/memory.h"
24 24
25#ifdef ARCHITECTURE_arm64 25#ifdef HAS_NCE
26#include "core/arm/nce/patch.h" 26#include "core/arm/nce/patch.h"
27#endif 27#endif
28 28
@@ -201,7 +201,7 @@ static bool LoadNroImpl(Core::System& system, Kernel::KProcess& process,
201 program_image.resize(static_cast<u32>(program_image.size()) + bss_size); 201 program_image.resize(static_cast<u32>(program_image.size()) + bss_size);
202 size_t image_size = program_image.size(); 202 size_t image_size = program_image.size();
203 203
204#ifdef ARCHITECTURE_arm64 204#ifdef HAS_NCE
205 const auto& code = codeset.CodeSegment(); 205 const auto& code = codeset.CodeSegment();
206 206
207 // NROs always have a 39-bit address space. 207 // NROs always have a 39-bit address space.
@@ -247,7 +247,7 @@ static bool LoadNroImpl(Core::System& system, Kernel::KProcess& process,
247 247
248 // Relocate code patch and copy to the program_image if running under NCE. 248 // Relocate code patch and copy to the program_image if running under NCE.
249 // This needs to be after LoadFromMetadata so we can use the process entry point. 249 // This needs to be after LoadFromMetadata so we can use the process entry point.
250#ifdef ARCHITECTURE_arm64 250#ifdef HAS_NCE
251 if (Settings::IsNceEnabled()) { 251 if (Settings::IsNceEnabled()) {
252 patch.RelocateAndCopy(process.GetEntryPoint(), code, program_image, 252 patch.RelocateAndCopy(process.GetEntryPoint(), code, program_image,
253 &process.GetPostHandlers()); 253 &process.GetPostHandlers());