mem: Support initializing a memory with an image file.
authorGabe Black <gabeblack@google.com>
Sun, 29 Mar 2020 10:14:50 +0000 (03:14 -0700)
committerGabe Black <gabeblack@google.com>
Thu, 16 Apr 2020 23:43:08 +0000 (23:43 +0000)
commit0172089203592037f99fc89126285896c73e6a60
tree922832e1f8f5b35c1eef8fae07d6b74a29533847
parent3ec5c718758921ff80b2bb0e5b0849d4f618c839
mem: Support initializing a memory with an image file.

This is particularly useful for ROMs. It avoids forcing other components
of the simulation (the System object, the Workload object) from having
to know what ROMs exist, where they are, and what goes on them, and
leaves that to the config script.

Change-Id: Ibbcffffcb82e0d289f0b3942728c30b8f69d28ba
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27267
Reviewed-by: Gabe Black <gabeblack@google.com>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: Gem5 Cloud Project GCB service account <345032938727@cloudbuild.gserviceaccount.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/AbstractMemory.py
src/mem/abstract_mem.cc
src/mem/abstract_mem.hh