aboutsummaryrefslogtreecommitdiff
path: root/src/core/arm/nce/patcher.cpp
diff options
context:
space:
mode:
authorlizzie <lizzie@eden-emu.dev>2026-02-10 03:45:02 +0100
committercrueter <crueter@eden-emu.dev>2026-02-10 03:45:02 +0100
commitefd26c3e4d400ab87b8d419c6a3c3d895664fdaa (patch)
tree7375a4233b1590f38b742b60a34b9ca3f56575de /src/core/arm/nce/patcher.cpp
parenta8093c2a3cf98ccccabeb1d6a2c1ccc5e191557f (diff)
[android, nce] Remove LRU-Cache (#3500)
This PR removes the obsolete logic of LRU-cache within, removing old and dead code, allows Android to avoid unnecesary usage of memory caching, aside to prevent some old bugs to arise in other systems that allows NCE, improves a small margin of performance and makes memory ram consumption overall better, by 300 - 500mb, revealing that part of the code was still active, even if LRU wasn't enabled. Signed-off-by: lizzie <lizzie@eden-emu.dev> Signed-off-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: CamilleLaVey <camillelavey99@gmail.com> Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3500 Reviewed-by: DraVee <dravee@eden-emu.dev> Reviewed-by: CamilleLaVey <camillelavey99@gmail.com> Co-authored-by: lizzie <lizzie@eden-emu.dev> Co-committed-by: lizzie <lizzie@eden-emu.dev>
Diffstat (limited to 'src/core/arm/nce/patcher.cpp')
-rw-r--r--src/core/arm/nce/patcher.cpp23
1 files changed, 0 insertions, 23 deletions
diff --git a/src/core/arm/nce/patcher.cpp b/src/core/arm/nce/patcher.cpp
index 3a620bff12..bd8e4fd7fb 100644
--- a/src/core/arm/nce/patcher.cpp
+++ b/src/core/arm/nce/patcher.cpp
@@ -17,27 +17,6 @@
namespace Core::NCE {
-Patcher::Patcher(Patcher&& other) noexcept
- : patch_cache(std::move(other.patch_cache)),
- m_patch_instructions(std::move(other.m_patch_instructions)),
- m_patch_instructions_pre(std::move(other.m_patch_instructions_pre)),
- c(m_patch_instructions),
- c_pre(m_patch_instructions_pre),
- m_save_context(other.m_save_context),
- m_load_context(other.m_load_context),
- m_save_context_pre(other.m_save_context_pre),
- m_load_context_pre(other.m_load_context_pre),
- mode(other.mode),
- total_program_size(other.total_program_size),
- m_relocate_module_index(other.m_relocate_module_index),
- modules(std::move(other.modules)),
- curr_patch(nullptr) {
- if (!modules.empty()) {
- curr_patch = &modules.back();
- }
-}
-
-
using namespace Common::Literals;
using namespace oaknut::util;
@@ -47,8 +26,6 @@ constexpr size_t MaxRelativeBranch = 128_MiB;
constexpr u32 ModuleCodeIndex = 0x24 / sizeof(u32);
Patcher::Patcher() : c(m_patch_instructions), c_pre(m_patch_instructions_pre) {
- LOG_WARNING(Core_ARM, "Patcher initialized with LRU cache {}",
- patch_cache.isEnabled() ? "enabled" : "disabled");
// The first word of the patch section is always a branch to the first instruction of the
// module.
c.dw(0);