syscall_emul: expand AuxVector class
authorBrandon Potter <brandon.potter@amd.com>
Fri, 4 May 2018 21:55:24 +0000 (17:55 -0400)
committerAnthony Gutierrez <anthony.gutierrez@amd.com>
Wed, 19 Sep 2018 20:51:17 +0000 (20:51 +0000)
commit194d650536cb49c374efdb1fe0473b3eec5dea1e
tree38ca6c67b838f539d4e75dc05bd321f9e859091a
parentc428c220fd351626e2ee0005dda696940261793b
syscall_emul: expand AuxVector class

The AuxVector class is responsible for holding Process data.
The data that it holds is normally setup by an OS kernel in
the process address space. The purpose behind doing this is
to pass in information that the process will need for various
reasons. (Check out the enum in the header file for an idea of
what the AuxVector holds.)

The AuxVector struct was changed into a class and encapsulation
methods were added to protect access to the member variables.

The host ISA may have a different endianness than the simulated
ISA. Since data is passed between the process address space and
the simulator for auxiliary vectors, we need to worry about
maintaining endianness for the right context.

Change-Id: I32c5ac4b679559886e1efeb4b5483b92dfc94af9
Reviewed-on: https://gem5-review.googlesource.com/12109
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Maintainer: Anthony Gutierrez <anthony.gutierrez@amd.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/aux_vector.cc
src/sim/aux_vector.hh