From d3d24835bcc03ecf312ac6ba7df114656770730f Mon Sep 17 00:00:00 2001 From: Gabe Black Date: Thu, 7 Mar 2019 03:02:35 -0800 Subject: arch, cpu, dev, gpu, mem, sim, python: start using getPort. Replace the getMasterPort, getSlavePort, and getEthPort functions with getPort, and remove extraneous mechanisms that are no longer necessary. Change-Id: Iab7e3c02d2f3a0cf33e7e824e18c28646b5bc318 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/17040 Reviewed-by: Daniel Carvalho Reviewed-by: Andreas Sandberg Maintainer: Andreas Sandberg --- src/dev/pci/copy_engine.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/dev/pci/copy_engine.cc') diff --git a/src/dev/pci/copy_engine.cc b/src/dev/pci/copy_engine.cc index 7f8959aca..2a74c5c0c 100644 --- a/src/dev/pci/copy_engine.cc +++ b/src/dev/pci/copy_engine.cc @@ -113,24 +113,24 @@ CopyEngine::CopyEngineChannel::~CopyEngineChannel() delete [] copyBuffer; } -BaseMasterPort & -CopyEngine::getMasterPort(const std::string &if_name, PortID idx) +Port & +CopyEngine::getPort(const std::string &if_name, PortID idx) { if (if_name != "dma") { // pass it along to our super class - return PciDevice::getMasterPort(if_name, idx); + return PciDevice::getPort(if_name, idx); } else { if (idx >= static_cast(chan.size())) { - panic("CopyEngine::getMasterPort: unknown index %d\n", idx); + panic("CopyEngine::getPort: unknown index %d\n", idx); } - return chan[idx]->getMasterPort(); + return chan[idx]->getPort(); } } -BaseMasterPort & -CopyEngine::CopyEngineChannel::getMasterPort() +Port & +CopyEngine::CopyEngineChannel::getPort() { return cePort; } -- cgit v1.2.3