summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/Src/CommandProcessor.cpp
diff options
context:
space:
mode:
authorayuanx <ayuanx@gmail.com>2010-01-13 11:42:04 +0000
committerayuanx <ayuanx@gmail.com>2010-01-13 11:42:04 +0000
commit429691ce96edab0bee2d8e111b90b4f12fa4daff (patch)
tree1c3613ad97d8db19939c6a6369ebbf70487d91a2 /Source/Core/VideoCommon/Src/CommandProcessor.cpp
parentfd40513fed84e41e4b4b65cb4f98295223bcbd9b (diff)
This should settle the FIFO BP critical games like Metroid Prime 2
G2ME01.ini [Video] FIFOBPHack = 1 git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@4823 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/VideoCommon/Src/CommandProcessor.cpp')
-rw-r--r--Source/Core/VideoCommon/Src/CommandProcessor.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/Src/CommandProcessor.cpp b/Source/Core/VideoCommon/Src/CommandProcessor.cpp
index dff94e2184..c02fd492c7 100644
--- a/Source/Core/VideoCommon/Src/CommandProcessor.cpp
+++ b/Source/Core/VideoCommon/Src/CommandProcessor.cpp
@@ -69,6 +69,7 @@
#include "Common.h"
#include "VideoCommon.h"
+#include "VideoConfig.h"
#include "MathUtil.h"
#include "Thread.h"
#include "Atomic.h"
@@ -408,6 +409,12 @@ void Write16(const u16 _Value, const u32 _Address)
{
// Clear old BP and initiate new BP
Common::AtomicStore(fifo.bFF_Breakpoint, 0);
+
+ // The following is a hack of Synchronized Breakpoint for dual core mode
+ // Some games only waits a finite N cycles for FIFO interrupts, then hangs up on time out
+ // e.g. Metriod Prime 2
+ if (g_VideoInitialize.bOnThread && g_ActiveConfig.bFIFOBPhack)
+ UpdateInterrupts(true);
}
INFO_LOG(COMMANDPROCESSOR,"\t write to CTRL_REGISTER : %04x", _Value);
@@ -730,7 +737,10 @@ void UpdateInterrupts(bool active)
void UpdateInterruptsFromVideoPlugin(bool active)
{
- g_VideoInitialize.pScheduleEvent_Threadsafe(0, et_UpdateInterrupts, active);
+ if (g_ActiveConfig.bFIFOBPhack)
+ return;
+ else
+ g_VideoInitialize.pScheduleEvent_Threadsafe(0, et_UpdateInterrupts, active);
}
void SetFifoIdleFromVideoPlugin()