]> git.unchartedbackwaters.co.uk Git - francis/winuae.git/commitdiff
Add missing checks to DMA record events
authorWaccoon <Waccoon@NineChime.com>
Wed, 19 Apr 2023 02:42:21 +0000 (22:42 -0400)
committerWaccoon <Waccoon@NineChime.com>
Wed, 19 Apr 2023 02:42:21 +0000 (22:42 -0400)
custom.cpp

index 33d3c1fdea394d36ef44ddd6c81087544d049627..dc7028228061e45084af24addb77406b34050d9d 100644 (file)
@@ -10062,7 +10062,9 @@ static bool copper_cant_read(int hpos, uae_u16 alloc)
                        if (is_last_line()) {
                                dvpos = 0;
                        }
-                       record_dma_event2(DMA_EVENT2_COPPERUSE, offset, dvpos);
+                       if (debug_dma) {
+                               record_dma_event2(DMA_EVENT2_COPPERUSE, offset, dvpos);
+                       }
 #endif
                }
                coffset++;
@@ -10493,7 +10495,9 @@ static void do_copper_fetch(int hpos, uae_u16 id)
                // COPJMP when previous instruction is mid-cycle
                cop_state.state = COP_read1;
 #ifdef DEBUGGER
-               record_dma_event2(DMA_EVENT2_COPPERUSE, hpos, vpos);
+               if (debug_dma) {
+                       record_dma_event2(DMA_EVENT2_COPPERUSE, hpos, vpos);
+               }
 #endif
                alloc_cycle(hpos, CYCLE_COPPER);
        }