diff options
Diffstat (limited to 'src/cpu/testers/rubytest/RubyTester.cc')
-rw-r--r-- | src/cpu/testers/rubytest/RubyTester.cc | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/cpu/testers/rubytest/RubyTester.cc b/src/cpu/testers/rubytest/RubyTester.cc index 67f4c372a..1e9827515 100644 --- a/src/cpu/testers/rubytest/RubyTester.cc +++ b/src/cpu/testers/rubytest/RubyTester.cc @@ -75,13 +75,11 @@ RubyTester::RubyTester(const Params *p) // for (int i = 0; i < p->port_cpuInstPort_connection_count; ++i) { readPorts.push_back(new CpuPort(csprintf("%s-instPort%d", name(), i), - this, i, - RubyTester::CpuPort::InstOnly)); + this, i)); } for (int i = 0; i < p->port_cpuDataPort_connection_count; ++i) { - CpuPort *port = NULL; - port = new CpuPort(csprintf("%s-dataPort%d", name(), i), this, i, - RubyTester::CpuPort::DataOnly); + CpuPort *port = new CpuPort(csprintf("%s-dataPort%d", name(), i), + this, i); readPorts.push_back(port); writePorts.push_back(port); } @@ -168,6 +166,12 @@ RubyTester::CpuPort::recvTiming(PacketPtr pkt) return true; } +bool +RubyTester::isInstReadableCpuPort(int idx) +{ + return idx < m_num_inst_ports; +} + MasterPort* RubyTester::getReadableCpuPort(int idx) { |