ruby: remove few not required #includes
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 24 Feb 2014 01:16:15 +0000 (19:16 -0600)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 24 Feb 2014 01:16:15 +0000 (19:16 -0600)
26 files changed:
src/mem/ruby/SConscript
src/mem/ruby/common/NetDest.hh
src/mem/ruby/common/Set.cc
src/mem/ruby/common/SubBlock.hh
src/mem/ruby/filters/AbstractBloomFilter.hh
src/mem/ruby/filters/BlockBloomFilter.hh
src/mem/ruby/filters/BulkBloomFilter.hh
src/mem/ruby/filters/GenericBloomFilter.cc
src/mem/ruby/filters/GenericBloomFilter.hh
src/mem/ruby/filters/H3BloomFilter.hh
src/mem/ruby/filters/LSB_CountingBloomFilter.hh
src/mem/ruby/filters/MultiBitSelBloomFilter.hh
src/mem/ruby/filters/MultiGrainBloomFilter.hh
src/mem/ruby/filters/NonCountingBloomFilter.hh
src/mem/ruby/network/Network.cc
src/mem/ruby/network/Topology.cc
src/mem/ruby/network/garnet/fixed-pipeline/GarnetNetwork_d.cc
src/mem/ruby/network/garnet/flexible-pipeline/GarnetNetwork.cc
src/mem/ruby/network/orion/NetworkPower.cc
src/mem/ruby/slicc_interface/AbstractCacheEntry.hh
src/mem/ruby/slicc_interface/AbstractProtocol.hh [deleted file]
src/mem/ruby/slicc_interface/NetworkMessage.hh
src/mem/ruby/slicc_interface/RubyRequest.cc
src/mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh
src/mem/ruby/slicc_interface/RubySlicc_Util.hh
src/mem/ruby/system/RubyMemoryControl.cc

index b655caa7d5b0a3e2a036d36b5a5c2a7681ad8e29..a1f7a47d9ef6c3c486b0f5f043741b1d06636dbc 100644 (file)
@@ -91,7 +91,6 @@ def MakeInclude(source):
 
 MakeInclude('slicc_interface/AbstractEntry.hh')
 MakeInclude('slicc_interface/AbstractCacheEntry.hh')
-MakeInclude('slicc_interface/AbstractProtocol.hh')
 MakeInclude('slicc_interface/Message.hh')
 MakeInclude('slicc_interface/NetworkMessage.hh')
 MakeInclude('slicc_interface/RubyRequest.hh')
index 0e113c26917d48373839cda3962a58c0206ff145..f982b7c38af8a5395103e8d49d0cf025c46274fb 100644 (file)
@@ -37,9 +37,6 @@
 #include <iostream>
 #include <vector>
 
-#include "debug/RubyMemory.hh"
-#include "mem/protocol/MachineType.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/common/Set.hh"
 #include "mem/ruby/system/MachineID.hh"
 
@@ -111,11 +108,7 @@ class NetDest
         return vec_index;
     }
 
-    NodeID
-    bitIndex(NodeID index) const
-    {
-        return index;
-    }
+    NodeID bitIndex(NodeID index) const { return index; }
 
     std::vector<Set> m_bits;  // a vector of bit vectors - i.e. Sets
 };
@@ -129,4 +122,3 @@ operator<<(std::ostream& out, const NetDest& obj)
 }
 
 #endif // __MEM_RUBY_COMMON_NETDEST_HH__
-
index 7ab03c5aa626947cb5f4135e123de9584abf75e9..c674655aba896ee1f87af00c107da0eaebcf97a2 100644 (file)
 // modified (rewritten) 05/20/05 by Dan Gibson to accomimdate FASTER
 // >32 bit set sizes
 
+#include <cassert>
 #include <cstdio>
 
 #include "base/misc.hh"
 #include "mem/ruby/common/Set.hh"
-#include "mem/ruby/system/System.hh"
 
 Set::Set()
 {
index 6edb82ecc3eb84a2d6da7b78501522f3e9ea88dc..35e99b956773b07fadd7c66ea7f9c9932c84a5dd 100644 (file)
@@ -34,7 +34,6 @@
 
 #include "mem/ruby/common/Address.hh"
 #include "mem/ruby/common/DataBlock.hh"
-#include "mem/ruby/common/Global.hh"
 
 class SubBlock
 {
index cf8476c8dff524a9861178ed23818919fa6e340f..3a014dd85adfc70a51293408c31b5ea3d9ddedc4 100644 (file)
@@ -32,7 +32,6 @@
 #include <iostream>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 
 class AbstractBloomFilter
 {
index e7958df62e4a006c18397d81c00c409074d865a9..fc7ea1d332f27aded2f562f9b1399c8dfbb9f516 100644 (file)
@@ -34,7 +34,6 @@
 #include <vector>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
 
 class BlockBloomFilter : public AbstractBloomFilter
index 1a723c51d300ced6cf54c3c5e6621f09c72f6b7e..9c10bfc6f9df072e4e9047a8d508fbd89ad4826b 100644 (file)
@@ -34,7 +34,6 @@
 #include <vector>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
 
 class BulkBloomFilter : public AbstractBloomFilter
index e04547fec0bb817bf4753f07e85c4ce7ebd3f300..0f53a9712406609edbb1ab51f9271545665faa82 100644 (file)
@@ -28,7 +28,6 @@
 
 #include "base/str.hh"
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/BlockBloomFilter.hh"
 #include "mem/ruby/filters/BulkBloomFilter.hh"
 #include "mem/ruby/filters/GenericBloomFilter.hh"
index a632bbd2dfbf7eac777af2c9067623f37d40a2ac..38f9d370e44e2d27f6238322a17c6a45ea58a470 100644 (file)
@@ -33,7 +33,6 @@
 #include <string>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
 
 class GenericBloomFilter
index c1b53c9b5c54919299913332910545db65773a91..c63477b9adcad139698a584d8807085ac2ad0a83 100644 (file)
 #include <vector>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
-#include "mem/ruby/profiler/Profiler.hh"
-#include "mem/ruby/system/System.hh"
 
 class H3BloomFilter : public AbstractBloomFilter
 {
index 252f6168257eb8a6367009bd28593daf6ec25f98..e6bb5cf194fa2694f8b0cd39f6b6643f9905e180 100644 (file)
@@ -34,7 +34,6 @@
 #include <vector>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
 
 class LSB_CountingBloomFilter : public AbstractBloomFilter
index f9a423648beba055a46bccf52b8d45f1f1f686fd..7edb45953091ec5d02e25834bf3f2263b831dd3e 100644 (file)
 #include <vector>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
-#include "mem/ruby/profiler/Profiler.hh"
-#include "mem/ruby/system/System.hh"
 
 class MultiBitSelBloomFilter : public AbstractBloomFilter
 {
index d5a6e330c2fccf13a5954e078f8fdec8122835d4..26a8113cbde25e4df076cfae964c02cd982540bf 100644 (file)
@@ -34,7 +34,6 @@
 #include <vector>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
 
 class MultiGrainBloomFilter : public AbstractBloomFilter
index c940a0805169196793545f043c3199a8d339ffe2..9eec255283df523fae11bb36385d0ce7c4c56b67 100644 (file)
@@ -34,7 +34,6 @@
 #include <vector>
 
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/filters/AbstractBloomFilter.hh"
 
 class NonCountingBloomFilter : public AbstractBloomFilter
index 1c6dd9da4e7c4242430966cbb016bd05991966ae..6e843716008137c8997eaa932ec4d40ed7f2bda9 100644 (file)
@@ -27,7 +27,6 @@
  */
 
 #include "base/misc.hh"
-#include "mem/protocol/MachineType.hh"
 #include "mem/ruby/network/BasicLink.hh"
 #include "mem/ruby/network/Network.hh"
 #include "mem/ruby/system/System.hh"
index 0b81e185095bf20af43bff17e3f716d2924af8b5..7c0e31ba6a0a255a67889040cfb77d627d263ba7 100644 (file)
@@ -30,7 +30,6 @@
 
 #include "base/trace.hh"
 #include "debug/RubyNetwork.hh"
-#include "mem/protocol/MachineType.hh"
 #include "mem/ruby/common/NetDest.hh"
 #include "mem/ruby/network/BasicLink.hh"
 #include "mem/ruby/network/Topology.hh"
index ca19d7775f089d970fb4d8ffabdda9b751d54fb4..2a9d37e3e9b6db9a94c55b7254ad9bb3722c0208 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "base/cast.hh"
 #include "base/stl_helpers.hh"
-#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/common/NetDest.hh"
 #include "mem/ruby/network/garnet/fixed-pipeline/CreditLink_d.hh"
 #include "mem/ruby/network/garnet/fixed-pipeline/GarnetLink_d.hh"
index 7bb0389b569f96ab626b6f9dfe3dc6b747e1a79f..856e90d1f56404c38048c08b62d5d509e3574ef1 100644 (file)
@@ -32,7 +32,7 @@
 
 #include "base/cast.hh"
 #include "base/stl_helpers.hh"
-#include "mem/protocol/MachineType.hh"
+#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/common/NetDest.hh"
 #include "mem/ruby/network/BasicLink.hh"
 #include "mem/ruby/network/garnet/flexible-pipeline/GarnetLink.hh"
index cb2841f04b4665f1213b5b3260b11ad548805469..2eb1b0ea994c10fdab0bd0100909ce7c91920cfe 100644 (file)
@@ -29,6 +29,7 @@
  *          Tushar Krishna
  */
 
+#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/network/orion/NetworkPower.hh"
 #include "mem/ruby/network/orion/OrionConfig.hh"
 #include "mem/ruby/network/orion/OrionLink.hh"
index e92f96fd53bbee816b0ed7638e16131925d921a1..ff5ff25ab0c6fbdfa7dca0124255c4db83afcc2f 100644 (file)
@@ -37,7 +37,6 @@
 
 #include "mem/protocol/AccessPermission.hh"
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/slicc_interface/AbstractEntry.hh"
 
 class DataBlock;
diff --git a/src/mem/ruby/slicc_interface/AbstractProtocol.hh b/src/mem/ruby/slicc_interface/AbstractProtocol.hh
deleted file mode 100644 (file)
index 2cc64a2..0000000
+++ /dev/null
@@ -1,50 +0,0 @@
-/*
- * Copyright (c) 1999-2008 Mark D. Hill and David A. Wood
- * All rights reserved.
- *
- * Redistribution and use in source and binary forms, with or without
- * modification, are permitted provided that the following conditions are
- * met: redistributions of source code must retain the above copyright
- * notice, this list of conditions and the following disclaimer;
- * redistributions in binary form must reproduce the above copyright
- * notice, this list of conditions and the following disclaimer in the
- * documentation and/or other materials provided with the distribution;
- * neither the name of the copyright holders nor the names of its
- * contributors may be used to endorse or promote products derived from
- * this software without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
- * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
- * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
- * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
- * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
- * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
- * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
- * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
- */
-
-/*
- * Define all possible protocol parameters and their default value
- * here. Normally, all parameters should have default value "false"
- * means the feature of the protocol is turned off.
- */
-
-#ifndef __MEM_RUBY_SLICC_INTERFACE_ABSTRACTPROTOCOL_HH__
-#define __MEM_RUBY_SLICC_INTERFACE_ABSTRACTPROTOCOL_HH__
-
-class AbstractProtocol
-{
-  public:
-    AbstractProtocol() {}
-
-    virtual ~AbstractProtocol() = 0;
-
-    static const bool m_CMP = false ;
-    static const bool m_TwoLevelCache = false ;
-};
-
-#endif // __MEM_RUBY_SLICC_INTERFACE_ABSTRACTPROTOCOL_HH__
-
index 3ee13a44a016836408b6b3f166f743d9982ec49e..03d05d15d908e3dbaf21a4db4c4fae8efe33d284 100644 (file)
@@ -31,7 +31,6 @@
 
 #include <iostream>
 
-#include "base/refcnt.hh"
 #include "mem/protocol/MessageSizeType.hh"
 #include "mem/ruby/common/NetDest.hh"
 #include "mem/ruby/slicc_interface/Message.hh"
index ca0ab059f07abb0795c32e42ebfab0c0c68ff716..56feee59d85168cd3a33e056174f986f97464722 100644 (file)
@@ -1,3 +1,31 @@
+/*
+ * Copyright (c) 2011 Mark D. Hill and David A. Wood
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions are
+ * met: redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer;
+ * redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution;
+ * neither the name of the copyright holders nor the names of its
+ * contributors may be used to endorse or promote products derived from
+ * this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
+ * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+ * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
+ * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+ * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
+ * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+ * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+ * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
 #include <iostream>
 
 #include "mem/ruby/slicc_interface/RubyRequest.hh"
index 95b9869dd52bd072de29d8c902bc297d734d6df4..894777b97bec6b0e802a90e2b24f6b73bb84da94 100644 (file)
@@ -31,7 +31,6 @@
 
 #include "mem/protocol/MachineType.hh"
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/common/NetDest.hh"
 #include "mem/ruby/system/DirectoryMemory.hh"
 #include "mem/ruby/system/MachineID.hh"
index 75048136fd3639c4fb7d4c001e8268366896bcd3..52a47518f945be0b633c8eb2d369ce2b512d03b8 100644 (file)
@@ -37,7 +37,7 @@
 
 #include "debug/RubySlicc.hh"
 #include "mem/ruby/common/Address.hh"
-#include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
+#include "mem/ruby/common/DataBlock.hh"
 #include "mem/packet.hh"
 
 inline int
index 3cc3eafd9d17b3691d98959c9add4b8dad528c34..a13d3cd3b73c58c1feac0b1ff623749ccca95d84 100644 (file)
 
 #include "base/cast.hh"
 #include "base/cprintf.hh"
+#include "debug/RubyMemory.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/profiler/Profiler.hh"
 #include "mem/ruby/slicc_interface/NetworkMessage.hh"
 #include "mem/ruby/slicc_interface/RubySlicc_ComponentMapping.hh"
 
 using namespace std;
 
-class Consumer;
-
 // Value to reset watchdog timer to.
 // If we're idle for this many memory control cycles,
 // shut down our clock (our rescheduling of ourselves).