// translate to physical address
Fault fault = xc->translateDataReadReq(memReq);
- assert(!fault->isAlignmentFault());
-
if (fault == NoFault) {
xc->copySrcAddr = src;
xc->copySrcPhysAddr = memReq->paddr + offset;
} else {
+ assert(!fault->isAlignmentFault());
+
xc->copySrcAddr = 0;
xc->copySrcPhysAddr = 0;
}
// translate to physical address
Fault fault = xc->translateDataWriteReq(memReq);
- assert(!fault->isAlignmentFault());
-
if (fault == NoFault) {
Addr dest_addr = memReq->paddr + offset;
// Need to read straight from memory since we have more than 8 bytes.
dcacheInterface->access(memReq);
}
}
+ else
+ assert(!fault->isAlignmentFault());
+
return fault;
}