mirror of
https://github.com/yuzu-emu/yuzu-android.git
synced 2025-06-13 19:57:59 -05:00
General: Add better safety for JIT use.
This commit is contained in:
@ -10,6 +10,7 @@
|
||||
|
||||
#include "common/alignment.h"
|
||||
#include "common/assert.h"
|
||||
#include "common/fiber.h"
|
||||
#include "common/logging/log.h"
|
||||
#include "common/microprofile.h"
|
||||
#include "common/string_util.h"
|
||||
@ -2468,7 +2469,10 @@ void Call(Core::System& system, u32 immediate) {
|
||||
}
|
||||
auto& physical_core_2 = system.CurrentPhysicalCore();
|
||||
if (physical_core.CoreIndex() != physical_core_2.CoreIndex()) {
|
||||
physical_core.Stop();
|
||||
LOG_CRITICAL(Kernel_SVC, "Rewinding");
|
||||
auto* thread = physical_core_2.Scheduler().GetCurrentThread();
|
||||
auto* host_context = thread->GetHostContext().get();
|
||||
host_context->Rewind();
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user