sim-se: Fix mremap for downward growing mmap regions
authorRico Amslinger <rico.amslinger@informatik.uni-augsburg.de>
Mon, 18 Sep 2017 11:44:06 +0000 (13:44 +0200)
committerRico Amslinger <rico.amslinger@informatik.uni-augsburg.de>
Thu, 28 Sep 2017 07:55:18 +0000 (07:55 +0000)
commit1ff5e31e53cc1f6ae27285a456f380327dc09a0b
treea49ccb6d07ee53214b00da76881721e1bef17537
parent0b77e05cb21ad946f12b67cf3336ba92b2a1a522
sim-se: Fix mremap for downward growing mmap regions

mremapFunc(...) did not respect Process::mmapGrowsDown(). This resulted
in an attempt to remap into an already allocated region and a panic in
FuncPageTable::allocate(...). This behavior can be observed in
435.gromacs.

Change-Id: Ib3ad33816126c76506d69679bdcefa7a98ef69f9
Reviewed-on: https://gem5-review.googlesource.com/4700
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Brandon Potter <Brandon.Potter@amd.com>
src/sim/syscall_emul.hh