changeset 64e862d3758f in /z/repo/gem5
details: http://repo.gem5.org/gem5?cmd=changeset;node=64e862d3758f
description:
        ruby: move range change send from RubyPort to derived classes.

diffstat:

 src/mem/ruby/system/DMASequencer.cc |  3 +++
 src/mem/ruby/system/RubyPort.cc     |  3 ---
 src/mem/ruby/system/RubyPort.hh     |  3 ++-
 3 files changed, 5 insertions(+), 4 deletions(-)

diffs (46 lines):

diff -r b6a66a90e0a1 -r 64e862d3758f src/mem/ruby/system/DMASequencer.cc
--- a/src/mem/ruby/system/DMASequencer.cc       Thu Feb 18 10:42:03 2016 -0500
+++ b/src/mem/ruby/system/DMASequencer.cc       Thu Feb 18 10:50:16 2016 -0500
@@ -46,6 +46,9 @@
     RubyPort::init();
     m_is_busy = false;
     m_data_block_mask = ~ (~0 << RubySystem::getBlockSizeBits());
+
+    for (const auto &s_port : slave_ports)
+        s_port->sendRangeChange();
 }
 
 RequestStatus
diff -r b6a66a90e0a1 -r 64e862d3758f src/mem/ruby/system/RubyPort.cc
--- a/src/mem/ruby/system/RubyPort.cc   Thu Feb 18 10:42:03 2016 -0500
+++ b/src/mem/ruby/system/RubyPort.cc   Thu Feb 18 10:50:16 2016 -0500
@@ -84,9 +84,6 @@
 {
     assert(m_controller != NULL);
     m_mandatory_q_ptr = m_controller->getMandatoryQueue();
-
-    for (const auto &s_port : slave_ports)
-        s_port->sendRangeChange();
 }
 
 BaseMasterPort &
diff -r b6a66a90e0a1 -r 64e862d3758f src/mem/ruby/system/RubyPort.hh
--- a/src/mem/ruby/system/RubyPort.hh   Thu Feb 18 10:42:03 2016 -0500
+++ b/src/mem/ruby/system/RubyPort.hh   Thu Feb 18 10:50:16 2016 -0500
@@ -192,6 +192,8 @@
     bool m_usingRubyTester;
     System* system;
 
+    std::vector<MemSlavePort *> slave_ports;
+
   private:
     bool onRetryList(MemSlavePort * port)
     {
@@ -212,7 +214,6 @@
 
     /** Vector of M5 Ports attached to this Ruby port. */
     typedef std::vector<MemSlavePort *>::iterator CpuPortIter;
-    std::vector<MemSlavePort *> slave_ports;
     std::vector<PioMasterPort *> master_ports;
 
     //
_______________________________________________
gem5-dev mailing list
[email protected]
http://m5sim.org/mailman/listinfo/gem5-dev

Reply via email to