Skip to content

Commit

Permalink
[DYNAREC] Reset fpu scratch after Instruction epilog
Browse files Browse the repository at this point in the history
  • Loading branch information
ptitSeb committed Jul 1, 2024
1 parent a842938 commit 15a7c4d
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/dynarec/dynarec_native_pass.c
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,6 @@ uintptr_t native_pass(dynarec_native_t* dyn, uintptr_t addr, int alternate, int
GOTEST(x1, x2);
}
if(dyn->insts[ninst].pred_sz>1) {SMSTART();}
fpu_reset_scratch(dyn);
if((dyn->insts[ninst].x64.need_before&~X_PEND) && !dyn->insts[ninst].pred_sz) {
READFLAGS(dyn->insts[ninst].x64.need_before&~X_PEND);
}
Expand Down Expand Up @@ -169,7 +168,7 @@ uintptr_t native_pass(dynarec_native_t* dyn, uintptr_t addr, int alternate, int
if(dyn->abort)
return ip;
INST_EPILOG;

fpu_reset_scratch(dyn);
int next = ninst+1;
#if STEP > 0
if(!dyn->insts[ninst].x64.has_next && dyn->insts[ninst].x64.jmp && dyn->insts[ninst].x64.jmp_insts!=-1)
Expand Down

0 comments on commit 15a7c4d

Please sign in to comment.