ruby: move range change send from RubyPort to derived classes.

This commit is contained in:
Tony Gutierrez 2016-02-18 10:50:16 -05:00
parent a28a234069
commit 5a88f0931f
3 changed files with 5 additions and 4 deletions

View file

@ -46,6 +46,9 @@ DMASequencer::init()
RubyPort::init();
m_is_busy = false;
m_data_block_mask = ~ (~0 << RubySystem::getBlockSizeBits());
for (const auto &s_port : slave_ports)
s_port->sendRangeChange();
}
RequestStatus

View file

@ -84,9 +84,6 @@ RubyPort::init()
{
assert(m_controller != NULL);
m_mandatory_q_ptr = m_controller->getMandatoryQueue();
for (const auto &s_port : slave_ports)
s_port->sendRangeChange();
}
BaseMasterPort &

View file

@ -192,6 +192,8 @@ class RubyPort : public MemObject
bool m_usingRubyTester;
System* system;
std::vector<MemSlavePort *> slave_ports;
private:
bool onRetryList(MemSlavePort * port)
{
@ -212,7 +214,6 @@ class RubyPort : public MemObject
/** 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;
//