aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--linux-user/syscall.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index 9ee7352..6cad6d9 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -308,7 +308,7 @@ static target_ulong target_original_brk;
void target_set_brk(target_ulong new_brk)
{
- target_original_brk = target_brk = new_brk;
+ target_original_brk = target_brk = HOST_PAGE_ALIGN(new_brk);
}
long do_brk(target_ulong new_brk)