Clean up fastmem code

This commit is contained in:
wheremyfoodat 2025-08-03 17:07:11 +03:00
commit 639083df6c

View file

@ -390,16 +390,7 @@ void Memory::mapPhysicalMemory(u32 vaddr, u32 paddr, s32 pages, bool r, bool w,
hostPtr = fcram + paddr; // FIXME: FCRAM doesn't actually start from physical address 0, but from 0x20000000
if (useFastmem) {
Common::MemoryPermission perms = Common::MemoryPermission::Read;
if (w) {
perms |= Common::MemoryPermission::Write;
}
if (x) {
// perms |= Common::MemoryPermission::Execute;
}
arena->Map(vaddr, FASTMEM_FCRAM_OFFSET + paddr, usize(pages) * pageSize, perms, false);
addFastmemView(vaddr, FASTMEM_FCRAM_OFFSET, usize(pages) * pageSize, w);
}
} else if (paddr >= VirtualAddrs::DSPMemStart && paddr < VirtualAddrs::DSPMemStart + DSP_RAM_SIZE) {
hostPtr = dspRam + (paddr - VirtualAddrs::DSPMemStart);