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/nso.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 'src/core/loader/nso.cpp')
-rw-r--r-- | src/core/loader/nso.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/core/loader/nso.cpp b/src/core/loader/nso.cpp index 1ad2e917c..878c1c6cb 100644 --- a/src/core/loader/nso.cpp +++ b/src/core/loader/nso.cpp @@ -20,7 +20,7 @@ #include "core/loader/nso.h" #include "core/memory.h" -#ifdef ARCHITECTURE_arm64 +#ifdef HAS_NCE #include "core/arm/nce/patch.h" #endif @@ -93,7 +93,7 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::KProcess& process, Core:: // Allocate some space at the beginning if we are patching in PreText mode. const size_t module_start = [&]() -> size_t { -#ifdef ARCHITECTURE_arm64 +#ifdef HAS_NCE if (patch && patch->GetPatchMode() == Core::NCE::PatchMode::PreText) { return patch->GetSectionSize(); } @@ -155,7 +155,7 @@ std::optional<VAddr> AppLoader_NSO::LoadModule(Kernel::KProcess& process, Core:: std::copy(pi_header.begin() + sizeof(NSOHeader), pi_header.end(), program_image.data()); } -#ifdef ARCHITECTURE_arm64 +#ifdef HAS_NCE // If we are computing the process code layout and using nce backend, patch. const auto& code = codeset.CodeSegment(); if (patch && patch->GetPatchMode() == Core::NCE::PatchMode::None) { |