From 64f1870d7b57fc531cd3b8776ea9302393ed5e3e Mon Sep 17 00:00:00 2001 From: Vicki Pfau Date: Fri, 7 Apr 2017 00:12:23 -0700 Subject: [PATCH] DS DMA: Fix ITCM blocking --- src/ds/dma.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ds/dma.c b/src/ds/dma.c index 84fe33b2f..4c14c83ea 100644 --- a/src/ds/dma.c +++ b/src/ds/dma.c @@ -226,7 +226,7 @@ void DSDMAService(struct DSCommon* dscore, struct GBADMA* info) { } info->when += cycles; - if (source >= DS_BASE_RAM) { + if (source >= DS_BASE_RAM && dest >= DS_BASE_RAM) { uint32_t word; if (width == 4) { word = cpu->memory.load32(cpu, source, 0);