diff options
author | GPUCode <geoster3d@gmail.com> | 2023-11-20 14:52:18 +0100 |
---|---|---|
committer | t895 <clombardo169@gmail.com> | 2023-11-25 06:47:36 +0100 |
commit | 3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0 (patch) | |
tree | 4f8cb57560d4aa06d73a799537945b5a842460b2 /src/core/loader/nro.cpp | |
parent | common: Enforce fastmem for nce usage (diff) | |
download | yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.gz yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.bz2 yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.lz yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.xz yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.tar.zst yuzu-3ec3cca4d8d4e1733cbc337b0499ad3bdcdf52b0.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/loader/nro.cpp | 6 |
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 @@ #include "core/loader/nso.h" #include "core/memory.h" -#ifdef ARCHITECTURE_arm64 +#ifdef HAS_NCE #include "core/arm/nce/patch.h" #endif @@ -201,7 +201,7 @@ static bool LoadNroImpl(Core::System& system, Kernel::KProcess& process, program_image.resize(static_cast<u32>(program_image.size()) + bss_size); size_t image_size = program_image.size(); -#ifdef ARCHITECTURE_arm64 +#ifdef HAS_NCE const auto& code = codeset.CodeSegment(); // NROs always have a 39-bit address space. @@ -247,7 +247,7 @@ static bool LoadNroImpl(Core::System& system, Kernel::KProcess& process, // Relocate code patch and copy to the program_image if running under NCE. // This needs to be after LoadFromMetadata so we can use the process entry point. -#ifdef ARCHITECTURE_arm64 +#ifdef HAS_NCE if (Settings::IsNceEnabled()) { patch.RelocateAndCopy(process.GetEntryPoint(), code, program_image, &process.GetPostHandlers()); |