diff options
author | StapleButter <thetotalworm@gmail.com> | 2017-04-23 15:38:39 +0200 |
---|---|---|
committer | StapleButter <thetotalworm@gmail.com> | 2017-04-23 15:38:39 +0200 |
commit | bdac2467e700d3a932a227642d87e12db7b39f3c (patch) | |
tree | acd4db543b8d1c491c7c55d04730cdf41e1b2cae /src | |
parent | 1759672d14424e57f497e8a33fc3ec349c3ca620 (diff) |
oh well
Diffstat (limited to 'src')
-rw-r--r-- | src/DMA.cpp | 4 | ||||
-rw-r--r-- | src/DMA.h | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/src/DMA.cpp b/src/DMA.cpp index 335ad2c..edd6f8b 100644 --- a/src/DMA.cpp +++ b/src/DMA.cpp @@ -200,6 +200,8 @@ void DMA::Start() return; } + IsGXFIFODMA = (CPU == 0 && (CurSrcAddr>>24) == 0x02 && CurDstAddr == 0x04000400 && DstAddrInc == 0); + // TODO eventually: not stop if we're running code in ITCM Running = true; @@ -234,7 +236,7 @@ s32 DMA::Run(s32 cycles) else { // optimized path for typical GXFIFO DMA - if (CPU == 0 && (CurSrcAddr>>24) == 0x02 && CurDstAddr == 0x04000400 && DstAddrInc == 0) + if (IsGXFIFODMA) { while (IterCount > 0 && cycles > 0) { @@ -66,6 +66,8 @@ private: bool Running; bool InProgress; + + bool IsGXFIFODMA; }; #endif |