mirror of
https://github.com/azahar-emu/dynarmic
synced 2025-11-07 07:29:59 +01:00
backend/arm64/fpsr_manager: Bugfixes
This commit is contained in:
parent
2ab0e64be4
commit
11c02e5a62
@ -21,7 +21,7 @@ void FpsrManager::Spill() {
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
code.LDR(Wscratch0, Xstate, state_fpsr_offset);
|
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.ORR(Wscratch0, Wscratch0, Wscratch1);
|
||||||
code.STR(Wscratch0, Xstate, state_fpsr_offset);
|
code.STR(Wscratch0, Xstate, state_fpsr_offset);
|
||||||
|
|
||||||
@ -32,7 +32,7 @@ void FpsrManager::Load() {
|
|||||||
if (fpsr_loaded)
|
if (fpsr_loaded)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
code.MRS(XZR, oaknut::SystemReg::FPSR);
|
code.MSR(oaknut::SystemReg::FPSR, XZR);
|
||||||
|
|
||||||
fpsr_loaded = true;
|
fpsr_loaded = true;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user