From 775d27c0cdee4af0a933981713f0324269f86d5d Mon Sep 17 00:00:00 2001 From: Stephen Miller <56742918+StevenMiller123@users.noreply.github.com> Date: Wed, 17 Sep 2025 13:58:48 -0500 Subject: [PATCH] Core: Log error on MapMemory out of flexible memory case (#3614) * Log error for out-of-flexible-memory error case in MapMemory Should reduce confusion when looking as some logs. * Clang --- src/core/memory.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index bc659e177..55c266d70 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -314,6 +314,10 @@ s32 MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, u64 size, Memo // Certain games perform flexible mappings on loop to determine // the available flexible memory size. Questionable but we need to handle this. if (type == VMAType::Flexible && flexible_usage + size > total_flexible_size) { + LOG_ERROR(Kernel_Vmm, + "Out of flexible memory, available flexible memory = {:#x}" + " requested size = {:#x}", + total_flexible_size - flexible_usage, size); return ORBIS_KERNEL_ERROR_ENOMEM; }