|
@@ -787,8 +787,7 @@ static ssize_t dp8393x_receive(NetClientState *nc, const uint8_t * buf,
|
|
/* Put packet into RBA */
|
|
/* Put packet into RBA */
|
|
DPRINTF("Receive packet at %08x\n", dp8393x_crba(s));
|
|
DPRINTF("Receive packet at %08x\n", dp8393x_crba(s));
|
|
address = dp8393x_crba(s);
|
|
address = dp8393x_crba(s);
|
|
- address_space_rw(&s->as, address,
|
|
|
|
- MEMTXATTRS_UNSPECIFIED, (uint8_t *)buf, rx_len, 1);
|
|
|
|
|
|
+ address_space_write(&s->as, address, MEMTXATTRS_UNSPECIFIED, buf, rx_len);
|
|
address += rx_len;
|
|
address += rx_len;
|
|
address_space_rw(&s->as, address,
|
|
address_space_rw(&s->as, address,
|
|
MEMTXATTRS_UNSPECIFIED, (uint8_t *)&checksum, 4, 1);
|
|
MEMTXATTRS_UNSPECIFIED, (uint8_t *)&checksum, 4, 1);
|