From 7f45b21be19ee95dc1b7866c9cdb4a4508d415cb Mon Sep 17 00:00:00 2001 From: ramapcsx2 Date: Thu, 13 Dec 2012 14:44:36 +0000 Subject: [PATCH] SPU2-X: Just adding a log to devel builds. This is a curious case we want to be notified about. git-svn-id: http://pcsx2.googlecode.com/svn/trunk@5478 96395faa-99c1-11dd-bbfe-3dabce05a288 --- plugins/spu2-x/src/Dma.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plugins/spu2-x/src/Dma.cpp b/plugins/spu2-x/src/Dma.cpp index 7a0aa7eb79..141c41e9c6 100644 --- a/plugins/spu2-x/src/Dma.cpp +++ b/plugins/spu2-x/src/Dma.cpp @@ -414,6 +414,13 @@ void V_Core::DoDMAwrite(u16* pMem, u32 size) DebugCores[Index].dmaFlag = 2; } + if(MsgToConsole()) + { + if (TSA > 0xfffff){ + ConLog("* SPU2-X: Transfer Start Address out of bounds. TSA is %x\n", TSA); + } + } + TSA &= 0xfffff; bool adma_enable = ((AutoDMACtrl&(Index+1))==(Index+1));