arm: Cleanup arch headers to remove dma_device.hh dependency
authorAndreas Sandberg <andreas.sandberg@arm.com>
Sun, 21 Jun 2015 19:48:33 +0000 (20:48 +0100)
committerAndreas Sandberg <andreas.sandberg@arm.com>
Sun, 21 Jun 2015 19:48:33 +0000 (20:48 +0100)
Break the dependency on dma_device.hh by forward-declaring DmaPort in
the relevant header.

src/arch/arm/stage2_mmu.cc
src/arch/arm/stage2_mmu.hh
src/arch/arm/table_walker.cc
src/arch/arm/table_walker.hh
src/arch/arm/tlb.cc
src/arch/arm/tlb.hh

index b7f3d07ab02eadb10f9d6750b7946243154b25d2..3525768e01a8ce6e6715599a32539f0addf1bdbd 100755 (executable)
@@ -38,6 +38,7 @@
  */
 
 #include "arch/arm/stage2_mmu.hh"
+
 #include "arch/arm/faults.hh"
 #include "arch/arm/system.hh"
 #include "arch/arm/table_walker.hh"
index 132d1b7f51bb35b3ce4b85af9ab74416bf91b68f..b42f213e8badf362a05ab42cde4ec1aa1703c644 100755 (executable)
@@ -42,6 +42,7 @@
 
 #include "arch/arm/faults.hh"
 #include "arch/arm/tlb.hh"
+#include "dev/dma_device.hh"
 #include "mem/request.hh"
 #include "params/ArmStage2MMU.hh"
 #include "sim/eventq.hh"
index e92971b7d42758ba257e14034964cb1811bef423..f58d8a2680cb6cfe0c4146ea3c4552dd711ca8b7 100644 (file)
  * Authors: Ali Saidi
  *          Giacomo Gabrielli
  */
+#include "arch/arm/table_walker.hh"
 
 #include <memory>
 
 #include "arch/arm/faults.hh"
 #include "arch/arm/stage2_mmu.hh"
 #include "arch/arm/system.hh"
-#include "arch/arm/table_walker.hh"
 #include "arch/arm/tlb.hh"
 #include "cpu/base.hh"
 #include "cpu/thread_context.hh"
@@ -51,6 +51,7 @@
 #include "debug/Drain.hh"
 #include "debug/TLB.hh"
 #include "debug/TLBVerbose.hh"
+#include "dev/dma_device.hh"
 #include "sim/system.hh"
 
 using namespace ArmISA;
index d9245d5955ff4bb2222cb49f11930e918d5003d1..a5327cd954b2210710a1dda69735ed56f1de93e0 100644 (file)
 #include "arch/arm/miscregs.hh"
 #include "arch/arm/system.hh"
 #include "arch/arm/tlb.hh"
-#include "dev/dma_device.hh"
 #include "mem/request.hh"
 #include "params/ArmTableWalker.hh"
 #include "sim/eventq.hh"
 
 class ThreadContext;
 
+class DmaPort;
+
 namespace ArmISA {
 class Translation;
 class TLB;
index dfda14d307271cade83d3b97d971df819259b6c5..9a706a16624bfe2c20d10cb3574d06a57dc9c16a 100644 (file)
@@ -42,6 +42,8 @@
  *          Steve Reinhardt
  */
 
+#include "arch/arm/tlb.hh"
+
 #include <memory>
 #include <string>
 #include <vector>
@@ -52,7 +54,6 @@
 #include "arch/arm/table_walker.hh"
 #include "arch/arm/stage2_lookup.hh"
 #include "arch/arm/stage2_mmu.hh"
-#include "arch/arm/tlb.hh"
 #include "arch/arm/utility.hh"
 #include "base/inifile.hh"
 #include "base/str.hh"
index fba5775aa3f9d5188373909aacf32945c44357f8..5d418ef176b1c7bb7d9fd6b847bdab7b76b2c0cf 100644 (file)
@@ -50,7 +50,6 @@
 #include "arch/arm/vtophys.hh"
 #include "arch/generic/tlb.hh"
 #include "base/statistics.hh"
-#include "dev/dma_device.hh"
 #include "mem/request.hh"
 #include "params/ArmTLB.hh"
 #include "sim/probe/pmu.hh"