sim: Fixes for mremap
authorMatthew Poremba <matthew.poremba@amd.com>
Tue, 12 May 2020 14:56:07 +0000 (09:56 -0500)
committerMatthew Poremba <matthew.poremba@amd.com>
Thu, 14 May 2020 00:29:17 +0000 (00:29 +0000)
commitfae00cb1755a80252f61f43551ef74f080dca7ec
tree3f260c98073948f673c30015967fc6d573bdeef6
parent9957d71bf4b5f7893923d4dbe389db9a1317104c
sim: Fixes for mremap

Remapping memory was trying to map old pages to the same new page and
calling MemState mapRegion unnecessarily. Properly increment the new
page address and remove the redundant mapRegion as remapRegion covers
its functionality.

JIRA: https://gem5.atlassian.net/browse/GEM5-475
Change-Id: Ie360755cfe488b09cbd87cd0ce525b11ac446b51
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28948
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/sim/mem_state.cc
src/sim/syscall_emul.hh