Skip to content

Commit

Permalink
[DYNAREC] Fix for some rare (or less rare depending on the backend) c…
Browse files Browse the repository at this point in the history
…ase of jump incorectly computed (regression from previous commit)
  • Loading branch information
ptitSeb committed Apr 24, 2024
1 parent 2a79b60 commit 856d265
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dynarec/dynarec_native.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,10 +508,10 @@ void* FillBlock64(dynablock_t* block, uintptr_t addr, int alternate, int is32bit
for(int ii=0; ii<helper.jmp_sz; ++ii) {
int i = helper.jmps[ii];
uintptr_t j = helper.insts[i].x64.jmp;
helper.insts[i].x64.jmp_insts = -1;
if(j<start || j>=end || j==helper.insts[i].x64.addr) {
if(j==helper.insts[i].x64.addr) // if there is a loop on some opcode, make the block "always to tested"
helper.always_test = 1;
helper.insts[i].x64.jmp_insts = -1;
helper.insts[i].x64.need_after |= X_PEND;
} else {
// find jump address instruction
Expand Down

0 comments on commit 856d265

Please sign in to comment.