From 2ae0b5a0648850921b465213dd48f50649230b72 Mon Sep 17 00:00:00 2001 From: Toni Wilen Date: Sat, 14 May 2016 18:58:15 +0300 Subject: [PATCH] New DMA debugger event for special cases. --- debug.cpp | 2 ++ include/debug.h | 1 + 2 files changed, 3 insertions(+) diff --git a/debug.cpp b/debug.cpp index 26c03137..7c83cdf6 100644 --- a/debug.cpp +++ b/debug.cpp @@ -1643,6 +1643,8 @@ static void decode_dma_record (int hpos, int vpos, int toggle, bool logfile) l3[cl2++] = 'I'; if (dr->evt & DMA_EVENT_INTREQ) l3[cl2++] = 'i'; + if (dr->evt & DMA_EVENT_SPECIAL) + l3[cl2++] = 'X'; _stprintf (l5 + cl, _T("%08X"), cycles + (vpos * maxhpos + (hpos + cnt)) * CYCLE_UNIT); if (i < cols - 1 && h < maxh - 1) { l1[cl + col - 1] = 32; diff --git a/include/debug.h b/include/debug.h index 4439d037..8bb15b81 100644 --- a/include/debug.h +++ b/include/debug.h @@ -154,6 +154,7 @@ struct dma_rec #define DMA_EVENT_CPUIRQ 32 #define DMA_EVENT_INTREQ 64 #define DMA_EVENT_COPPERWANTED 128 +#define DMA_EVENT_SPECIAL 256 #define DMARECORD_REFRESH 1 #define DMARECORD_CPU_I 2 -- 2.47.3