From: Tiago Mück Date: Mon, 1 Jun 2020 23:08:03 +0000 (-0500) Subject: mem-ruby: move AddrRange propagation to RubyPort X-Git-Tag: develop-gem5-snapshot~644 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=1a512d8f77fb81151dfc356805e2dc083102eb12;p=gem5.git mem-ruby: move AddrRange propagation to RubyPort 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 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/31268 Reviewed-by: Jason Lowe-Power Maintainer: Jason Lowe-Power Tested-by: kokoro --- diff --git a/src/mem/ruby/system/DMASequencer.cc b/src/mem/ruby/system/DMASequencer.cc index 938044a74..4c61dd296 100644 --- a/src/mem/ruby/system/DMASequencer.cc +++ b/src/mem/ruby/system/DMASequencer.cc @@ -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 diff --git a/src/mem/ruby/system/RubyPort.cc b/src/mem/ruby/system/RubyPort.cc index 116f04f22..246971005 100644 --- a/src/mem/ruby/system/RubyPort.cc +++ b/src/mem/ruby/system/RubyPort.cc @@ -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 &