ruby: remove some of the unnecessary code
authorNilay Vaish <nilay@cs.wisc.edu>
Mon, 17 Mar 2014 22:40:14 +0000 (17:40 -0500)
committerNilay Vaish <nilay@cs.wisc.edu>
Mon, 17 Mar 2014 22:40:14 +0000 (17:40 -0500)
src/mem/ruby/common/Global.hh
src/mem/ruby/system/RubyPort.cc
src/mem/ruby/system/RubyPort.hh
src/mem/ruby/system/Sequencer.hh
src/mem/ruby/system/System.hh

index 8282f5b015ac88a157abfc30c4e6f4496688c513..d3f8029638f667431680c35f200a4998c0e33230 100644 (file)
@@ -46,4 +46,3 @@ extern std::vector<std::map<uint32_t, AbstractController *> > g_abs_controls;
 extern Cycles g_ruby_start;
 
 #endif // __MEM_RUBY_COMMON_GLOBAL_HH__
-
index fe6a33196098318c0d377cc9d7a41324fa580a3b..ec1266a907fa8d6830f72c8fd2eff9902419f763 100644 (file)
@@ -57,15 +57,14 @@ RubyPort::RubyPort(const Params *p)
       memSlavePort(csprintf("%s-mem-slave-port", name()), this,
           p->ruby_system, p->access_phys_mem, -1),
       gotAddrRanges(p->port_master_connection_count), drainManager(NULL),
-      ruby_system(p->ruby_system), system(p->system),
-      access_phys_mem(p->access_phys_mem)
+      system(p->system), access_phys_mem(p->access_phys_mem)
 {
     assert(m_version != -1);
 
     // create the slave ports based on the number of connected ports
     for (size_t i = 0; i < p->port_slave_connection_count; ++i) {
         slave_ports.push_back(new MemSlavePort(csprintf("%s.slave%d", name(),
-            i), this, ruby_system, access_phys_mem, i));
+            i), this, p->ruby_system, access_phys_mem, i));
     }
 
     // create the master ports based on the number of connected ports
index 38e18116533c86deb242ba7405e4ac0d6f693c5e..fffe6bb978bf6395059b3080e5fd798416b94851 100644 (file)
@@ -49,7 +49,6 @@
 #include "mem/ruby/buffers/MessageBuffer.hh"
 #include "mem/ruby/system/System.hh"
 #include "mem/mem_object.hh"
-#include "mem/physical.hh"
 #include "mem/tport.hh"
 #include "params/RubyPort.hh"
 
@@ -206,8 +205,6 @@ class RubyPort : public MemObject
     std::vector<PioMasterPort *> master_ports;
 
     DrainManager *drainManager;
-
-    RubySystem* ruby_system;
     System* system;
 
     //
index d7dc7d151c91ed4772836cd62f814333b73a4955..49fd8b7bbf6a060aef23d337bc40f56d61fdeb5a 100644 (file)
@@ -40,8 +40,6 @@
 #include "mem/ruby/system/RubyPort.hh"
 #include "params/RubySequencer.hh"
 
-class DataBlock;
-
 struct SequencerRequest
 {
     PacketPtr pkt;
index de35116d4bbd626880158f35977410e747733240..594f7e4f5321c28c6b15f1e6657f705df4472bf9 100644 (file)
@@ -38,7 +38,6 @@
 #include "base/callback.hh"
 #include "base/output.hh"
 #include "mem/packet.hh"
-#include "mem/ruby/common/Global.hh"
 #include "mem/ruby/profiler/Profiler.hh"
 #include "mem/ruby/recorder/CacheRecorder.hh"
 #include "mem/ruby/slicc_interface/AbstractController.hh"
@@ -81,13 +80,6 @@ class RubySystem : public ClockedObject
     static uint32_t getMemorySizeBits() { return m_memory_size_bits; }
 
     // Public Methods
-    Network*
-    getNetwork()
-    {
-        assert(m_network != NULL);
-        return m_network;
-    }
-
     Profiler*
     getProfiler()
     {