aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorRSDuck <RSDuck@users.noreply.github.com>2023-04-13 01:49:10 +0200
committerRSDuck <RSDuck@users.noreply.github.com>2023-04-13 01:49:32 +0200
commite8967a937cf26f62952014f1580bdd9811deb8d1 (patch)
tree7c3da390a6d1ac737137baacd40d93e9268fa2bf /src
parenta864f845e07a1b8c5ee63150d450fff4028c67da (diff)
fix JIT backjump detection
pretty embarrassing to loop variable mixup
Diffstat (limited to 'src')
-rw-r--r--src/ARMJIT.cpp2
1 files changed, 1 insertions, 1 deletions
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;