From e6ca85c059a2383c30ef99b19d58aa35c6d324fb Mon Sep 17 00:00:00 2001 From: hrydgard Date: Sat, 21 Feb 2009 00:54:52 +0000 Subject: [PATCH] Fix for a single core mode stop-hang. Fix a build error in IL mode. git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@2328 8ced0084-cf51-0410-be5f-012b33b47a6e --- Source/Core/Core/Src/Core.cpp | 7 +++---- Source/Core/Core/Src/PowerPC/Jit64IL/JitAsm.cpp | 1 - Source/Core/VideoCommon/Src/Fifo.cpp | 3 ++- 3 files changed, 5 insertions(+), 6 deletions(-) diff --git a/Source/Core/Core/Src/Core.cpp b/Source/Core/Core/Src/Core.cpp index 4bc78582b2..be16c6b6dd 100644 --- a/Source/Core/Core/Src/Core.cpp +++ b/Source/Core/Core/Src/Core.cpp @@ -475,11 +475,10 @@ THREAD_RETURN EmuThread(void *pArg) // The hardware is uninitialized g_bHwInit = false; - Plugins.ShutdownPlugins(); - HW::Shutdown(); - - LOG(MASTER_LOG, "EmuThread exited"); + Plugins.ShutdownPlugins(); + + LOG(MASTER_LOG, "EmuThread exited"); // The CPU should return when a game is stopped and cleanup should be done here, // so we can restart the plugins (or load new ones) for the next game. if (_CoreParameter.hMainWindow == g_pWindowHandle) diff --git a/Source/Core/Core/Src/PowerPC/Jit64IL/JitAsm.cpp b/Source/Core/Core/Src/PowerPC/Jit64IL/JitAsm.cpp index cdac7beaef..469931359a 100644 --- a/Source/Core/Core/Src/PowerPC/Jit64IL/JitAsm.cpp +++ b/Source/Core/Core/Src/PowerPC/Jit64IL/JitAsm.cpp @@ -30,7 +30,6 @@ #include "JitCache.h" #include "Thunk.h" -#include "../../HW/CPUCompare.h" #include "../../HW/GPFifo.h" #include "../../Core.h" #include "JitAsm.h" diff --git a/Source/Core/VideoCommon/Src/Fifo.cpp b/Source/Core/VideoCommon/Src/Fifo.cpp index 064cab8dfb..b3a5ee00e6 100644 --- a/Source/Core/VideoCommon/Src/Fifo.cpp +++ b/Source/Core/VideoCommon/Src/Fifo.cpp @@ -51,7 +51,7 @@ void Fifo_Init() { videoBuffer = (u8*)AllocateMemoryPages(FIFO_SIZE); fifo_exit_event.Init(); - fifoStateRun = true; + fifoStateRun = false; g_XFBUpdateRequested = FALSE; } @@ -101,6 +101,7 @@ void Fifo_ExitLoop() void Fifo_EnterLoop(const SVideoInitialize &video_initialize) { + fifoStateRun = true; SCPFifoStruct &_fifo = *video_initialize.pCPFifo; s32 distToSend;