summaryrefslogtreecommitdiff
path: root/src/mem/ruby/network/simple
diff options
context:
space:
mode:
authorNathan Binkert <nate@binkert.org>2009-05-11 10:38:45 -0700
committerNathan Binkert <nate@binkert.org>2009-05-11 10:38:45 -0700
commit24da30e317cdbf4b628141d69b2d17dac5ae3822 (patch)
tree190e2e14e278190d776dfd65a489f70700f4c8b0 /src/mem/ruby/network/simple
parentd8c592a05d884560b3cbbe04d9e1ed9cf6575eaa (diff)
downloadgem5-24da30e317cdbf4b628141d69b2d17dac5ae3822.tar.xz
ruby: Make ruby #includes use full paths to the files they're including.
This basically means changing all #include statements and changing autogenerated code so that it generates the correct paths. Because slicc generates #includes, I had to hard code the include paths to mem/protocol.
Diffstat (limited to 'src/mem/ruby/network/simple')
-rw-r--r--src/mem/ruby/network/simple/PerfectSwitch.cc16
-rw-r--r--src/mem/ruby/network/simple/PerfectSwitch.hh8
-rw-r--r--src/mem/ruby/network/simple/SimpleNetwork.cc22
-rw-r--r--src/mem/ruby/network/simple/SimpleNetwork.hh8
-rw-r--r--src/mem/ruby/network/simple/Switch.cc14
-rw-r--r--src/mem/ruby/network/simple/Switch.hh4
-rw-r--r--src/mem/ruby/network/simple/Throttle.cc12
-rw-r--r--src/mem/ruby/network/simple/Throttle.hh10
-rw-r--r--src/mem/ruby/network/simple/Topology.cc16
-rw-r--r--src/mem/ruby/network/simple/Topology.hh6
10 files changed, 58 insertions, 58 deletions
diff --git a/src/mem/ruby/network/simple/PerfectSwitch.cc b/src/mem/ruby/network/simple/PerfectSwitch.cc
index a88a29e83..02725148f 100644
--- a/src/mem/ruby/network/simple/PerfectSwitch.cc
+++ b/src/mem/ruby/network/simple/PerfectSwitch.cc
@@ -37,14 +37,14 @@
*/
-#include "PerfectSwitch.hh"
-#include "NetworkMessage.hh"
-#include "Profiler.hh"
-#include "System.hh"
-#include "SimpleNetwork.hh"
-#include "util.hh"
-#include "MessageBuffer.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/PerfectSwitch.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/network/simple/SimpleNetwork.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/protocol/Protocol.hh"
const int PRIORITY_SWITCH_LIMIT = 128;
diff --git a/src/mem/ruby/network/simple/PerfectSwitch.hh b/src/mem/ruby/network/simple/PerfectSwitch.hh
index 4d381ccc9..9cc28fff8 100644
--- a/src/mem/ruby/network/simple/PerfectSwitch.hh
+++ b/src/mem/ruby/network/simple/PerfectSwitch.hh
@@ -41,10 +41,10 @@
#ifndef PerfectSwitch_H
#define PerfectSwitch_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
class MessageBuffer;
class NetDest;
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.cc b/src/mem/ruby/network/simple/SimpleNetwork.cc
index 549503e47..1258edb60 100644
--- a/src/mem/ruby/network/simple/SimpleNetwork.cc
+++ b/src/mem/ruby/network/simple/SimpleNetwork.cc
@@ -36,17 +36,17 @@
*
*/
-#include "SimpleNetwork.hh"
-#include "Profiler.hh"
-#include "System.hh"
-#include "Switch.hh"
-#include "NetDest.hh"
-#include "Topology.hh"
-#include "TopologyType.hh"
-#include "MachineType.hh"
-#include "MessageBuffer.hh"
-#include "Protocol.hh"
-#include "Map.hh"
+#include "mem/ruby/network/simple/SimpleNetwork.hh"
+#include "mem/ruby/profiler/Profiler.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/network/simple/Switch.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/ruby/network/simple/Topology.hh"
+#include "mem/protocol/TopologyType.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/protocol/Protocol.hh"
+#include "mem/gems_common/Map.hh"
// ***BIG HACK*** - This is actually code that _should_ be in Network.C
diff --git a/src/mem/ruby/network/simple/SimpleNetwork.hh b/src/mem/ruby/network/simple/SimpleNetwork.hh
index a28904227..8d2f64b7a 100644
--- a/src/mem/ruby/network/simple/SimpleNetwork.hh
+++ b/src/mem/ruby/network/simple/SimpleNetwork.hh
@@ -69,10 +69,10 @@
#ifndef SIMPLENETWORK_H
#define SIMPLENETWORK_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "Network.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/ruby/system/NodeID.hh"
class NetDest;
class MessageBuffer;
diff --git a/src/mem/ruby/network/simple/Switch.cc b/src/mem/ruby/network/simple/Switch.cc
index 3b55d156f..648b6ca01 100644
--- a/src/mem/ruby/network/simple/Switch.cc
+++ b/src/mem/ruby/network/simple/Switch.cc
@@ -37,13 +37,13 @@
*/
-#include "Switch.hh"
-#include "PerfectSwitch.hh"
-#include "MessageBuffer.hh"
-#include "Throttle.hh"
-#include "MessageSizeType.hh"
-#include "Network.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/Switch.hh"
+#include "mem/ruby/network/simple/PerfectSwitch.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/simple/Throttle.hh"
+#include "mem/protocol/MessageSizeType.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/protocol/Protocol.hh"
Switch::Switch(SwitchID sid, SimpleNetwork* network_ptr)
{
diff --git a/src/mem/ruby/network/simple/Switch.hh b/src/mem/ruby/network/simple/Switch.hh
index a408155c0..58bde05ea 100644
--- a/src/mem/ruby/network/simple/Switch.hh
+++ b/src/mem/ruby/network/simple/Switch.hh
@@ -44,8 +44,8 @@
#ifndef Switch_H
#define Switch_H
-#include "Global.hh"
-#include "Vector.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
class MessageBuffer;
class PerfectSwitch;
diff --git a/src/mem/ruby/network/simple/Throttle.cc b/src/mem/ruby/network/simple/Throttle.cc
index 2f6e68afd..1d9ec0dc6 100644
--- a/src/mem/ruby/network/simple/Throttle.cc
+++ b/src/mem/ruby/network/simple/Throttle.cc
@@ -34,12 +34,12 @@
*
*/
-#include "Throttle.hh"
-#include "MessageBuffer.hh"
-#include "Network.hh"
-#include "System.hh"
-#include "NetworkMessage.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/Throttle.hh"
+#include "mem/ruby/buffers/MessageBuffer.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/ruby/system/System.hh"
+#include "mem/ruby/slicc_interface/NetworkMessage.hh"
+#include "mem/protocol/Protocol.hh"
const int HIGH_RANGE = 256;
const int ADJUST_INTERVAL = 50000;
diff --git a/src/mem/ruby/network/simple/Throttle.hh b/src/mem/ruby/network/simple/Throttle.hh
index 67cfabcdc..067c7af5f 100644
--- a/src/mem/ruby/network/simple/Throttle.hh
+++ b/src/mem/ruby/network/simple/Throttle.hh
@@ -42,11 +42,11 @@
#ifndef THROTTLE_H
#define THROTTLE_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "Consumer.hh"
-#include "NodeID.hh"
-#include "RubyConfig.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/common/Consumer.hh"
+#include "mem/ruby/system/NodeID.hh"
+#include "mem/ruby/config/RubyConfig.hh"
class MessageBuffer;
diff --git a/src/mem/ruby/network/simple/Topology.cc b/src/mem/ruby/network/simple/Topology.cc
index a7454a5af..7c52af1ce 100644
--- a/src/mem/ruby/network/simple/Topology.cc
+++ b/src/mem/ruby/network/simple/Topology.cc
@@ -36,14 +36,14 @@
*
* */
-#include "Topology.hh"
-#include "NetDest.hh"
-#include "Network.hh"
-#include "TopologyType.hh"
-#include "RubyConfig.hh"
-#include "util.hh"
-#include "MachineType.hh"
-#include "Protocol.hh"
+#include "mem/ruby/network/simple/Topology.hh"
+#include "mem/ruby/common/NetDest.hh"
+#include "mem/ruby/network/Network.hh"
+#include "mem/protocol/TopologyType.hh"
+#include "mem/ruby/config/RubyConfig.hh"
+#include "mem/gems_common/util.hh"
+#include "mem/protocol/MachineType.hh"
+#include "mem/protocol/Protocol.hh"
#include <string>
static const int INFINITE_LATENCY = 10000; // Yes, this is a big hack
diff --git a/src/mem/ruby/network/simple/Topology.hh b/src/mem/ruby/network/simple/Topology.hh
index bfc503087..ee6be1ebf 100644
--- a/src/mem/ruby/network/simple/Topology.hh
+++ b/src/mem/ruby/network/simple/Topology.hh
@@ -47,9 +47,9 @@
#ifndef TOPOLOGY_H
#define TOPOLOGY_H
-#include "Global.hh"
-#include "Vector.hh"
-#include "NodeID.hh"
+#include "mem/ruby/common/Global.hh"
+#include "mem/gems_common/Vector.hh"
+#include "mem/ruby/system/NodeID.hh"
class Network;
class NetDest;