mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-07 13:38:56 -06:00
Merge pull request #3794 from EmptyChaos/frame-advance-race
Core: Add synchronization to state changes (Fix Frame Step and FIFO Player - Issue 8718)
This commit is contained in:
@ -7,6 +7,7 @@
|
||||
#include "Core/ConfigManager.h"
|
||||
#include "Core/CoreTiming.h"
|
||||
#include "Core/HLE/HLE.h"
|
||||
#include "Core/HW/CPU.h"
|
||||
#include "Core/PowerPC/CachedInterpreter.h"
|
||||
#include "Core/PowerPC/Gekko.h"
|
||||
#include "Core/PowerPC/PowerPC.h"
|
||||
@ -32,13 +33,10 @@ void CachedInterpreter::Shutdown()
|
||||
|
||||
void CachedInterpreter::Run()
|
||||
{
|
||||
while (!PowerPC::GetState())
|
||||
while (!CPU::GetState())
|
||||
{
|
||||
SingleStep();
|
||||
}
|
||||
|
||||
// Let the waiting thread know we are done leaving
|
||||
PowerPC::FinishStateMove();
|
||||
}
|
||||
|
||||
void CachedInterpreter::SingleStep()
|
||||
|
Reference in New Issue
Block a user