mem-ruby: move AddrRange propagation to RubyPort
authorTiago Mück <tiago.muck@arm.com>
Mon, 1 Jun 2020 23:08:03 +0000 (18:08 -0500)
committerTiago Mück <tiago.muck@arm.com>
Mon, 12 Oct 2020 14:09:55 +0000 (14:09 +0000)
Doing the master address range notification from the RubyPort.
This allows us the DMASequencer to be replaced by Sequencer in future
protocols.

Change-Id: I95edb54b39a8adf0cac5caf2b58e4a2efb573f56
Signed-off-by: Tiago Mück <tiago.muck@arm.com>
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31268
Reviewed-by: Jason Lowe-Power <power.jg@gmail.com>
Maintainer: Jason Lowe-Power <power.jg@gmail.com>
Tested-by: kokoro <noreply+kokoro@google.com>
src/mem/ruby/system/DMASequencer.cc
src/mem/ruby/system/RubyPort.cc

index 938044a74ea97d1186263d695bd9b3fca6b69008..4c61dd29680a63ef5c059714f357bb1053256c13 100644 (file)
@@ -56,9 +56,6 @@ DMASequencer::init()
 {
     RubyPort::init();
     m_data_block_mask = mask(RubySystem::getBlockSizeBits());
-
-    for (const auto &response_port : response_ports)
-        response_port->sendRangeChange();
 }
 
 RequestStatus
index 116f04f225c4060e9040ed8ff545c37d37ea69f6..246971005d64da9a1f70c3582363bb16d9fa2175 100644 (file)
@@ -86,6 +86,8 @@ RubyPort::init()
 {
     assert(m_controller != NULL);
     m_mandatory_q_ptr = m_controller->getMandatoryQueue();
+    for (const auto &response_port : response_ports)
+        response_port->sendRangeChange();
 }
 
 Port &