diff options
author | bunnei <bunneidev@gmail.com> | 2021-01-29 06:50:39 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2021-01-29 06:50:39 +0100 |
commit | c8fe8247ee8a8e236680f033dac132c76a15a319 (patch) | |
tree | daf56dfbe1ba4bcdb78a3e543ba599eb12feca01 /src/core/arm/dynarmic/arm_dynarmic_32.cpp | |
parent | hle: kernel: KThread: Release thread resource on thread exit. (diff) | |
download | yuzu-c8fe8247ee8a8e236680f033dac132c76a15a319.tar yuzu-c8fe8247ee8a8e236680f033dac132c76a15a319.tar.gz yuzu-c8fe8247ee8a8e236680f033dac132c76a15a319.tar.bz2 yuzu-c8fe8247ee8a8e236680f033dac132c76a15a319.tar.lz yuzu-c8fe8247ee8a8e236680f033dac132c76a15a319.tar.xz yuzu-c8fe8247ee8a8e236680f033dac132c76a15a319.tar.zst yuzu-c8fe8247ee8a8e236680f033dac132c76a15a319.zip |
Diffstat (limited to 'src/core/arm/dynarmic/arm_dynarmic_32.cpp')
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_32.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp index 6c4c8e9e4..c650a4dfb 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp @@ -255,6 +255,9 @@ void ARM_Dynarmic_32::ChangeProcessorID(std::size_t new_core_id) { } void ARM_Dynarmic_32::SaveContext(ThreadContext32& ctx) { + if (!jit) { + return; + } Dynarmic::A32::Context context; jit->SaveContext(context); ctx.cpu_registers = context.Regs(); @@ -264,6 +267,9 @@ void ARM_Dynarmic_32::SaveContext(ThreadContext32& ctx) { } void ARM_Dynarmic_32::LoadContext(const ThreadContext32& ctx) { + if (!jit) { + return; + } Dynarmic::A32::Context context; context.Regs() = ctx.cpu_registers; context.ExtRegs() = ctx.extension_registers; |