Update DMA register addresses

This commit is contained in:
James Lemke 1998-02-11 23:19:52 +00:00
parent e0deacd295
commit 5d5a459fd1

View file

@ -450,11 +450,11 @@ pke_io_write_buffer(device *me_,
fqw = & me->fifo[me->fifo_num_elements];
memcpy((void*) fqw->data, src, nr_bytes);
sim_read(CPU_STATE(cpu),
(SIM_ADDR) (me->pke_number == 0 ? DMA_CHANNEL0_SRCADDR : DMA_CHANNEL1_SRCADDR),
(SIM_ADDR) (me->pke_number == 0 ? DMA_D0_SRCADDR : DMA_D1_SRCADDR),
(void*) & fqw->source_address,
sizeof(address_word));
sim_read(CPU_STATE(cpu),
(SIM_ADDR) (me->pke_number == 0 ? DMA_CHANNEL0_PKTFLAG : DMA_CHANNEL1_PKTFLAG),
(SIM_ADDR) (me->pke_number == 0 ? DMA_D0_PKTFLAG : DMA_D1_PKTFLAG),
(void*) & fqw->dma_tag_present,
sizeof(unsigned_4));