mem, sim-se: Fixed seg-fault in EmulationPageTable::remap
authorRico Amslinger <rico.amslinger@informatik.uni-augsburg.de>
Tue, 13 Feb 2018 14:34:43 +0000 (15:34 +0100)
committerRico Amslinger <rico.amslinger@informatik.uni-augsburg.de>
Wed, 14 Feb 2018 09:52:38 +0000 (09:52 +0000)
commit8da5e6b8b6fc1665edefffdf36c0aa7b9d53370d
tree3e452b4d6b3072152bc181fdeeef29f57d168b8c
parent4e13495f5d8e1e98609fd67b9b29c67eaeb753fc
mem, sim-se: Fixed seg-fault in EmulationPageTable::remap

When moving a memory region the target region should be unmapped.
The assertion does reflect this, but the following line accesses
the invalid pointer regardless. This commit replaces the pointer
access with an emplace.

Change-Id: I85f9be4e6c223eab447c75043e593ed3f90017e1
Reviewed-on: https://gem5-review.googlesource.com/8261
Reviewed-by: Gabe Black <gabeblack@google.com>
Reviewed-by: Brandon Potter <Brandon.Potter@amd.com>
Maintainer: Gabe Black <gabeblack@google.com>
src/mem/page_table.cc