diff options
author | Brandon Potter <brandon.potter@amd.com> | 2016-11-09 14:27:41 -0600 |
---|---|---|
committer | Brandon Potter <brandon.potter@amd.com> | 2016-11-09 14:27:41 -0600 |
commit | 49009f170a631eea259dc031b3ce4593f8783d19 (patch) | |
tree | 3a424b1a3aa32e067a7d008dd7f4c85524bd2b44 /src/arch | |
parent | ea8461885ffffa0933cedeb9143a9b01be4c70f0 (diff) | |
download | gem5-49009f170a631eea259dc031b3ce4593f8783d19.tar.xz |
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.
Diffstat (limited to 'src/arch')
-rw-r--r-- | src/arch/alpha/process.cc | 1 | ||||
-rw-r--r-- | src/arch/arm/process.cc | 1 | ||||
-rw-r--r-- | src/arch/mips/process.cc | 1 | ||||
-rw-r--r-- | src/arch/power/process.cc | 1 | ||||
-rw-r--r-- | src/arch/riscv/process.cc | 1 | ||||
-rw-r--r-- | src/arch/sparc/process.cc | 1 | ||||
-rw-r--r-- | src/arch/x86/process.cc | 4 | ||||
-rw-r--r-- | src/arch/x86/process.hh | 1 |
8 files changed, 11 insertions, 0 deletions
diff --git a/src/arch/alpha/process.cc b/src/arch/alpha/process.cc index 2ed6a5f21..582dbb57d 100644 --- a/src/arch/alpha/process.cc +++ b/src/arch/alpha/process.cc @@ -38,6 +38,7 @@ #include "cpu/thread_context.hh" #include "debug/Loader.hh" #include "mem/page_table.hh" +#include "sim/aux_vector.hh" #include "sim/byteswap.hh" #include "sim/process_impl.hh" #include "sim/syscall_return.hh" diff --git a/src/arch/arm/process.cc b/src/arch/arm/process.cc index 0bedcb58c..2fd5cc935 100644 --- a/src/arch/arm/process.cc +++ b/src/arch/arm/process.cc @@ -51,6 +51,7 @@ #include "cpu/thread_context.hh" #include "debug/Stack.hh" #include "mem/page_table.hh" +#include "sim/aux_vector.hh" #include "sim/byteswap.hh" #include "sim/process_impl.hh" #include "sim/syscall_return.hh" diff --git a/src/arch/mips/process.cc b/src/arch/mips/process.cc index 9abe410c7..c1943bf39 100644 --- a/src/arch/mips/process.cc +++ b/src/arch/mips/process.cc @@ -39,6 +39,7 @@ #include "cpu/thread_context.hh" #include "debug/Loader.hh" #include "mem/page_table.hh" +#include "sim/aux_vector.hh" #include "sim/process.hh" #include "sim/process_impl.hh" #include "sim/syscall_return.hh" diff --git a/src/arch/power/process.cc b/src/arch/power/process.cc index 91e91b672..7359fbf9a 100644 --- a/src/arch/power/process.cc +++ b/src/arch/power/process.cc @@ -40,6 +40,7 @@ #include "cpu/thread_context.hh" #include "debug/Stack.hh" #include "mem/page_table.hh" +#include "sim/aux_vector.hh" #include "sim/process_impl.hh" #include "sim/syscall_return.hh" #include "sim/system.hh" diff --git a/src/arch/riscv/process.cc b/src/arch/riscv/process.cc index 8629a57d6..6bc328325 100644 --- a/src/arch/riscv/process.cc +++ b/src/arch/riscv/process.cc @@ -42,6 +42,7 @@ #include "cpu/thread_context.hh" #include "debug/Loader.hh" #include "mem/page_table.hh" +#include "sim/aux_vector.hh" #include "sim/process.hh" #include "sim/process_impl.hh" #include "sim/syscall_return.hh" diff --git a/src/arch/sparc/process.cc b/src/arch/sparc/process.cc index 87790e9c3..121f2f710 100644 --- a/src/arch/sparc/process.cc +++ b/src/arch/sparc/process.cc @@ -42,6 +42,7 @@ #include "cpu/thread_context.hh" #include "debug/Stack.hh" #include "mem/page_table.hh" +#include "sim/aux_vector.hh" #include "sim/process_impl.hh" #include "sim/syscall_return.hh" #include "sim/system.hh" diff --git a/src/arch/x86/process.cc b/src/arch/x86/process.cc index a774dd000..245fbebf4 100644 --- a/src/arch/x86/process.cc +++ b/src/arch/x86/process.cc @@ -44,6 +44,9 @@ #include "arch/x86/process.hh" +#include <string> +#include <vector> + #include "arch/x86/isa_traits.hh" #include "arch/x86/regs/misc.hh" #include "arch/x86/regs/segment.hh" @@ -57,6 +60,7 @@ #include "debug/Stack.hh" #include "mem/multi_level_page_table.hh" #include "mem/page_table.hh" +#include "sim/aux_vector.hh" #include "sim/process_impl.hh" #include "sim/syscall_desc.hh" #include "sim/syscall_return.hh" diff --git a/src/arch/x86/process.hh b/src/arch/x86/process.hh index 34a275095..fa95b4ff4 100644 --- a/src/arch/x86/process.hh +++ b/src/arch/x86/process.hh @@ -43,6 +43,7 @@ #include <string> #include <vector> +#include "sim/aux_vector.hh" #include "sim/process.hh" #include "mem/multi_level_page_table.hh" |