Revert "Don't add segfault handler in interpreter mode"

This commit is contained in:
Pierre Bourdon
2014-07-07 05:30:06 +02:00
parent 038111b262
commit b0b70381f7
23 changed files with 66 additions and 80 deletions
+5 -11
View File
@@ -226,7 +226,7 @@ bool Init()
// Called from GUI thread
void Stop() // - Hammertime!
{
if (PowerPC::GetState() == PowerPC::STATE_POWERDOWN)
if (PowerPC::GetState() == PowerPC::CPU_POWERDOWN)
{
if (g_EmuThread.joinable())
g_EmuThread.join();
@@ -299,8 +299,7 @@ void CpuThread()
}
#if _M_X86_64 || _M_ARM_32
// No need to install the segfault handler when using the interpreter backend.
if (_CoreParameter.bFastmem && _CoreParameter.iCPUCore != CPU_INTERPRETER)
if (_CoreParameter.bFastmem)
EMM::InstallExceptionHandler(); // Let's run under memory watch
#endif
@@ -425,16 +424,11 @@ void EmuThread()
CBoot::BootUp();
// Setup our core, but can't use dynarec if we are compare server
if (_CoreParameter.iCPUCore != CPU_INTERPRETER &&
(!_CoreParameter.bRunCompareServer ||
_CoreParameter.bRunCompareClient))
{
if (_CoreParameter.iCPUCore && (!_CoreParameter.bRunCompareServer ||
_CoreParameter.bRunCompareClient))
PowerPC::SetMode(PowerPC::MODE_JIT);
}
else
{
PowerPC::SetMode(PowerPC::MODE_INTERPRETER);
}
// Update the window again because all stuff is initialized
Host_UpdateDisasmDialog();
@@ -477,7 +471,7 @@ void EmuThread()
// Spawn the CPU+GPU thread
g_cpu_thread = std::thread(cpuThreadFunc);
while (PowerPC::GetState() != PowerPC::STATE_POWERDOWN)
while (PowerPC::GetState() != PowerPC::CPU_POWERDOWN)
{
g_video_backend->PeekMessages();
Common::SleepCurrentThread(20);