Ruby: Shuffle some of the included files
authorNilay Vaish <nilay@cs.wisc.edu>
Sun, 1 Jan 2012 00:44:51 +0000 (18:44 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Sun, 1 Jan 2012 00:44:51 +0000 (18:44 -0600)
This patch adds and removes included files from some of the files so as to
organize remove some false dependencies and include some files directly
instead of transitively.

--HG--
extra : rebase_source : 09b482ee9ae00b3a204ace0c63550bc3ca220134

23 files changed:
src/mem/ruby/eventqueue/RubyEventQueue.cc
src/mem/ruby/network/Network.cc
src/mem/ruby/network/Network.hh
src/mem/ruby/network/Topology.cc
src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc
src/mem/ruby/network/garnet/fixed-pipeline/NetworkInterface_d.cc
src/mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.cc
src/mem/ruby/network/garnet/fixed-pipeline/RoutingUnit_d.cc
src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc
src/mem/ruby/network/garnet/flexible-pipeline/NetworkInterface.cc
src/mem/ruby/network/garnet/flexible-pipeline/Router.cc
src/mem/ruby/network/simple/PerfectSwitch.cc
src/mem/ruby/network/simple/SimpleNetwork.cc
src/mem/ruby/network/simple/Switch.cc
src/mem/ruby/network/simple/Throttle.cc
src/mem/ruby/slicc_interface/AbstractController.cc
src/mem/ruby/slicc_interface/AbstractEntry.hh
src/mem/ruby/system/AbstractReplacementPolicy.hh
src/mem/ruby/system/DMASequencer.cc
src/mem/ruby/system/DirectoryMemory.hh
src/mem/ruby/system/MemoryControl.cc
src/mem/ruby/system/MemoryControl.hh
src/mem/ruby/system/PersistentTable.hh

index 0e5a68e39650a448a434260ef9585e2b0a2baa34..4ea530b054211274e2dfa1dc3cb07088e08c5984 100644 (file)
@@ -31,7 +31,6 @@
 #include "mem/ruby/common/Consumer.hh"
 #include "mem/ruby/eventqueue/RubyEventQueue.hh"
 #include "mem/ruby/eventqueue/RubyEventQueueNode.hh"
-#include "mem/ruby/system/System.hh"
 
 RubyEventQueue::RubyEventQueue(EventQueue* eventq, Tick _clock)
   : EventManager(eventq), m_clock(_clock)
index adb90eba99326575f075dbfa6ffb2dde49c1d101..2aa120cdf9c3210805dca7462cf4c1d44efa5895 100644 (file)
@@ -30,6 +30,7 @@
 #include "mem/protocol/MachineType.hh"
 #include "mem/ruby/network/Network.hh"
 #include "mem/ruby/network/Topology.hh"
+#include "mem/ruby/system/System.hh"
 
 Network::Network(const Params *p)
     : SimObject(p)
index 15784914966a0338d19e27a28bedd603934631de..08ad950179a94f57468d354b7b37ee199e6bc9bd 100644 (file)
@@ -46,8 +46,7 @@
 
 #include "mem/protocol/LinkDirection.hh"
 #include "mem/protocol/MessageSizeType.hh"
-#include "mem/ruby/common/Global.hh"
-#include "mem/ruby/system/System.hh"
+#include "mem/ruby/common/TypeDefines.hh"
 #include "params/RubyNetwork.hh"
 #include "sim/sim_object.hh"
 
index a342d6d0287426ce62cff74c6527bc8bd1cb85ac..201919850c0f995cfbd6c9c3e275808d475dfffa 100644 (file)
@@ -37,7 +37,6 @@
 #include "mem/ruby/network/Network.hh"
 #include "mem/ruby/network/Topology.hh"
 #include "mem/ruby/slicc_interface/AbstractController.hh"
-#include "mem/ruby/system/System.hh"
 
 using namespace std;
 
index fccd73ee2dca290155af9e6f35cd9d2afc1d2aee..aee05b69665935dbb521e74d0e990589b0a16ed8 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <cassert>
 
+#include "base/cast.hh"
 #include "base/stl_helpers.hh"
 #include "mem/protocol/MachineType.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
index 4adc8d98cbdaf5c24034bc380d8565178d1e8564..628c47ddab0a1824e6a41214ba568e8623f51cbb 100644 (file)
@@ -31,6 +31,7 @@
 #include <cassert>
 #include <cmath>
 
+#include "base/cast.hh"
 #include "base/stl_helpers.hh"
 #include "debug/RubyNetwork.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
index 829642bb9e649a5dcccb02d90db2b9f96344abd5..8a83fcca2c7c7cfd2a069247d9e15cb73041e963 100644 (file)
@@ -28,6 +28,7 @@
  * Authors: Niket Agarwal
  */
 
+#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/eventqueue/RubyEventQueue.hh"
 #include "mem/ruby/network/garnet/fixed-pipeline/OutVcState_d.hh"
 
index 7c7a7d42823ff6e67d4fc7d42e5c07db18100bb4..35a9f06e102575e15aef62e6883b847e7f6b28b8 100644 (file)
@@ -28,6 +28,7 @@
  * Authors: Niket Agarwal
  */
 
+#include "base/cast.hh"
 #include "mem/ruby/network/garnet/fixed-pipeline/InputUnit_d.hh"
 #include "mem/ruby/network/garnet/fixed-pipeline/Router_d.hh"
 #include "mem/ruby/network/garnet/fixed-pipeline/RoutingUnit_d.hh"
index 2c0d9f3aaf47161862c860640a34e258b7864fec..4fc2662ba278976041c48483c0cd1241668d2704 100644 (file)
@@ -30,6 +30,7 @@
 
 #include <cassert>
 
+#include "base/cast.hh"
 #include "base/stl_helpers.hh"
 #include "mem/protocol/MachineType.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
index a41c2768dc0a76d94bf7fc63a978907c72c3b63d..b38e2b1d6fd12cf2eb021fd6017b85842c083aeb 100644 (file)
@@ -31,6 +31,7 @@
 #include <cassert>
 #include <cmath>
 
+#include "base/cast.hh"
 #include "base/stl_helpers.hh"
 #include "debug/RubyNetwork.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
index 9965d32119a71c9dd75cb6d49493ad66303d2d25..205a4313855fc6451a4f4555407962c1cb5eba2d 100644 (file)
@@ -28,6 +28,7 @@
  * Authors: Niket Agarwal
  */
 
+#include "base/cast.hh"
 #include "base/stl_helpers.hh"
 #include "debug/RubyNetwork.hh"
 #include "mem/ruby/network/garnet/flexible-pipeline/InVcState.hh"
index f8b08d55174106d7d7c81f25a06e15fa1f528ece..885e937969f1ec7c5468f6b0cbb37218d0547405 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <algorithm>
 
+#include "base/cast.hh"
 #include "debug/RubyNetwork.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
 #include "mem/ruby/network/simple/PerfectSwitch.hh"
index 645d1b4f1e6d733e68002fddeba5adcfc6fd67f1..0eb8887d2604b5f089797ff1de50cf125914025c 100644 (file)
@@ -29,6 +29,7 @@
 #include <cassert>
 #include <numeric>
 
+#include "base/cast.hh"
 #include "base/stl_helpers.hh"
 #include "mem/protocol/TopologyType.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
index a678a657d3090fa70f8b0a91a09c958dc954fea2..d9dadbd00bf704c1860db41d7f6f6c69a84fa203 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <numeric>
 
+#include "base/cast.hh"
 #include "base/stl_helpers.hh"
 #include "mem/protocol/MessageSizeType.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
index b248c6c6c41aabc24d3e1180cdde6f145a189796..80697cb58755015c0968861db84d873c9a12a529 100644 (file)
@@ -28,6 +28,7 @@
 
 #include <cassert>
 
+#include "base/cast.hh"
 #include "base/cprintf.hh"
 #include "debug/RubyNetwork.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
index a26fa044e6a89327d0c8e3f351cb1798351cc647..04bbb87d800b9f17191c747b3dbaf3061ec39c98 100644 (file)
@@ -27,6 +27,7 @@
  */
 
 #include "mem/ruby/slicc_interface/AbstractController.hh"
+#include "mem/ruby/system/System.hh"
 
 AbstractController::AbstractController(const Params *p) : SimObject(p)
 {
index fb1af2ea0e995efb9a00e218058124106da79d88..b10306281e252fac16b2749bf729b123f824fb6b 100644 (file)
@@ -32,8 +32,6 @@
 #include <iostream>
 
 #include "mem/protocol/AccessPermission.hh"
-#include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 
 class DataBlock;
 
index 3ddf4ab60c1d2529a468102c6f473e2940715e35..d03685c651b1cc9f8a69c65a7a8d66e31ef52a95 100644 (file)
@@ -29,7 +29,7 @@
 #ifndef __MEM_RUBY_SYSTEM_ABSTRACTREPLACEMENTPOLICY_HH__
 #define __MEM_RUBY_SYSTEM_ABSTRACTREPLACEMENTPOLICY_HH__
 
-#include "mem/ruby/common/Global.hh"
+#include "mem/ruby/common/TypeDefines.hh"
 
 class AbstractReplacementPolicy
 {
index 0e82ba3ebafbd08f57a94ac60d2be56552db4e17..763eb586afbf95dc7df555c623f97b1872e07bd9 100644 (file)
@@ -30,7 +30,6 @@
 #include "mem/protocol/SequencerMsg.hh"
 #include "mem/protocol/SequencerRequestType.hh"
 #include "mem/ruby/buffers/MessageBuffer.hh"
-#include "mem/ruby/slicc_interface/AbstractController.hh"
 #include "mem/ruby/system/DMASequencer.hh"
 #include "mem/ruby/system/System.hh"
 
index 7005ce23433c51756338622efe5b47229b036d16..1b4d09b8e8391322a0ee734f8a511cca909d4280 100644 (file)
@@ -33,7 +33,6 @@
 #include <string>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/slicc_interface/AbstractEntry.hh"
 #include "mem/ruby/system/MemoryVector.hh"
 #include "mem/ruby/system/SparseMemory.hh"
index eb27c0f7826445af7c5ef2a87bc1b4c4bc9ace61..2ab0736e5e1049602edd98a74b430f7b0c3bb519 100644 (file)
  *
  */
 
+#include "base/cast.hh"
 #include "base/cprintf.hh"
-#include "mem/ruby/common/Address.hh"
 #include "mem/ruby/common/Consumer.hh"
 #include "mem/ruby/common/Global.hh"
 #include "mem/ruby/network/Network.hh"
 #include "mem/ruby/slicc_interface/NetworkMessage.hh"
 #include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
 #include "mem/ruby/system/MemoryControl.hh"
-#include "mem/ruby/system/System.hh"
 
 using namespace std;
 
index 2b3cca603b62c48fea1e9afe5a9c12dad3d23969..1534851d5bcff883c8634820b6329b3f95ed4da3 100644 (file)
 #include <string>
 
 #include "mem/protocol/MemoryMsg.hh"
-#include "mem/ruby/common/Address.hh"
 #include "mem/ruby/common/Consumer.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/profiler/MemCntrlProfiler.hh"
 #include "mem/ruby/slicc_interface/Message.hh"
 #include "mem/ruby/system/AbstractMemOrCache.hh"
 #include "mem/ruby/system/MemoryNode.hh"
-#include "mem/ruby/system/System.hh"
 #include "params/RubyMemoryControl.hh"
 #include "sim/sim_object.hh"
 
index d2f58b0db76a6f4683e1538ed08a1f9198451dda..a57b3ec76f4d2f115fd934a3fd956b781083cb2a 100644 (file)
@@ -34,7 +34,6 @@
 #include "base/hashmap.hh"
 #include "mem/protocol/AccessType.hh"
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/common/NetDest.hh"
 #include "mem/ruby/system/MachineID.hh"