Update DMA register addresses
authorJames Lemke <jlemke@cygnus>
Wed, 11 Feb 1998 23:19:52 +0000 (23:19 +0000)
committerJames Lemke <jlemke@cygnus>
Wed, 11 Feb 1998 23:19:52 +0000 (23:19 +0000)
sim/mips/sky-pke.c

index eb64cd32c7b9f19ed4ca287f77b6cb4f4871c227..554371e3491e7ee472eecbe2f11a2ac4a01b30e3 100644 (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));