Core: Changed when scratchpad DMA waits on the VU1 thread with MTVU active, might fix/speed up something.

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5483 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
sudonim1@gmail.com 2012-12-21 00:46:16 +00:00
parent ac54bad33c
commit 4eb5dedef1
2 changed files with 4 additions and 7 deletions

View File

@ -56,11 +56,6 @@ static void TestClearVUs(u32 madr, u32 qwc, bool isWrite)
{
DbgCon.Warning("scratch pad clearing vu1");
if (THREAD_VU1) {
DevCon.Error("MTVU Warning: SPR Accessing VU1 Memory!!!");
vu1Thread.WaitVU();
}
CpuVU1->Clear(madr&0x3fff, qwc * 16);
}
}

View File

@ -115,10 +115,12 @@ __fi tDMA_TAG* SPRdmaGetAddr(u32 addr, bool write)
}
else if ((addr >= 0x11000000) && (addr < 0x11010000))
{
if (THREAD_VU1) {
//DevCon.Error("MTVU: SPRdmaGetAddr Accessing VU Memory!");
if (addr >= 0x11008000 && THREAD_VU1)
{
DevCon.Warning("MTVU: SPR Accessing VU1 Memory");
vu1Thread.WaitVU();
}
//Access for VU Memory
if((addr >= 0x1100c000) && (addr < 0x11010000))