This reverts commit d28b3c90cfad1a7e211ae2bce36ecb9071086129.

It just hides the real bug, and even the Linux kernel may
return page-unaligned addresses.

Signed-off-by: Helge Deller <del...@gmx.de>
Tested-by: Markus F.X.J. Oberhumer <notificati...@github.com>
---
 linux-user/syscall.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/linux-user/syscall.c b/linux-user/syscall.c
index c99ef9c01e..b9527ab00f 100644
--- a/linux-user/syscall.c
+++ b/linux-user/syscall.c
@@ -806,7 +806,7 @@ static abi_ulong brk_page;

 void target_set_brk(abi_ulong new_brk)
 {
-    target_brk = TARGET_PAGE_ALIGN(new_brk);
+    target_brk = new_brk;
     brk_page = HOST_PAGE_ALIGN(target_brk);
 }

--
2.41.0


Reply via email to