DPRINTF(AMBA, "Returning %#x for offset %#x(%d)\n",
(amba_id >> byte) & 0xFF,
pkt->getAddr() - pio_addr, byte);
- assert(pkt->getSize() == 4);
- pkt->setLE<uint32_t>((amba_id >> byte) & 0xFF);
+
+ pkt->setUintX((amba_id >> byte) & 0xFF, LittleEndianByteOrder);
return true;
}
default:
if (readId(pkt, ambaId, pioAddr)) {
// Hack for variable size accesses
- data = pkt->getLE<uint32_t>();
+ data = pkt->getUintX(LittleEndianByteOrder);
break;
}
default:
if (readId(pkt, AMBA_ID, pioAddr)) {
// Hack for variable size accesses
- data = pkt->getLE<uint32_t>();
+ data = pkt->getUintX(LittleEndianByteOrder);
break;
}
default:
if (readId(pkt, AMBA_ID, pioAddr)) {
// Hack for variable size accesses
- data = pkt->getLE<uint32_t>();
+ data = pkt->getUintX(LittleEndianByteOrder);
break;
} else if (daddr >= CrsrImage && daddr <= 0xBFC) {
// CURSOR IMAGE
default:
if (readId(pkt, ambaId, pioAddr)) {
// Hack for variable sized access
- data = pkt->getLE<uint32_t>();
+ data = pkt->getUintX(LittleEndianByteOrder);
break;
}
panic("Tried to read PL031 at offset %#x that doesn't exist\n", daddr);