diff options
author | Andreas Hansson <andreas.hansson@arm.com> | 2014-02-18 05:51:01 -0500 |
---|---|---|
committer | Andreas Hansson <andreas.hansson@arm.com> | 2014-02-18 05:51:01 -0500 |
commit | 4b81585c495662ca113e436ef7f238fddf7692f4 (patch) | |
tree | 3002f04c4d29af0e94d50f7f431182fd01553109 /build_opts | |
parent | f0ea79c41f6c6b00b976b6fe67ac350a1852022a (diff) | |
download | gem5-4b81585c495662ca113e436ef7f238fddf7692f4.tar.xz |
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.
Diffstat (limited to 'build_opts')
0 files changed, 0 insertions, 0 deletions