This commit is contained in:
StapleButter 2017-04-23 15:38:39 +02:00
parent 1759672d14
commit bdac2467e7
2 changed files with 5 additions and 1 deletions

View File

@ -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)
{

View File

@ -66,6 +66,8 @@ private:
bool Running;
bool InProgress;
bool IsGXFIFODMA;
};
#endif