mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-10 16:19:28 +01:00
Core/Memmap: Don't try to map logical memory from inactive physical regions.
This commit is contained in:
parent
8199825c6f
commit
4b784576d9
@ -368,6 +368,9 @@ void UpdateLogicalMemory(const PowerPC::BatTable& dbat_table)
|
|||||||
u32 translated_address = dbat_table[i] & PowerPC::BAT_RESULT_MASK;
|
u32 translated_address = dbat_table[i] & PowerPC::BAT_RESULT_MASK;
|
||||||
for (const auto& physical_region : s_physical_regions)
|
for (const auto& physical_region : s_physical_regions)
|
||||||
{
|
{
|
||||||
|
if (!physical_region.active)
|
||||||
|
continue;
|
||||||
|
|
||||||
u32 mapping_address = physical_region.physical_address;
|
u32 mapping_address = physical_region.physical_address;
|
||||||
u32 mapping_end = mapping_address + physical_region.size;
|
u32 mapping_end = mapping_address + physical_region.size;
|
||||||
u32 intersection_start = std::max(mapping_address, translated_address);
|
u32 intersection_start = std::max(mapping_address, translated_address);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user