From e2215f0f4f47d5b5b1dfe3a414702ea19630d3f4 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Tue, 27 May 2025 13:23:51 -0500 Subject: [PATCH] Unconditional assert in MapFile --- src/core/memory.cpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index cc0999f97..4e524e9e2 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -400,10 +400,7 @@ s32 MemoryManager::MapFile(void** out_addr, VAddr virtual_addr, u64 size, Memory impl.MapFile(mapped_addr, size_aligned, phys_addr, std::bit_cast(prot), handle); if (prot >= MemoryProt::GpuRead) { - // PS4s only map to GPU memory when the protection includes GPU access. - // If the address to map to is too high, PS4s throw a page fault and crash. - ASSERT_MSG(IsValidGpuMapping(mapped_addr, size_aligned), "Invalid address for GPU mapping"); - rasterizer->MapMemory(mapped_addr, size_aligned); + ASSERT_MSG(false, "Files cannot be mapped to GPU memory"); } // Add virtual memory area