From: Andreas Hansson Date: Wed, 4 Sep 2013 17:22:55 +0000 (-0400) Subject: arch: Header clean up for NOISA resurrection X-Git-Tag: stable_2014_02_15~155 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=bb1d2f39575795f0b369bb3cabb52c9d42a8b1c6;p=gem5.git arch: Header clean up for NOISA resurrection This patch is a first step to getting NOISA working again. A number of redundant includes make life more difficult than it has to be and this patch simply removes them. There are also some redundant forward declarations removed. --- diff --git a/src/base/vnc/vncserver.hh b/src/base/vnc/vncserver.hh index 17c097536..cd1f186f5 100644 --- a/src/base/vnc/vncserver.hh +++ b/src/base/vnc/vncserver.hh @@ -53,7 +53,6 @@ #include "base/circlebuf.hh" #include "base/pollevent.hh" #include "base/socket.hh" -#include "cpu/intr_control.hh" #include "params/VncServer.hh" #include "sim/sim_object.hh" diff --git a/src/cpu/intr_control.hh b/src/cpu/intr_control.hh index ee7b3ea7f..f8ded6f39 100644 --- a/src/cpu/intr_control.hh +++ b/src/cpu/intr_control.hh @@ -35,7 +35,6 @@ #include #include "base/misc.hh" -#include "cpu/base.hh" #include "params/IntrControl.hh" #include "sim/sim_object.hh" #include "sim/system.hh" diff --git a/src/cpu/static_inst.hh b/src/cpu/static_inst.hh index 507decbdf..0464eda14 100644 --- a/src/cpu/static_inst.hh +++ b/src/cpu/static_inst.hh @@ -46,20 +46,14 @@ #include "sim/fault_fwd.hh" // forward declarations -struct AlphaSimpleImpl; -struct OzoneImpl; -struct SimpleImpl; -class DynInst; class Packet; struct O3CPUImpl; template class BaseO3DynInst; typedef BaseO3DynInst O3DynInst; -template class OzoneDynInst; class InOrderDynInst; class CheckerCPU; -class FastCPU; class AtomicSimpleCPU; class TimingSimpleCPU; class InorderCPU; diff --git a/src/dev/ns_gige.cc b/src/dev/ns_gige.cc index 67f8e0345..9a6ea5c6b 100644 --- a/src/dev/ns_gige.cc +++ b/src/dev/ns_gige.cc @@ -40,7 +40,6 @@ #include "base/inet.hh" #include "base/types.hh" #include "config/the_isa.hh" -#include "cpu/thread_context.hh" #include "debug/EthernetAll.hh" #include "dev/etherlink.hh" #include "dev/ns_gige.hh" diff --git a/src/dev/sinic.cc b/src/dev/sinic.cc index c2d5fb49d..02eb8a113 100644 --- a/src/dev/sinic.cc +++ b/src/dev/sinic.cc @@ -38,8 +38,6 @@ #include "base/inet.hh" #include "base/types.hh" #include "config/the_isa.hh" -#include "cpu/intr_control.hh" -#include "cpu/thread_context.hh" #include "debug/EthernetAll.hh" #include "dev/etherlink.hh" #include "dev/sinic.hh" diff --git a/src/kern/kernel_stats.hh b/src/kern/kernel_stats.hh index d5abde83f..0c8ed248a 100644 --- a/src/kern/kernel_stats.hh +++ b/src/kern/kernel_stats.hh @@ -34,13 +34,10 @@ #include -#include "cpu/static_inst.hh" +#include "config/the_isa.hh" #include "sim/serialize.hh" #include "sim/stats.hh" -class BaseCPU; -class ThreadContext; -class FnEvent; // What does kernel stats expect is included? class System; diff --git a/src/sim/stat_control.cc b/src/sim/stat_control.cc index 715bb54aa..5429861d6 100644 --- a/src/sim/stat_control.cc +++ b/src/sim/stat_control.cc @@ -59,7 +59,7 @@ #include "cpu/base.hh" #endif -#include "sim/eventq.hh" +#include "sim/eventq_impl.hh" #include "sim/stat_control.hh" using namespace std;