aboutsummaryrefslogtreecommitdiff
path: root/src/DMA.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/DMA.h')
-rw-r--r--src/DMA.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/DMA.h b/src/DMA.h
index d0b0def..1d1992a 100644
--- a/src/DMA.h
+++ b/src/DMA.h
@@ -41,6 +41,8 @@ public:
return ((mode == StartMode) && (Cnt & 0x80000000));
}
+ bool IsRunning() { return Running!=0; }
+
void StartIfNeeded(u32 mode)
{
if ((mode == StartMode) && (Cnt & 0x80000000))
@@ -74,7 +76,7 @@ private:
u32 DstAddrInc;
u32 CountMask;
- bool Running;
+ u32 Running;
bool InProgress;
bool Executing;