riscv: Avoid needless save/load around compile.

This commit is contained in:
Unknown W. Brackets 2023-07-21 23:09:06 -07:00
parent 165169eb31
commit 1dfedde741

View File

@ -209,12 +209,10 @@ void RiscVJit::GenerateFixedCode(const JitOptions &jo) {
JR(SCRATCH1);
SetJumpTarget(skipJump);
// No block found, let's jit. Might be able to optimize reg/frm saving later.
SaveStaticRegisters();
// No block found, let's jit. We don't need to save static regs, they're all callee saved.
RestoreRoundingMode(true);
QuickCallFunction(SCRATCH1, &MIPSComp::JitAt);
ApplyRoundingMode(true);
LoadStaticRegisters();
// Try again, the block index should be set now.
J(dispatcherNoCheck_);