linux-user/mmap.c: Use end instead of real_end in target_mmap
commit530c003252e07f1ea9df7f8a9adb1082d3a2eb08
authorChen Gang <chengang@emindsoft.com.cn>
Thu, 24 Dec 2015 01:07:33 +0000 (24 09:07 +0800)
committerRiku Voipio <riku.voipio@linaro.org>
Mon, 11 Jan 2016 13:01:47 +0000 (11 15:01 +0200)
treed54b2c9bdbfa38b7fee10d62809fc49947160d3d
parent5a53dc5042d9250f2011e54cd065ed360e34d2ac
linux-user/mmap.c: Use end instead of real_end in target_mmap

The fragment must effectively be mapped only to "end" not to "real_end"
(which is a host page aligned address, and thus this is not a fragment).
It is consistent with what it is done in the case of one single page.

Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com>
Reviewed-by: Laurent Vivier <laurent@vivier.eu>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
linux-user/mmap.c