util: Expose addr config mechanisms in the gem5 op java wrapper.
authorGabe Black <gabe.black@gmail.com>
Fri, 23 Oct 2020 03:01:08 +0000 (20:01 -0700)
committerGabe Black <gabe.black@gmail.com>
Mon, 21 Dec 2020 23:47:51 +0000 (23:47 +0000)
commit3fa1ce6d7289efb485c8d69fe33fd2c47a9f6cfe
treea0beda8b62165f7071e67ca3ae3a03687c46f8b1
parentc3f882f90540883782e6742c03707b96511805d3
util: Expose addr config mechanisms in the gem5 op java wrapper.

These allow you to set the target physical address, and map or unmap the
region of physical memory. This is not automatic for two reasons. First,
the address needs to be configured before the mapping is done, and
there's no way to ensure that ordering when everything is handled
automatically. Second, if the user isn't going to use the address based
mechanism, then the mapping and access to /dev/mem isn't necessary and
may prevent using the other call types.

Change-Id: I0f9c32d6bfa402ba59ea1bf5672fb7f11003568d
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/28184
Reviewed-by: Gabe Black <gabe.black@gmail.com>
Maintainer: Bobby R. Bruce <bbruce@ucdavis.edu>
Tested-by: kokoro <noreply+kokoro@google.com>
util/m5/README.md
util/m5/src/java/gem5/Ops.java
util/m5/src/java/gem5/ops.cc