Skip to content

Commit

Permalink
Merge pull request dolphin-emu#11290 from AdmiralCurtiss/phys-mem-reg…
Browse files Browse the repository at this point in the history
…ion-init

Memmap: Fix initialization of PhysicalMemoryRegion.
  • Loading branch information
JosJuice authored Nov 18, 2022
2 parents f1c9774 + 5d03577 commit c8705f0
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions Source/Core/Core/HW/Memmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,14 @@ void Init()
s_exram_size = MathUtil::NextPowerOf2(GetExRamSizeReal());
s_exram_mask = GetExRamSize() - 1;

s_physical_regions[0] = {&m_pRAM, 0x00000000, GetRamSize(), PhysicalMemoryRegion::ALWAYS, false};
s_physical_regions[1] = {&m_pL1Cache, 0xE0000000, GetL1CacheSize(), PhysicalMemoryRegion::ALWAYS,
false};
s_physical_regions[2] = {&m_pFakeVMEM, 0x7E000000, GetFakeVMemSize(),
PhysicalMemoryRegion::FAKE_VMEM, false};
s_physical_regions[3] = {&m_pEXRAM, 0x10000000, GetExRamSize(), PhysicalMemoryRegion::WII_ONLY,
false};
s_physical_regions[0] = PhysicalMemoryRegion{
&m_pRAM, 0x00000000, GetRamSize(), PhysicalMemoryRegion::ALWAYS, 0, false};
s_physical_regions[1] = PhysicalMemoryRegion{
&m_pL1Cache, 0xE0000000, GetL1CacheSize(), PhysicalMemoryRegion::ALWAYS, 0, false};
s_physical_regions[2] = PhysicalMemoryRegion{
&m_pFakeVMEM, 0x7E000000, GetFakeVMemSize(), PhysicalMemoryRegion::FAKE_VMEM, 0, false};
s_physical_regions[3] = PhysicalMemoryRegion{
&m_pEXRAM, 0x10000000, GetExRamSize(), PhysicalMemoryRegion::WII_ONLY, 0, false};

const bool wii = SConfig::GetInstance().bWii;
const bool mmu = Core::System::GetInstance().IsMMUMode();
Expand Down

0 comments on commit c8705f0

Please sign in to comment.