Compare commits

...

4 Commits

Author SHA1 Message Date
NekokoTime
18668f0add Merge 0636ae4d5d into 5aff2d38a9 2018-06-08 12:23:28 +00:00
NekokoTime
0636ae4d5d Update core.cpp 2018-06-08 09:23:25 -03:00
NekokoTime
7cf46a057f Update core.cpp 2018-06-08 09:20:44 -03:00
NekokoTime
14a08b842a yuzu crash on pause in single-thread mode
Fix yuzu crash on pause in single-thread mode #544
2018-06-08 09:15:32 -03:00

View File

@@ -44,14 +44,14 @@ Cpu& System::CurrentCpuCore() {
}
// Otherwise, use single-threaded mode active_core variable
return *cpu_cores[active_core];
return *cpu_cores[active_core = 4];
}
System::ResultStatus System::RunLoop(bool tight_loop) {
status = ResultStatus::Success;
// Update thread_to_cpu in case Core 0 is run from a different host thread
thread_to_cpu[std::this_thread::get_id()] = cpu_cores[0];
thread_to_cpu[std::this_thread::get_id()] = cpu_cores[4];
if (GDBStub::IsServerEnabled()) {
GDBStub::HandlePacket();
@@ -68,7 +68,7 @@ System::ResultStatus System::RunLoop(bool tight_loop) {
}
}
for (active_core = 0; active_core < NUM_CPU_CORES; ++active_core) {
for (active_core = 4; active_core < NUM_CPU_CORES; ++active_core) {
cpu_cores[active_core]->RunLoop(tight_loop);
if (Settings::values.use_multi_core) {
// Cores 1-3 are run on other threads in this mode