From c2b2dee56dbf54134ae52cec1d178f2387a15661 Mon Sep 17 00:00:00 2001 From: eladash Date: Tue, 22 May 2018 21:05:07 +0300 Subject: [PATCH] cellgcm/sys_rsx: fix multiple io maps at the same effective address and vice verse from hw testing, as long as the io address is valid, it returns CELL_OK, even when it doesn't make much sense --- rpcs3/Emu/Memory/Memory.cpp | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/rpcs3/Emu/Memory/Memory.cpp b/rpcs3/Emu/Memory/Memory.cpp index 744f1e924a..9c16ffe98c 100644 --- a/rpcs3/Emu/Memory/Memory.cpp +++ b/rpcs3/Emu/Memory/Memory.cpp @@ -51,17 +51,6 @@ bool VirtualMemoryBlock::Map(u32 realaddr, u32 size, u32 addr) return false; } - for (u32 i = 0; i= m_mapped_memory[i].addr && addr + size - 1 <= m_mapped_memory[i].addr + m_mapped_memory[i].size - 1) - { - // it seems mapping another range inside a previous one is legit on ps3 - // as long as it's coherent aliasing : offset from EA must match IO offset - // example game using this pattern : BCES01584 - the last of us - return (addr - m_mapped_memory[i].addr) == (realaddr - m_mapped_memory[i].realAddress); - } - } - m_mapped_memory.emplace_back(addr, realaddr, size); return true; }