Searched hist:10070 (Results 1 - 1 of 1) sorted by relevance

/gem5/src/mem/
H A Dphysical.cc10070:83957204d43b Tue Feb 18 05:51:00 EST 2014 Andreas Hansson <andreas.hansson@arm.com> 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.

Completed in 24 milliseconds