Commit 4c1de73d15a31336366d9d38249611956a4e2803

Authored by blueswir1
1 parent 33b37802

Page align brk result like real Linux


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3048 c046a42c-6fe2-441c-8c8c-71466251a162
Showing 1 changed file with 1 additions and 1 deletions
linux-user/syscall.c
... ... @@ -308,7 +308,7 @@ static target_ulong target_original_brk;
308 308  
309 309 void target_set_brk(target_ulong new_brk)
310 310 {
311   - target_original_brk = target_brk = new_brk;
  311 + target_original_brk = target_brk = HOST_PAGE_ALIGN(new_brk);
312 312 }
313 313  
314 314 long do_brk(target_ulong new_brk)
... ...