mem: Encapsulate mapping gem5 to host address space
authorDaniel R. Carvalho <odanrc@yahoo.com.br>
Wed, 16 Oct 2019 12:38:04 +0000 (14:38 +0200)
committerDaniel Carvalho <odanrc@yahoo.com.br>
Thu, 12 Dec 2019 14:43:09 +0000 (14:43 +0000)
commit05156e673095de0ab296166e6508494fa6e21bf9
treebcd61502e6ec5db4c862994683d55750b16286c7
parenta87a3e4fad3bc83cb42f4896404dbd65fd3a0d73
mem: Encapsulate mapping gem5 to host address space

Create a function to encapsulate mapping an address in gem5's
address space to the host's address space. The returned value can
be used to access the contents of the given address.

As a side effect, make the local variable hostAddr use snake_case
to comply with gem5's coding style.

Change-Id: I2445d3ab4c7ce5746182b307c26cbafc68aa139c
Signed-off-by: Daniel R. Carvalho <odanrc@yahoo.com.br>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/22610
Reviewed-by: Nikos Nikoleris <nikos.nikoleris@arm.com>
Maintainer: Nikos Nikoleris <nikos.nikoleris@arm.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/abstract_mem.cc
src/mem/abstract_mem.hh