Remove loop in DMA to find a value we already know
Jeffrey Pfau jeffrey@endrift.com
Sun, 19 Oct 2014 23:30:10 -0700
1 files changed,
2 insertions(+),
5 deletions(-)
jump to
M
src/gba/gba-memory.c
→
src/gba/gba-memory.c
@@ -852,11 +852,8 @@ info->nextCount = wordsRemaining;
} info->nextSource = source; - int i; - for (i = 0; i < 4; ++i) { - if (memory->dma[i].nextEvent != INT_MAX) { - memory->dma[i].nextEvent += cycles; - } + if (info->nextEvent != INT_MAX) { + info->nextEvent += cycles; } cpu->cycles += cycles; }