diff options
author | bunnei <bunneidev@gmail.com> | 2018-03-22 23:02:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-22 23:02:51 +0100 |
commit | 4daf91fc691f9a0cb61d7cec89cc6b00ac707e25 (patch) | |
tree | bd7283504909f451ab1a879dbc1f3b87008b2318 /src/core/memory.cpp | |
parent | Merge pull request #261 from mailwl/spl (diff) | |
parent | Remove more N3DS References (diff) | |
download | yuzu-4daf91fc691f9a0cb61d7cec89cc6b00ac707e25.tar yuzu-4daf91fc691f9a0cb61d7cec89cc6b00ac707e25.tar.gz yuzu-4daf91fc691f9a0cb61d7cec89cc6b00ac707e25.tar.bz2 yuzu-4daf91fc691f9a0cb61d7cec89cc6b00ac707e25.tar.lz yuzu-4daf91fc691f9a0cb61d7cec89cc6b00ac707e25.tar.xz yuzu-4daf91fc691f9a0cb61d7cec89cc6b00ac707e25.tar.zst yuzu-4daf91fc691f9a0cb61d7cec89cc6b00ac707e25.zip |
Diffstat (limited to 'src/core/memory.cpp')
-rw-r--r-- | src/core/memory.cpp | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 4e34d8334..a9beccb95 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -23,7 +23,6 @@ namespace Memory { static std::array<u8, Memory::VRAM_SIZE> vram; -static std::array<u8, Memory::N3DS_EXTRA_RAM_SIZE> n3ds_extra_ram; static PageTable* current_page_table = nullptr; @@ -244,7 +243,6 @@ u8* GetPhysicalPointer(PAddr address) { {IO_AREA_PADDR, IO_AREA_SIZE}, {DSP_RAM_PADDR, DSP_RAM_SIZE}, {FCRAM_PADDR, FCRAM_N3DS_SIZE}, - {N3DS_EXTRA_RAM_PADDR, N3DS_EXTRA_RAM_SIZE}, }; const auto area = @@ -283,9 +281,6 @@ u8* GetPhysicalPointer(PAddr address) { } ASSERT_MSG(target_pointer != nullptr, "Invalid FCRAM address"); break; - case N3DS_EXTRA_RAM_PADDR: - target_pointer = n3ds_extra_ram.data() + offset_into_region; - break; default: UNREACHABLE(); } @@ -609,8 +604,6 @@ boost::optional<PAddr> TryVirtualToPhysicalAddress(const VAddr addr) { return addr - DSP_RAM_VADDR + DSP_RAM_PADDR; } else if (addr >= IO_AREA_VADDR && addr < IO_AREA_VADDR_END) { return addr - IO_AREA_VADDR + IO_AREA_PADDR; - } else if (addr >= N3DS_EXTRA_RAM_VADDR && addr < N3DS_EXTRA_RAM_VADDR_END) { - return addr - N3DS_EXTRA_RAM_VADDR + N3DS_EXTRA_RAM_PADDR; } return boost::none; @@ -637,8 +630,6 @@ boost::optional<VAddr> PhysicalToVirtualAddress(const PAddr addr) { return addr - DSP_RAM_PADDR + DSP_RAM_VADDR; } else if (addr >= IO_AREA_PADDR && addr < IO_AREA_PADDR_END) { return addr - IO_AREA_PADDR + IO_AREA_VADDR; - } else if (addr >= N3DS_EXTRA_RAM_PADDR && addr < N3DS_EXTRA_RAM_PADDR_END) { - return addr - N3DS_EXTRA_RAM_PADDR + N3DS_EXTRA_RAM_VADDR; } return boost::none; |