mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-04-21 12:04:45 +00:00
core/memory: Remove unneeded size alignment
This commit is contained in:
parent
be1994f109
commit
a6b3ecca89
1 changed files with 0 additions and 3 deletions
|
@ -53,9 +53,6 @@ PAddr MemoryManager::Allocate(PAddr search_start, PAddr search_end, size_t size,
|
|||
PAddr free_addr = dmem_area->second.base;
|
||||
free_addr = alignment > 0 ? Common::AlignUp(free_addr, alignment) : free_addr;
|
||||
|
||||
// Align size
|
||||
size = alignment > 0 ? Common::AlignUp(size, alignment) : size;
|
||||
|
||||
// Add the allocated region to the list and commit its pages.
|
||||
auto& area = CarveDmemArea(free_addr, size)->second;
|
||||
area.memory_type = memory_type;
|
||||
|
|
Loading…
Add table
Reference in a new issue