mem: Optionally share the backing store
authorBoris Shingarov <shingarov@labware.com>
Sun, 8 Mar 2020 16:37:16 +0000 (12:37 -0400)
committerBoris Shingarov <shingarov@gmail.com>
Wed, 8 Jul 2020 17:42:25 +0000 (17:42 +0000)
commitf7e5985e7b592ad5df28a618ec0a8f1acae06bcc
treeee5bf0910530e7d422ff5a1f7994427c5fc78991
parentcc3e12b504c20b3bc78db52059d3f4f9b02dfbe8
mem: Optionally share the backing store

This patch adds the ability for a host-OS process external to gem5
to access the backing store via POSIX shared memory.
The new param shared_backstore of the System object is the filename
of the shared memory (i.e., the first argument to shm_open()).

Change-Id: I98c948a32a15049a4515e6c02a14595fb5fe379f
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/30994
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/mem/physical.cc
src/mem/physical.hh
src/sim/System.py
src/sim/system.cc