diff options
| author | nakeee <nakeee@gmail.com> | 2009-06-30 10:10:30 +0000 |
|---|---|---|
| committer | nakeee <nakeee@gmail.com> | 2009-06-30 10:10:30 +0000 |
| commit | 292b3f675f16e7e2ca98f884787607928460cc47 (patch) | |
| tree | af135c0ed6725bbf7ad5674680352d4d363001e1 /Source/Core/DSPCore/Src/DSPHWInterface.cpp | |
| parent | fc63424bcea91fabde47c7b626c2e5ee23a7fa57 (diff) | |
DSPLLE got rid of exception in progress hack.
I didn't get any change in behaviour though.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@3621 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DSPCore/Src/DSPHWInterface.cpp')
| -rw-r--r-- | Source/Core/DSPCore/Src/DSPHWInterface.cpp | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/Core/DSPCore/Src/DSPHWInterface.cpp b/Source/Core/DSPCore/Src/DSPHWInterface.cpp index 9c0d631aeb..5ef3f5e071 100644 --- a/Source/Core/DSPCore/Src/DSPHWInterface.cpp +++ b/Source/Core/DSPCore/Src/DSPHWInterface.cpp @@ -75,6 +75,15 @@ void gdsp_mbox_write_h(u8 mbx, u16 val) gdsp_mbox[mbx][0] = val & 0x7fff; if (DSPHost_OnThread()) g_CriticalSection.Leave(); + + if (mbx == GDSP_MBOX_DSP) + { + DEBUG_LOG(DSPLLE, " - DSP writes mail to mbx %i: 0x%08x (pc=0x%04x)", mbx, gdsp_mbox_peek(GDSP_MBOX_DSP), g_dsp.pc); + } else { + // mailbox + DSPCore_SetException(7); + } + } @@ -91,7 +100,8 @@ void gdsp_mbox_write_l(u8 mbx, u16 val) { DEBUG_LOG(DSPLLE, " - DSP writes mail to mbx %i: 0x%08x (pc=0x%04x)", mbx, gdsp_mbox_peek(GDSP_MBOX_DSP), g_dsp.pc); } else { - // Trigger exception? + // mailbox + DSPCore_SetException(7); } } |
