Previous 199869 Revisions Next

r29195 Wednesday 2nd April, 2014 at 18:04:40 UTC by Oliver Stöneberg
removed assert from src/emu/cpu/sh4/sh4dmac.c and always set proper channel in sh4_ddt_dma (nw)
[src/emu/cpu/sh4]sh4dmac.c
[src/mame/machine]dc.c maple-dc.c
[src/mess/machine]dccons.c

trunk/src/mame/machine/dc.c
r29194r29195
8686   ddt.length = length;
8787   ddt.size =size;
8888   ddt.direction = to_mainram;
89   ddt.channel = -1;
89   ddt.channel = 0;
9090   ddt.mode = -1;
9191   sh4_dma_ddt(m_maincpu, &ddt);
9292}
trunk/src/mame/machine/maple-dc.c
r29194r29195
118118         ddtdata.size      = 4;       // bytes per word
119119         ddtdata.buffer    = header;  // destination buffer
120120         ddtdata.direction = 0;       // 0 source to buffer, 1 buffer to source
121         ddtdata.channel   = -1;      // not used
121         ddtdata.channel   = 0;
122122         ddtdata.mode      = -1;      // copy from/to buffer
123123         sh4_dma_ddt(cpu, &ddtdata);
124124         dma_adr += 8;
r29194r29195
134134         ddtdata.size      = 4;       // bytes per word
135135         ddtdata.buffer    = data;    // destination buffer
136136         ddtdata.direction = 0;       // 0 source to buffer, 1 buffer to source
137         ddtdata.channel   = -1;      // not used
137         ddtdata.channel   = 0;
138138         ddtdata.mode      = -1;      // copy from/to buffer
139139         sh4_dma_ddt(cpu, &ddtdata);
140140         dma_adr += length*4;
r29194r29195
189189         ddtdata.size        = 4;        // bytes per word
190190         ddtdata.buffer      = &data;    // destination buffer
191191         ddtdata.direction   = 1;        // 0 source to buffer, 1 buffer to source
192         ddtdata.channel     = -1;       // not used
192         ddtdata.channel     = 0;
193193         ddtdata.mode        = -1;       // copy from/to buffer
194194         sh4_dma_ddt(cpu, &ddtdata);
195195         dma_state = dma_endflag ? DMA_DONE : DMA_SEND;
r29194r29195
214214            ddtdata.size        = 4;        // bytes per word
215215            ddtdata.buffer      = data;     // destination buffer
216216            ddtdata.direction   = 1;        // 0 source to buffer, 1 buffer to source
217            ddtdata.channel     = -1;       // not used
217            ddtdata.channel     = 0;
218218            ddtdata.mode        = -1;       // copy from/to buffer
219219            sh4_dma_ddt(cpu, &ddtdata);
220220            dma_dest += length*4;
trunk/src/emu/cpu/sh4/sh4dmac.c
r29194r29195
436436   if (sh4->cpu_type != CPU_TYPE_SH4)
437437      fatalerror("sh4_dma_ddt uses sh4->m[] with SH3\n");
438438
439   assert(s->channel >= 0 && s->channel < ARRAY_LENGTH(sh4->dma_timer_active));
440439   if (sh4->dma_timer_active[s->channel])
441440      return;
442441   if (s->mode >= 0) {
trunk/src/mess/machine/dccons.c
r29194r29195
6868      ddtdata.size = 4;
6969      ddtdata.buffer = sector_buffer;
7070      ddtdata.direction=1;    // 0 source to buffer, 1 buffer to destination
71      ddtdata.channel= -1;    // not used
71      ddtdata.channel= 0;
7272      ddtdata.mode= -1;       // copy from/to buffer
7373      printf("ATAPI: DMA one sector to %x, %x remaining\n", atapi_xferbase, atapi_xferlen);
7474      sh4_dma_ddt(m_maincpu, &ddtdata);

Previous 199869 Revisions Next


© 1997-2024 The MAME Team