syscall_emul: [patch 8/22] refactor process class
authorBrandon Potter <brandon.potter@amd.com>
Wed, 9 Nov 2016 20:27:41 +0000 (14:27 -0600)
committerBrandon Potter <brandon.potter@amd.com>
Wed, 9 Nov 2016 20:27:41 +0000 (14:27 -0600)
commit49009f170a631eea259dc031b3ce4593f8783d19
tree3a424b1a3aa32e067a7d008dd7f4c85524bd2b44
parentea8461885ffffa0933cedeb9143a9b01be4c70f0
syscall_emul: [patch 8/22] refactor process class

Moves aux_vector into its own .hh and .cc files just to get it out of the
already crowded Process files. Arguably, it could stay there, but it's
probably better just to move it and give it files.

The changeset looks ugly around the Process header file, but the goal here is
to move methods and members around so that they're not defined randomly
throughout the entire header file. I expect this is likely one of the reasons
why I several unused variables related to this class. So, the methods are
declared first followed by members. I've tried to aggregate them together
so that similar entries reside near one another.

There are other changes coming to this code so this is by no means the
final product.
13 files changed:
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/arch/x86/process.hh
src/sim/SConscript
src/sim/aux_vector.cc [new file with mode: 0644]
src/sim/aux_vector.hh [new file with mode: 0644]
src/sim/process.cc
src/sim/process.hh