mirror of
https://github.com/wheremyfoodat/Panda3DS.git
synced 2025-09-04 08:35:47 +00:00
Clean up fastmem code
This commit is contained in:
parent
94dbbf962d
commit
639083df6c
1 changed files with 1 additions and 10 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue