From 4b784576d971186131d0366f6d8437087ed6ce34 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Tue, 2 Mar 2021 18:21:30 +0100 Subject: [PATCH] Core/Memmap: Don't try to map logical memory from inactive physical regions. --- Source/Core/Core/HW/Memmap.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Source/Core/Core/HW/Memmap.cpp b/Source/Core/Core/HW/Memmap.cpp index e1f5e0bb16..d56539e7c8 100644 --- a/Source/Core/Core/HW/Memmap.cpp +++ b/Source/Core/Core/HW/Memmap.cpp @@ -368,6 +368,9 @@ void UpdateLogicalMemory(const PowerPC::BatTable& dbat_table) u32 translated_address = dbat_table[i] & PowerPC::BAT_RESULT_MASK; for (const auto& physical_region : s_physical_regions) { + if (!physical_region.active) + continue; + u32 mapping_address = physical_region.physical_address; u32 mapping_end = mapping_address + physical_region.size; u32 intersection_start = std::max(mapping_address, translated_address);