summaryrefslogtreecommitdiff
path: root/Source/Core/DSPCore/Src/DSPHWInterface.cpp
diff options
context:
space:
mode:
authornakeee <nakeee@gmail.com>2009-06-30 10:10:30 +0000
committernakeee <nakeee@gmail.com>2009-06-30 10:10:30 +0000
commit292b3f675f16e7e2ca98f884787607928460cc47 (patch)
treeaf135c0ed6725bbf7ad5674680352d4d363001e1 /Source/Core/DSPCore/Src/DSPHWInterface.cpp
parentfc63424bcea91fabde47c7b626c2e5ee23a7fa57 (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.cpp12
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);
}
}