The KVM base class incorrectly assumed that handleIprRead and
handleIprWrite both return ticks. This is not the case, instead they
return cycles. This changeset converts the returned cycles to ticks
when handling IPR accesses.
pkt.dataStatic(data);
if (mmio_req.isMmappedIpr()) {
- if (write)
- return TheISA::handleIprWrite(tc, &pkt);
- else
- return TheISA::handleIprRead(tc, &pkt);
+ const Cycles ipr_delay(write ?
+ TheISA::handleIprWrite(tc, &pkt) :
+ TheISA::handleIprRead(tc, &pkt));
+ return clockEdge(ipr_delay);
} else {
return dataPort.sendAtomic(&pkt);
}