diff options
author | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-20 01:40:07 +0200 |
---|---|---|
committer | Fernando Sahmkow <fsahmkow27@gmail.com> | 2020-06-27 17:36:27 +0200 |
commit | 4105f38022a525aab2e7d4288f121b4f0a0dd7b2 (patch) | |
tree | 3cf68e47fcc17442111b8af16a3fff19b3f3434f /src/core/arm/dynarmic | |
parent | SVC: Add GetCurrentProcessorNumber32, CreateTransferMemory32, SetMemoryAttribute32 (diff) | |
download | yuzu-4105f38022a525aab2e7d4288f121b4f0a0dd7b2.tar yuzu-4105f38022a525aab2e7d4288f121b4f0a0dd7b2.tar.gz yuzu-4105f38022a525aab2e7d4288f121b4f0a0dd7b2.tar.bz2 yuzu-4105f38022a525aab2e7d4288f121b4f0a0dd7b2.tar.lz yuzu-4105f38022a525aab2e7d4288f121b4f0a0dd7b2.tar.xz yuzu-4105f38022a525aab2e7d4288f121b4f0a0dd7b2.tar.zst yuzu-4105f38022a525aab2e7d4288f121b4f0a0dd7b2.zip |
Diffstat (limited to 'src/core/arm/dynarmic')
-rw-r--r-- | src/core/arm/dynarmic/arm_dynarmic_32.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/src/core/arm/dynarmic/arm_dynarmic_32.cpp b/src/core/arm/dynarmic/arm_dynarmic_32.cpp index 5df4fc079..cfda12098 100644 --- a/src/core/arm/dynarmic/arm_dynarmic_32.cpp +++ b/src/core/arm/dynarmic/arm_dynarmic_32.cpp @@ -222,13 +222,17 @@ void ARM_Dynarmic_32::SaveContext(ThreadContext32& ctx) { Dynarmic::A32::Context context; jit->SaveContext(context); ctx.cpu_registers = context.Regs(); + ctx.extension_registers = context.ExtRegs(); ctx.cpsr = context.Cpsr(); + ctx.fpscr = context.Fpscr(); } void ARM_Dynarmic_32::LoadContext(const ThreadContext32& ctx) { Dynarmic::A32::Context context; context.Regs() = ctx.cpu_registers; + context.ExtRegs() = ctx.extension_registers; context.SetCpsr(ctx.cpsr); + context.SetFpscr(ctx.fpscr); jit->LoadContext(context); } @@ -243,7 +247,9 @@ void ARM_Dynarmic_32::ClearInstructionCache() { jit->ClearCache(); } -void ARM_Dynarmic_32::ClearExclusiveState() {} +void ARM_Dynarmic_32::ClearExclusiveState() { + jit->ClearExclusiveState(); +} void ARM_Dynarmic_32::PageTableChanged(Common::PageTable& page_table, std::size_t new_address_space_size_in_bits) { |