diff options
Diffstat (limited to 'src/dev/alpha/tsunami_pchip.cc')
-rw-r--r-- | src/dev/alpha/tsunami_pchip.cc | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/dev/alpha/tsunami_pchip.cc b/src/dev/alpha/tsunami_pchip.cc index bf172209a..260d191ae 100644 --- a/src/dev/alpha/tsunami_pchip.cc +++ b/src/dev/alpha/tsunami_pchip.cc @@ -283,14 +283,16 @@ TsunamiPChip::dmaAddr(const PciBusAddr &dev, Addr busAddr) const to create an address for the SG page */ - tbaMask = ~(((wsm[i] & (ULL(0xfff) << 20)) >> 10) | ULL(0x3ff)); + tbaMask = ~(((wsm[i] & (ULL(0xfff) << 20)) >> 10) | + ULL(0x3ff)); baMask = (wsm[i] & (ULL(0xfff) << 20)) | (ULL(0x7f) << 13); pteAddr = (tba[i] & tbaMask) | ((busAddr & baMask) >> 10); - sys->physProxy.readBlob(pteAddr, (uint8_t*)&pteEntry, + sys->physProxy.readBlob(pteAddr, &pteEntry, sizeof(uint64_t)); - dmaAddr = ((pteEntry & ~ULL(0x1)) << 12) | (busAddr & ULL(0x1fff)); + dmaAddr = ((pteEntry & ~ULL(0x1)) << 12) | + (busAddr & ULL(0x1fff)); } else { baMask = (wsm[i] & (ULL(0xfff) << 20)) | ULL(0xfffff); |