From 11c02e5a62639e99af6453883fbbfa6b43c11874 Mon Sep 17 00:00:00 2001 From: Merry Date: Tue, 2 Aug 2022 01:23:31 +0100 Subject: [PATCH] backend/arm64/fpsr_manager: Bugfixes --- src/dynarmic/backend/arm64/fpsr_manager.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/dynarmic/backend/arm64/fpsr_manager.cpp b/src/dynarmic/backend/arm64/fpsr_manager.cpp index 8c697f5c..1a1c323e 100644 --- a/src/dynarmic/backend/arm64/fpsr_manager.cpp +++ b/src/dynarmic/backend/arm64/fpsr_manager.cpp @@ -21,7 +21,7 @@ void FpsrManager::Spill() { return; code.LDR(Wscratch0, Xstate, state_fpsr_offset); - code.MSR(oaknut::SystemReg::FPSR, Xscratch1); + code.MRS(Xscratch1, oaknut::SystemReg::FPSR); code.ORR(Wscratch0, Wscratch0, Wscratch1); code.STR(Wscratch0, Xstate, state_fpsr_offset); @@ -32,7 +32,7 @@ void FpsrManager::Load() { if (fpsr_loaded) return; - code.MRS(XZR, oaknut::SystemReg::FPSR); + code.MSR(oaknut::SystemReg::FPSR, XZR); fpsr_loaded = true; }