mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-25 11:34:55 +00:00
Merge dmem areas
This commit is contained in:
parent
e2b726382e
commit
324c9f1bf0
@ -222,6 +222,7 @@ PAddr MemoryManager::Allocate(PAddr search_start, PAddr search_end, size_t size,
|
|||||||
auto& area = CarveDmemArea(mapping_start, size)->second;
|
auto& area = CarveDmemArea(mapping_start, size)->second;
|
||||||
area.memory_type = memory_type;
|
area.memory_type = memory_type;
|
||||||
area.is_free = false;
|
area.is_free = false;
|
||||||
|
MergeAdjacent(dmem_map, dmem_area);
|
||||||
return mapping_start;
|
return mapping_start;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user