mirror of
https://github.com/utmapp/qemu.git
synced 2026-12-02 06:32:54 -10:00
linux-user: Make sure initial brk(0) is page-aligned
Fixes: 86f04735ac ("linux-user: Fix brk() to release pages")
Signed-off-by: Andreas Schwab <[email protected]>
Message-Id: <[email protected]>
Reviewed-by: Richard Henderson <[email protected]>
Signed-off-by: Richard Henderson <[email protected]>
This commit is contained in:
1 parent
e18ed26ce7
commit
d28b3c90cf
1 file changed
+1
-1
@@ -806,7 +806,7 @@ static abi_ulong brk_page;
|
||||
|
||||
void target_set_brk(abi_ulong new_brk)
|
||||
{
|
||||
target_brk = new_brk;
|
||||
target_brk = TARGET_PAGE_ALIGN(new_brk);
|
||||
brk_page = HOST_PAGE_ALIGN(target_brk);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user