From: Waccoon Date: Wed, 19 Apr 2023 02:42:21 +0000 (-0400) Subject: Add missing checks to DMA record events X-Git-Tag: 5.0.0~69^2 X-Git-Url: https://git.unchartedbackwaters.co.uk/w/?a=commitdiff_plain;h=58732637acb07012aca0719f40dbe6cdfe23f547;p=francis%2Fwinuae.git Add missing checks to DMA record events --- diff --git a/custom.cpp b/custom.cpp index 33d3c1fd..dc702822 100644 --- a/custom.cpp +++ b/custom.cpp @@ -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); }