diff options
| author | Marko Pusljar <LM1234@gmail.com> | 2009-10-01 15:12:12 +0000 |
|---|---|---|
| committer | Marko Pusljar <LM1234@gmail.com> | 2009-10-01 15:12:12 +0000 |
| commit | f099ea7be4a0affce9e8ab011125eebefc8e370d (patch) | |
| tree | c6e180327f01c83317ae7b31e476200147dc9751 /Source/Core/DSPCore | |
| parent | c6f0335b624f80ce5fbf2444de494a079e058c48 (diff) | |
DSPSPY improvements
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4352 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPCore.cpp | 4 | ||||
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPHWInterface.cpp | 6 | ||||
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPHost.h | 1 |
3 files changed, 5 insertions, 6 deletions
diff --git a/Source/Core/DSPCore/Src/DSPCore.cpp b/Source/Core/DSPCore/Src/DSPCore.cpp index 7a5afca0a6..c8f02fb0d9 100644 --- a/Source/Core/DSPCore/Src/DSPCore.cpp +++ b/Source/Core/DSPCore/Src/DSPCore.cpp @@ -183,7 +183,7 @@ void DSPCore_CheckExceptions() // but for sure they should not be called together therefore the // g_dsp.exception_in_progress if (g_dsp.exception_in_progress != -1) { -#ifdef DEBUG_EXP +#if defined(_DEBUG) || defined(DEBUGFAST) ERROR_LOG(DSPLLE, "Firing exception %d failed exception %d active", g_dsp.exceptions, g_dsp.exception_in_progress); #endif return; @@ -206,7 +206,7 @@ void DSPCore_CheckExceptions() g_dsp.exception_in_progress = i; break; } else { -#ifdef DEBUG_EXP +#if defined(_DEBUG) || defined(DEBUGFAST) ERROR_LOG(DSPLLE, "Firing exception %d failed", i); #endif } diff --git a/Source/Core/DSPCore/Src/DSPHWInterface.cpp b/Source/Core/DSPCore/Src/DSPHWInterface.cpp index e7a9b700ce..096ab9a226 100644 --- a/Source/Core/DSPCore/Src/DSPHWInterface.cpp +++ b/Source/Core/DSPCore/Src/DSPHWInterface.cpp @@ -87,7 +87,7 @@ void gdsp_mbox_write_l(u8 mbx, u16 val) if (DSPHost_OnThread()) g_CriticalSection.Leave(); -#ifdef DEBUG_EXP +#if defined(_DEBUG) || defined(DEBUGFAST) if (mbx == GDSP_MBOX_DSP) { NOTICE_LOG(DSP_MAIL, "DSP(WM) B:%i M:0x%08x (pc=0x%04x)", mbx, gdsp_mbox_peek(GDSP_MBOX_DSP), g_dsp.pc); @@ -116,7 +116,7 @@ u16 gdsp_mbox_read_l(u8 mbx) if (DSPHost_OnThread()) g_CriticalSection.Leave(); -#ifdef DEBUG_EXP +#if defined(_DEBUG) || defined(DEBUGFAST) if (mbx == GDSP_MBOX_DSP) { NOTICE_LOG(DSP_MAIL, "DSP(RM) B:%i M:0x%08x (pc=0x%04x)", mbx, gdsp_mbox_peek(GDSP_MBOX_DSP), g_dsp.pc); @@ -315,7 +315,7 @@ void gdsp_do_dma() ERROR_LOG(DSPLLE, "DMA ERROR pc: %04x ctl: %04x addr: %08x da: %04x size: %04x", g_dsp.pc, ctl, addr, dsp_addr, len); exit(0); } -#ifdef DEBUG_EXP +#if defined(_DEBUG) || defined(DEBUGFAST) NOTICE_LOG(DSPLLE, "DMA pc: %04x ctl: %04x addr: %08x da: %04x size: %04x", g_dsp.pc, ctl, addr, dsp_addr, len); #endif switch (ctl & 0x3) diff --git a/Source/Core/DSPCore/Src/DSPHost.h b/Source/Core/DSPCore/Src/DSPHost.h index e750a4d078..b3361f50e1 100644 --- a/Source/Core/DSPCore/Src/DSPHost.h +++ b/Source/Core/DSPCore/Src/DSPHost.h @@ -22,7 +22,6 @@ // emulation core can access the environment it runs in. If the emulation // core isn't used, for example in an asm/disasm tool, then most of these // can be stubbed out. -#define DEBUG_EXP 1 u8 DSPHost_ReadHostMemory(u32 addr); void DSPHost_WriteHostMemory(u8 value, u32 addr); |
