mem: Fix bug in PhysicalMemory use of mmap and munmap
mem: Fix bug in PhysicalMemory use of mmap and munmap

This patch fixes a bug in how physical memory used to be mapped and
unmapped. Previously we unmapped and re-mapped if restoring from a
checkpoint. However, we never checked that the new mapping was
actually the same, it was just magically working as the OS seems to
fairly reliably give us the same chunk back. This patch fixes this
issue by relying entirely on the mmap call in the constructor.

briancoutinho0905/2dsampling,rjschof/gem5,gedare/gem5,zlfben/gem5,qizenguf/MLC-STT,qizenguf/MLC-STT,HwisooSo/gemV-update,kaiyuanl/gem5,aclifton/cpeg853-gem5,Weil0ng/gem5,qizenguf/MLC-STT,austinharris/gem5-riscv,qizenguf/MLC-STT,powerjg/gem5-ci-test,markoshorro/gem5,qizenguf/MLC-STT,rjschof/gem5,powerjg/gem5-ci-test,sobercoder/gem5,SanchayanMaity/gem5,aclifton/cpeg853-gem5,aclifton/cpeg853-gem5,TUD-OS/gem5-dtu,HwisooSo/gemV-update,rallylee/gem5,briancoutinho0905/2dsampling,sobercoder/gem5,powerjg/gem5-ci-test,SanchayanMaity/gem5,Weil0ng/gem5,gem5/gem5,SanchayanMaity/gem5,HwisooSo/gemV-update,KuroeKurose/gem5,briancoutinho0905/2dsampling,Weil0ng/gem5,kaiyuanl/gem5,gem5/gem5,powerjg/gem5-ci-test,TUD-OS/gem5-dtu,gedare/gem5,sobercoder/gem5,SanchayanMaity/gem5,powerjg/gem5-ci-test,zlfben/gem5,aclifton/cpeg853-gem5,aclifton/cpeg853-gem5,zlfben/gem5,aclifton/cpeg853-gem5,KuroeKurose/gem5,austinharris/gem5-riscv,markoshorro/gem5,gem5/gem5,KuroeKurose/gem5,TUD-OS/gem5-dtu,sobercoder/gem5,rjschof/gem5,austinharris/gem5-riscv,austinharris/gem5-riscv,HwisooSo/gemV-update,gedare/gem5,cancro7/gem5,cancro7/gem5,SanchayanMaity/gem5,markoshorro/gem5,TUD-OS/gem5-dtu,TUD-OS/gem5-dtu,gem5/gem5,SanchayanMaity/gem5,cancro7/gem5,briancoutinho0905/2dsampling,zlfben/gem5,kaiyuanl/gem5,rallylee/gem5,zlfben/gem5,rjschof/gem5,kaiyuanl/gem5,markoshorro/gem5,KuroeKurose/gem5,kaiyuanl/gem5,sobercoder/gem5,HwisooSo/gemV-update,qizenguf/MLC-STT,rjschof/gem5,Weil0ng/gem5,briancoutinho0905/2dsampling,austinharris/gem5-riscv,markoshorro/gem5,Weil0ng/gem5,cancro7/gem5,Weil0ng/gem5,kaiyuanl/gem5,KuroeKurose/gem5,rallylee/gem5,markoshorro/gem5,sobercoder/gem5,gem5/gem5,sobercoder/gem5,cancro7/gem5,rjschof/gem5,TUD-OS/gem5-dtu,HwisooSo/gemV-update,HwisooSo/gemV-update,KuroeKurose/gem5,rallylee/gem5,rallylee/gem5,zlfben/gem5,gedare/gem5,gem5/gem5,KuroeKurose/gem5,SanchayanMaity/gem5,briancoutinho0905/2dsampling,briancoutinho0905/2dsampling,powerjg/gem5-ci-test,TUD-OS/gem5-dtu,powerjg/gem5-ci-test,austinharris/gem5-riscv,kaiyuanl/gem5,gedare/gem5,qizenguf/MLC-STT,aclifton/cpeg853-gem5,austinharris/gem5-riscv,gedare/gem5,cancro7/gem5,cancro7/gem5,rallylee/gem5,zlfben/gem5,rallylee/gem5,gem5/gem5,gedare/gem5,markoshorro/gem5,rjschof/gem5,Weil0ng/gem5