summaryrefslogtreecommitdiff
path: root/src/dev/sinic.cc
diff options
context:
space:
mode:
authorAndreas Sandberg <andreas.sandberg@arm.com>2015-11-09 13:44:04 +0000
committerAndreas Sandberg <andreas.sandberg@arm.com>2015-11-09 13:44:04 +0000
commitc62fe43ba9134e62932105313a42d43589c413f8 (patch)
treeb8fc2324e0307147e5098565b60e402936a6be68 /src/dev/sinic.cc
parent324bc9771d1f3129aee87ccb73bcf23ea4c3b60e (diff)
downloadgem5-c62fe43ba9134e62932105313a42d43589c413f8.tar.xz
dev: Don't access the platform directly in PCI devices
Cleanup PCI devices to avoid using the PciDevice::platform pointer directly. The PCI-specific functionality provided by the Platform should be accessed through the wrappers in PciDevice.
Diffstat (limited to 'src/dev/sinic.cc')
-rw-r--r--src/dev/sinic.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/dev/sinic.cc b/src/dev/sinic.cc
index e2b9e28fb..18642efb7 100644
--- a/src/dev/sinic.cc
+++ b/src/dev/sinic.cc
@@ -871,8 +871,7 @@ Device::rxKick()
if (dmaPending() || drainState() != DrainState::Running)
goto exit;
- rxDmaAddr = params()->platform->pciToDma(
- Regs::get_RxData_Addr(vnic->RxData));
+ rxDmaAddr = pciToDma(Regs::get_RxData_Addr(vnic->RxData));
rxDmaLen = min<unsigned>(Regs::get_RxData_Len(vnic->RxData),
vnic->rxPacketBytes);
@@ -1071,8 +1070,7 @@ Device::txKick()
if (dmaPending() || drainState() != DrainState::Running)
goto exit;
- txDmaAddr = params()->platform->pciToDma(
- Regs::get_TxData_Addr(vnic->TxData));
+ txDmaAddr = pciToDma(Regs::get_TxData_Addr(vnic->TxData));
txDmaLen = Regs::get_TxData_Len(vnic->TxData);
txDmaData = txPacket->data + txPacketOffset;
txState = txCopy;