Merge pull request #263 from N00byKing/non3ds
Remove more N3DS References
This commit is contained in:
commit
4daf91fc69
2 changed files with 0 additions and 20 deletions
|
@ -23,7 +23,6 @@
|
||||||
namespace Memory {
|
namespace Memory {
|
||||||
|
|
||||||
static std::array<u8, Memory::VRAM_SIZE> vram;
|
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;
|
static PageTable* current_page_table = nullptr;
|
||||||
|
|
||||||
|
@ -244,7 +243,6 @@ u8* GetPhysicalPointer(PAddr address) {
|
||||||
{IO_AREA_PADDR, IO_AREA_SIZE},
|
{IO_AREA_PADDR, IO_AREA_SIZE},
|
||||||
{DSP_RAM_PADDR, DSP_RAM_SIZE},
|
{DSP_RAM_PADDR, DSP_RAM_SIZE},
|
||||||
{FCRAM_PADDR, FCRAM_N3DS_SIZE},
|
{FCRAM_PADDR, FCRAM_N3DS_SIZE},
|
||||||
{N3DS_EXTRA_RAM_PADDR, N3DS_EXTRA_RAM_SIZE},
|
|
||||||
};
|
};
|
||||||
|
|
||||||
const auto area =
|
const auto area =
|
||||||
|
@ -283,9 +281,6 @@ u8* GetPhysicalPointer(PAddr address) {
|
||||||
}
|
}
|
||||||
ASSERT_MSG(target_pointer != nullptr, "Invalid FCRAM address");
|
ASSERT_MSG(target_pointer != nullptr, "Invalid FCRAM address");
|
||||||
break;
|
break;
|
||||||
case N3DS_EXTRA_RAM_PADDR:
|
|
||||||
target_pointer = n3ds_extra_ram.data() + offset_into_region;
|
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
UNREACHABLE();
|
UNREACHABLE();
|
||||||
}
|
}
|
||||||
|
@ -609,8 +604,6 @@ boost::optional<PAddr> TryVirtualToPhysicalAddress(const VAddr addr) {
|
||||||
return addr - DSP_RAM_VADDR + DSP_RAM_PADDR;
|
return addr - DSP_RAM_VADDR + DSP_RAM_PADDR;
|
||||||
} else if (addr >= IO_AREA_VADDR && addr < IO_AREA_VADDR_END) {
|
} else if (addr >= IO_AREA_VADDR && addr < IO_AREA_VADDR_END) {
|
||||||
return addr - IO_AREA_VADDR + IO_AREA_PADDR;
|
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;
|
return boost::none;
|
||||||
|
@ -637,8 +630,6 @@ boost::optional<VAddr> PhysicalToVirtualAddress(const PAddr addr) {
|
||||||
return addr - DSP_RAM_PADDR + DSP_RAM_VADDR;
|
return addr - DSP_RAM_PADDR + DSP_RAM_VADDR;
|
||||||
} else if (addr >= IO_AREA_PADDR && addr < IO_AREA_PADDR_END) {
|
} else if (addr >= IO_AREA_PADDR && addr < IO_AREA_PADDR_END) {
|
||||||
return addr - IO_AREA_PADDR + IO_AREA_VADDR;
|
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;
|
return boost::none;
|
||||||
|
|
|
@ -98,12 +98,6 @@ enum : PAddr {
|
||||||
VRAM_SIZE = 0x00600000, ///< VRAM size (6MB)
|
VRAM_SIZE = 0x00600000, ///< VRAM size (6MB)
|
||||||
VRAM_PADDR_END = VRAM_PADDR + VRAM_SIZE,
|
VRAM_PADDR_END = VRAM_PADDR + VRAM_SIZE,
|
||||||
|
|
||||||
/// New 3DS additional memory. Supposedly faster than regular FCRAM. Part of it can be used by
|
|
||||||
/// applications and system modules if mapped via the ExHeader.
|
|
||||||
N3DS_EXTRA_RAM_PADDR = 0x1F000000,
|
|
||||||
N3DS_EXTRA_RAM_SIZE = 0x00400000, ///< New 3DS additional memory size (4MB)
|
|
||||||
N3DS_EXTRA_RAM_PADDR_END = N3DS_EXTRA_RAM_PADDR + N3DS_EXTRA_RAM_SIZE,
|
|
||||||
|
|
||||||
/// DSP memory
|
/// DSP memory
|
||||||
DSP_RAM_PADDR = 0x1FF00000,
|
DSP_RAM_PADDR = 0x1FF00000,
|
||||||
DSP_RAM_SIZE = 0x00080000, ///< DSP memory size (512KB)
|
DSP_RAM_SIZE = 0x00080000, ///< DSP memory size (512KB)
|
||||||
|
@ -119,7 +113,6 @@ enum : PAddr {
|
||||||
FCRAM_SIZE = 0x08000000, ///< FCRAM size on the Old 3DS (128MB)
|
FCRAM_SIZE = 0x08000000, ///< FCRAM size on the Old 3DS (128MB)
|
||||||
FCRAM_N3DS_SIZE = 0x10000000, ///< FCRAM size on the New 3DS (256MB)
|
FCRAM_N3DS_SIZE = 0x10000000, ///< FCRAM size on the New 3DS (256MB)
|
||||||
FCRAM_PADDR_END = FCRAM_PADDR + FCRAM_SIZE,
|
FCRAM_PADDR_END = FCRAM_PADDR + FCRAM_SIZE,
|
||||||
FCRAM_N3DS_PADDR_END = FCRAM_PADDR + FCRAM_N3DS_SIZE,
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/// Virtual user-space memory regions
|
/// Virtual user-space memory regions
|
||||||
|
@ -135,10 +128,6 @@ enum : VAddr {
|
||||||
LINEAR_HEAP_SIZE = 0x08000000,
|
LINEAR_HEAP_SIZE = 0x08000000,
|
||||||
LINEAR_HEAP_VADDR_END = LINEAR_HEAP_VADDR + LINEAR_HEAP_SIZE,
|
LINEAR_HEAP_VADDR_END = LINEAR_HEAP_VADDR + LINEAR_HEAP_SIZE,
|
||||||
|
|
||||||
/// Maps 1:1 to New 3DS additional memory
|
|
||||||
N3DS_EXTRA_RAM_VADDR = 0x1E800000,
|
|
||||||
N3DS_EXTRA_RAM_VADDR_END = N3DS_EXTRA_RAM_VADDR + N3DS_EXTRA_RAM_SIZE,
|
|
||||||
|
|
||||||
/// Maps 1:1 to the IO register area.
|
/// Maps 1:1 to the IO register area.
|
||||||
IO_AREA_VADDR = 0x1EC00000,
|
IO_AREA_VADDR = 0x1EC00000,
|
||||||
IO_AREA_VADDR_END = IO_AREA_VADDR + IO_AREA_SIZE,
|
IO_AREA_VADDR_END = IO_AREA_VADDR + IO_AREA_SIZE,
|
||||||
|
|
Loading…
Reference in a new issue