From e8967a937cf26f62952014f1580bdd9811deb8d1 Mon Sep 17 00:00:00 2001 From: RSDuck Date: Thu, 13 Apr 2023 01:49:10 +0200 Subject: fix JIT backjump detection pretty embarrassing to loop variable mixup --- src/ARMJIT.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/ARMJIT.cpp b/src/ARMJIT.cpp index 5f644ab..7a4cdc6 100644 --- a/src/ARMJIT.cpp +++ b/src/ARMJIT.cpp @@ -818,7 +818,7 @@ void CompileBlock(ARM* cpu) { for (int j = 0; j < i; j++) { - if (instrs[i].Addr == target) + if (instrs[j].Addr == target) { isBackJump = true; break; -- cgit v1.2.3