about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2023-04-30 11:02:45 +0200
committerptitSeb <sebastien.chev@gmail.com>2023-04-30 11:02:57 +0200
commit31a6f5c4e32b267bad84057f3b53ad87a53c049c (patch)
treec2dea27c660710f785bdf78bbc2a2538c8aea323 /src
parent98535e572deb77e88b9f2f3634171b6b385fc1b5 (diff)
downloadbox64-31a6f5c4e32b267bad84057f3b53ad87a53c049c.tar.gz
box64-31a6f5c4e32b267bad84057f3b53ad87a53c049c.zip
[DYNAREC] Fixed DYNAREC_TEST false-positive when opcode use NOTEST and next opcode found a difference
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64test.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x64test.c b/src/emu/x64test.c
index 525b96c9..402ab235 100644
--- a/src/emu/x64test.c
+++ b/src/emu/x64test.c
@@ -147,7 +147,7 @@ void x64test_init(x64emu_t* ref, uintptr_t ip)
         uintptr_t prev_ip = test->emu->ip.q[0];
         if(test->clean)
             x64test_check(ref, ip);
-        if(ip != prev_ip || !test->test) {
+        if(ip != prev_ip || !test->test || !test->clean) {
             CopyEmu(test->emu, ref);
         }
     }