arch, sim: Simplify the AuxVector type.
authorGabe Black <gabeblack@google.com>
Thu, 25 Apr 2019 03:11:23 +0000 (20:11 -0700)
committerGabe Black <gabeblack@google.com>
Sun, 28 Apr 2019 05:16:01 +0000 (05:16 +0000)
commit9305bb6e83d57fde96c78e7b11d50914935f57d5
treef904a16c6e20a53d1e930a9e5dbb7b14c69aa990
parentfce9c7a26f8c8a29d51c319c876a7bf0a32404a7
arch, sim: Simplify the AuxVector type.

The AuxVector type has a bunch of accessors which just give access to
the underlying variables through references. We might as well just make
those members accessible directly.

Also, the AuxVector doesn't need to handle endianness flips itself. We
can tell the byteswap mechanism how to flip an AuxVector, and let it
handle that for us.

This gets rid of the entire .cc file which was complicated by trying
to both hide the ISA specific endianness translations, and instantiate
templated functions in a .cc.

Change-Id: I433cd61e73e0b067b6d628fba31be4a4ec1c4cf0
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/18373
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Andreas Sandberg <andreas.sandberg@arm.com>
src/arch/alpha/process.cc
src/arch/arm/process.cc
src/arch/mips/process.cc
src/arch/power/process.cc
src/arch/riscv/process.cc
src/arch/sparc/process.cc
src/arch/x86/process.cc
src/sim/SConscript
src/sim/aux_vector.cc [deleted file]
src/sim/aux_vector.hh