aboutsummaryrefslogtreecommitdiff
path: root/linux-user
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-07 20:45:44 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-07-07 20:45:44 +0000
commit4c1de73d15a31336366d9d38249611956a4e2803 (patch)
tree84043c2fc1ba0836a24a3d659d5f3647b2ae2c19 /linux-user
parent33b3780262ce300ea5fdd16a62a7661455af05f1 (diff)
Page align brk result like real Linux
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3048 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user')
-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 9ee7352313..6cad6d92f4 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)