From a928a438b8a005e5b6059bc5db0687bf64abcfa6 Mon Sep 17 00:00:00 2001 From: Brandon Potter Date: Wed, 9 Nov 2016 14:27:40 -0600 Subject: style: [patch 3/22] reduce include dependencies in some headers Used cppclean to help identify useless includes and removed them. This involved erroneously included headers, but also cases where forward declarations could have been used rather than a full include. --- src/arch/power/interrupts.hh | 1 + src/arch/power/process.cc | 1 + src/arch/power/process.hh | 1 + src/arch/power/remote_gdb.cc | 2 ++ 4 files changed, 5 insertions(+) (limited to 'src/arch/power') diff --git a/src/arch/power/interrupts.hh b/src/arch/power/interrupts.hh index be5c72151..e41b4aa95 100644 --- a/src/arch/power/interrupts.hh +++ b/src/arch/power/interrupts.hh @@ -35,6 +35,7 @@ #include "params/PowerInterrupts.hh" #include "sim/sim_object.hh" +class BaseCPU; class ThreadContext; namespace PowerISA { diff --git a/src/arch/power/process.cc b/src/arch/power/process.cc index 880d7dd6f..f7cb41dbb 100644 --- a/src/arch/power/process.cc +++ b/src/arch/power/process.cc @@ -41,6 +41,7 @@ #include "debug/Stack.hh" #include "mem/page_table.hh" #include "sim/process_impl.hh" +#include "sim/syscall_return.hh" #include "sim/system.hh" using namespace std; diff --git a/src/arch/power/process.hh b/src/arch/power/process.hh index b96c77c70..cc023e2c9 100644 --- a/src/arch/power/process.hh +++ b/src/arch/power/process.hh @@ -36,6 +36,7 @@ #include #include +#include "mem/page_table.hh" #include "sim/process.hh" class LiveProcess; diff --git a/src/arch/power/remote_gdb.cc b/src/arch/power/remote_gdb.cc index ef10efc18..1ed7afbc0 100644 --- a/src/arch/power/remote_gdb.cc +++ b/src/arch/power/remote_gdb.cc @@ -133,6 +133,7 @@ * "Stub" to allow remote cpu to debug over a serial line using gdb. */ + #include "arch/power/remote_gdb.hh" #include @@ -144,6 +145,7 @@ #include "cpu/thread_state.hh" #include "debug/GDBAcc.hh" #include "debug/GDBMisc.hh" +#include "mem/page_table.hh" #include "sim/byteswap.hh" using namespace std; -- cgit v1.2.3