summaryrefslogtreecommitdiff
path: root/src/cpu/o3
diff options
context:
space:
mode:
Diffstat (limited to 'src/cpu/o3')
-rw-r--r--src/cpu/o3/2bit_local_pred.hh6
-rw-r--r--src/cpu/o3/bpred_unit.hh8
-rw-r--r--src/cpu/o3/comm.hh4
-rw-r--r--src/cpu/o3/fetch_impl.hh8
-rw-r--r--src/cpu/o3/inst_queue.hh2
-rw-r--r--src/cpu/o3/ras.hh3
-rw-r--r--src/cpu/o3/store_set.hh2
-rw-r--r--src/cpu/o3/tournament_pred.hh5
8 files changed, 18 insertions, 20 deletions
diff --git a/src/cpu/o3/2bit_local_pred.hh b/src/cpu/o3/2bit_local_pred.hh
index 7669c6b97..8b7bb8463 100644
--- a/src/cpu/o3/2bit_local_pred.hh
+++ b/src/cpu/o3/2bit_local_pred.hh
@@ -31,11 +31,11 @@
#ifndef __CPU_O3_2BIT_LOCAL_PRED_HH__
#define __CPU_O3_2BIT_LOCAL_PRED_HH__
-#include "cpu/o3/sat_counter.hh"
-#include "base/types.hh"
-
#include <vector>
+#include "base/types.hh"
+#include "cpu/o3/sat_counter.hh"
+
/**
* Implements a local predictor that uses the PC to index into a table of
* counters. Note that any time a pointer to the bp_history is given, it
diff --git a/src/cpu/o3/bpred_unit.hh b/src/cpu/o3/bpred_unit.hh
index 15d34316e..4875c03d8 100644
--- a/src/cpu/o3/bpred_unit.hh
+++ b/src/cpu/o3/bpred_unit.hh
@@ -31,18 +31,16 @@
#ifndef __CPU_O3_BPRED_UNIT_HH__
#define __CPU_O3_BPRED_UNIT_HH__
+#include <list>
+
#include "base/statistics.hh"
+#include "base/types.hh"
#include "cpu/inst_seq.hh"
-
#include "cpu/o3/2bit_local_pred.hh"
#include "cpu/o3/btb.hh"
#include "cpu/o3/ras.hh"
#include "cpu/o3/tournament_pred.hh"
-#include "base/types.hh"
-
-#include <list>
-
class DerivO3CPUParams;
/**
diff --git a/src/cpu/o3/comm.hh b/src/cpu/o3/comm.hh
index a486f340d..23b836f73 100644
--- a/src/cpu/o3/comm.hh
+++ b/src/cpu/o3/comm.hh
@@ -33,9 +33,9 @@
#include <vector>
-#include "sim/faults.hh"
-#include "cpu/inst_seq.hh"
#include "base/types.hh"
+#include "cpu/inst_seq.hh"
+#include "sim/faults.hh"
// Typedef for physical register index type. Although the Impl would be the
// most likely location for this, there are a few classes that need this
diff --git a/src/cpu/o3/fetch_impl.hh b/src/cpu/o3/fetch_impl.hh
index 96a4aebef..4d8033a8c 100644
--- a/src/cpu/o3/fetch_impl.hh
+++ b/src/cpu/o3/fetch_impl.hh
@@ -32,17 +32,17 @@
#include <algorithm>
#include <cstring>
-#include "config/use_checker.hh"
-
#include "arch/isa_traits.hh"
#include "arch/utility.hh"
+#include "base/types.hh"
+#include "config/use_checker.hh"
#include "cpu/checker/cpu.hh"
#include "cpu/exetrace.hh"
#include "cpu/o3/fetch.hh"
#include "mem/packet.hh"
#include "mem/request.hh"
+#include "params/DerivO3CPU.hh"
#include "sim/byteswap.hh"
-#include "base/types.hh"
#include "sim/core.hh"
#if FULL_SYSTEM
@@ -51,8 +51,6 @@
#include "sim/system.hh"
#endif // FULL_SYSTEM
-#include "params/DerivO3CPU.hh"
-
template<class Impl>
void
DefaultFetch<Impl>::IcachePort::setPeer(Port *port)
diff --git a/src/cpu/o3/inst_queue.hh b/src/cpu/o3/inst_queue.hh
index 5537a57e7..0b814ccb4 100644
--- a/src/cpu/o3/inst_queue.hh
+++ b/src/cpu/o3/inst_queue.hh
@@ -38,11 +38,11 @@
#include "base/statistics.hh"
#include "base/timebuf.hh"
+#include "base/types.hh"
#include "cpu/inst_seq.hh"
#include "cpu/o3/dep_graph.hh"
#include "cpu/op_class.hh"
#include "sim/eventq.hh"
-#include "base/types.hh"
class DerivO3CPUParams;
class FUPool;
diff --git a/src/cpu/o3/ras.hh b/src/cpu/o3/ras.hh
index e9a52fd37..a36faf79a 100644
--- a/src/cpu/o3/ras.hh
+++ b/src/cpu/o3/ras.hh
@@ -31,9 +31,10 @@
#ifndef __CPU_O3_RAS_HH__
#define __CPU_O3_RAS_HH__
-#include "base/types.hh"
#include <vector>
+#include "base/types.hh"
+
/** Return address stack class, implements a simple RAS. */
class ReturnAddrStack
{
diff --git a/src/cpu/o3/store_set.hh b/src/cpu/o3/store_set.hh
index 88f5e0d07..57cd2a197 100644
--- a/src/cpu/o3/store_set.hh
+++ b/src/cpu/o3/store_set.hh
@@ -36,8 +36,8 @@
#include <utility>
#include <vector>
-#include "cpu/inst_seq.hh"
#include "base/types.hh"
+#include "cpu/inst_seq.hh"
struct ltseqnum {
bool operator()(const InstSeqNum &lhs, const InstSeqNum &rhs) const
diff --git a/src/cpu/o3/tournament_pred.hh b/src/cpu/o3/tournament_pred.hh
index 31e539628..96bd43ed6 100644
--- a/src/cpu/o3/tournament_pred.hh
+++ b/src/cpu/o3/tournament_pred.hh
@@ -31,10 +31,11 @@
#ifndef __CPU_O3_TOURNAMENT_PRED_HH__
#define __CPU_O3_TOURNAMENT_PRED_HH__
-#include "cpu/o3/sat_counter.hh"
-#include "base/types.hh"
#include <vector>
+#include "base/types.hh"
+#include "cpu/o3/sat_counter.hh"
+
/**
* Implements a tournament branch predictor, hopefully identical to the one
* used in the 21264. It has a local predictor, which uses a local history