xgkick fix for main trunk

git-svn-id: http://pcsx2.googlecode.com/svn/trunk@1885 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
cottonvibes 2009-09-19 23:22:55 +00:00
parent c963fd3d85
commit 8f0f5ba506
1 changed files with 3 additions and 3 deletions

View File

@ -1109,17 +1109,17 @@ void __fastcall mVU_XGKICK_(u32 addr) {
u32 size = mtgsThread->PrepDataPacket(GIF_PATH_1, data, diff); u32 size = mtgsThread->PrepDataPacket(GIF_PATH_1, data, diff);
u8* pDest = mtgsThread->GetDataPacketPtr(); u8* pDest = mtgsThread->GetDataPacketPtr();
if(size > diff) { if (size > diff) {
// fixme: one of these days the following *16's will get cleaned up when we introduce // fixme: one of these days the following *16's will get cleaned up when we introduce
// a special qwc/simd16 optimized version of memcpy_aligned. :) // a special qwc/simd16 optimized version of memcpy_aligned. :)
//DevCon::Status("XGkick Wrap!"); //DevCon::Status("XGkick Wrap!");
memcpy_aligned(pDest, microVU1.regs->Mem + addr, diff*16); memcpy_aligned(pDest, microVU1.regs->Mem + (addr*16), diff*16);
size -= diff; size -= diff;
pDest += diff*16; pDest += diff*16;
memcpy_aligned(pDest, microVU1.regs->Mem, size*16); memcpy_aligned(pDest, microVU1.regs->Mem, size*16);
} }
else { else {
memcpy_aligned(pDest, microVU1.regs->Mem + addr, size*16); memcpy_aligned(pDest, microVU1.regs->Mem + (addr*16), size*16);
} }
mtgsThread->SendDataPacket(); mtgsThread->SendDataPacket();
} }