mirror of
https://github.com/cemu-project/Cemu.git
synced 2025-01-09 11:17:30 -03:00
Use one CPU emulation thread for --force-interpreter (#1467)
This commit is contained in:
parent
4b792aa4d2
commit
92021db230
2 changed files with 3 additions and 2 deletions
|
@ -9,6 +9,7 @@
|
||||||
#include "audio/IAudioAPI.h"
|
#include "audio/IAudioAPI.h"
|
||||||
#include "audio/IAudioInputAPI.h"
|
#include "audio/IAudioInputAPI.h"
|
||||||
#include "config/ActiveSettings.h"
|
#include "config/ActiveSettings.h"
|
||||||
|
#include "config/LaunchSettings.h"
|
||||||
#include "Cafe/TitleList/GameInfo.h"
|
#include "Cafe/TitleList/GameInfo.h"
|
||||||
#include "Cafe/GraphicPack/GraphicPack2.h"
|
#include "Cafe/GraphicPack/GraphicPack2.h"
|
||||||
#include "util/helpers/SystemException.h"
|
#include "util/helpers/SystemException.h"
|
||||||
|
@ -843,7 +844,7 @@ namespace CafeSystem
|
||||||
module->TitleStart();
|
module->TitleStart();
|
||||||
cemu_initForGame();
|
cemu_initForGame();
|
||||||
// enter scheduler
|
// enter scheduler
|
||||||
if (ActiveSettings::GetCPUMode() == CPUMode::MulticoreRecompiler)
|
if (ActiveSettings::GetCPUMode() == CPUMode::MulticoreRecompiler && !LaunchSettings::ForceInterpreter())
|
||||||
coreinit::OSSchedulerBegin(3);
|
coreinit::OSSchedulerBegin(3);
|
||||||
else
|
else
|
||||||
coreinit::OSSchedulerBegin(1);
|
coreinit::OSSchedulerBegin(1);
|
||||||
|
|
|
@ -575,7 +575,7 @@ void debugger_enterTW(PPCInterpreter_t* hCPU)
|
||||||
debuggerState.debugSession.stepInto = false;
|
debuggerState.debugSession.stepInto = false;
|
||||||
debuggerState.debugSession.stepOver = false;
|
debuggerState.debugSession.stepOver = false;
|
||||||
debuggerState.debugSession.run = false;
|
debuggerState.debugSession.run = false;
|
||||||
while (true)
|
while (debuggerState.debugSession.isTrapped)
|
||||||
{
|
{
|
||||||
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
std::this_thread::sleep_for(std::chrono::milliseconds(1));
|
||||||
// check for step commands
|
// check for step commands
|
||||||
|
|
Loading…
Reference in a new issue