util: Make the device file name used by map_m5_mem overridable.
authorGabe Black <gabeblack@google.com>
Sun, 5 Apr 2020 09:39:33 +0000 (02:39 -0700)
committerGabe Black <gabeblack@google.com>
Fri, 24 Jul 2020 03:59:41 +0000 (03:59 +0000)
commite3dd8d6114ca49101905002ccb2a1a4836171917
treea7a5e6a5e2d15145792584c7c8c92c799ee34276
parentcafaccc9d12f0f456f8b2fd9963850b7b373975a
util: Make the device file name used by map_m5_mem overridable.

The name this function uses is now exposed as a global variable called
m5_mmap_dev which can be changed at run time.

This would be useful if using a non-standard location for /dev/mem, or
for testing where we might want to use a totally different device.

Change-Id: I5e7ac106c3e4e0555c99af2a7a0aca8171534451
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/27556
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Reviewed-by: Pouya Fotouhi <pfotouhi@ucdavis.edu>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
util/m5/src/m5_mmap.c
util/m5/src/m5_mmap.h