mirror of
https://github.com/momo5502/emulator.git
synced 2026-01-21 20:53:56 +00:00
Page align up region to be freed
This commit is contained in:
@@ -395,6 +395,8 @@ bool memory_manager::release_memory(const uint64_t address, size_t size)
|
||||
size = entry->second.length;
|
||||
}
|
||||
|
||||
size = page_align_up(size);
|
||||
|
||||
if (size > entry->second.length)
|
||||
{
|
||||
throw std::runtime_error("Cross region release not supported yet!");
|
||||
|
||||
Reference in New Issue
Block a user