From 882c6a7f782cdab932561717bc944c6fb7de6dd4 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Tue, 27 May 2025 09:19:03 -0500 Subject: [PATCH] Coalesce dmem map Aligns with hardware observations, hopefully shouldn't break anything since nothing should change hardware-wise when release dmem calls and unmap calls are performed? Either that or Windows breaks because Windows, will need to test. --- src/core/memory.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 15a71528b..d3bbdfb97 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -182,6 +182,7 @@ PAddr MemoryManager::Allocate(PAddr search_start, PAddr search_end, size_t size, auto& area = CarveDmemArea(mapping_start, size)->second; area.memory_type = memory_type; area.is_free = false; + MergeAdjacent(dmem_map, dmem_area); return mapping_start; }