Browse Source
[core/memory] erase irregular mapping after use
pull/4181/head
Exverge
1 week ago
No known key found for this signature in database
GPG Key ID: DAD399BCC5FB77E4
1 changed files with
1 additions and
0 deletions
-
src/core/memory.cpp
|
|
@ -610,6 +610,7 @@ struct Memory::Impl { |
|
|
LOG_WARNING(HW_Memory, "Mapping irregular address; {:#x} points to {:#x} instead of {:#x}", |
|
|
LOG_WARNING(HW_Memory, "Mapping irregular address; {:#x} points to {:#x} instead of {:#x}", |
|
|
base << YUZU_PAGEBITS, iter->second << YUZU_PAGEBITS, GetInteger(target)); |
|
|
base << YUZU_PAGEBITS, iter->second << YUZU_PAGEBITS, GetInteger(target)); |
|
|
target_paddr = iter->second << YUZU_PAGEBITS; |
|
|
target_paddr = iter->second << YUZU_PAGEBITS; |
|
|
|
|
|
extra_mappings.erase(iter); |
|
|
} |
|
|
} |
|
|
auto host_ptr = uintptr_t(system.DeviceMemory().GetPointer<u8>(target_paddr)) - (base << YUZU_PAGEBITS); |
|
|
auto host_ptr = uintptr_t(system.DeviceMemory().GetPointer<u8>(target_paddr)) - (base << YUZU_PAGEBITS); |
|
|
auto& entry = page_table.entries.GetUnchecked(base); |
|
|
auto& entry = page_table.entries.GetUnchecked(base); |
|
|
|