mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-27 04:25:12 +00:00
Unconditional assert in MapFile
This commit is contained in:
parent
6752cd039d
commit
e2215f0f4f
@ -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<u32>(prot), handle);
|
impl.MapFile(mapped_addr, size_aligned, phys_addr, std::bit_cast<u32>(prot), handle);
|
||||||
|
|
||||||
if (prot >= MemoryProt::GpuRead) {
|
if (prot >= MemoryProt::GpuRead) {
|
||||||
// PS4s only map to GPU memory when the protection includes GPU access.
|
ASSERT_MSG(false, "Files cannot be mapped to GPU memory");
|
||||||
// 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Add virtual memory area
|
// Add virtual memory area
|
||||||
|
Loading…
Reference in New Issue
Block a user