mem, arm: Replace the pointer type in PortProxy with void *.
authorGabe Black <gabeblack@google.com>
Thu, 2 May 2019 03:12:05 +0000 (20:12 -0700)
committerGabe Black <gabeblack@google.com>
Wed, 29 May 2019 04:23:37 +0000 (04:23 +0000)
commitd7c4cad240fd4f378d7362da5e9e44b9f0dd80d3
treeca7d39cefd3df3ce87cbc6588a391faab03957f9
parent6a69fc18e743006db013797531d9ebcdb352a88d
mem, arm: Replace the pointer type in PortProxy with void *.

The void * type is for pointers which point to an unknown type. We
should use that when handling anonymous buffers in the PortProxy
functions, instead of uint8_t * which points to bytes.

Importantly, C/C++ doesn't require you to do any casting to turn an
arbitrary pointer type into a void *. This will get rid of lots of
tedious, verbose casting throughout the code base.

Change-Id: Id1adecc283c866d8e24524efd64f37b079088bd9
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18571
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Jason Lowe-Power <jason@lowepower.com>
src/mem/fs_translating_port_proxy.cc
src/mem/fs_translating_port_proxy.hh
src/mem/port_proxy.cc
src/mem/port_proxy.hh
src/mem/se_translating_port_proxy.cc
src/mem/se_translating_port_proxy.hh
src/mem/secure_port_proxy.cc
src/mem/secure_port_proxy.hh