about summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorptitSeb <sebastien.chev@gmail.com>2025-06-25 10:24:36 +0200
committerptitSeb <sebastien.chev@gmail.com>2025-06-25 10:24:36 +0200
commit6a6ad9748af864c41f9b2d71bc8ea1abb8b4ad11 (patch)
treeda58aded738e45089e6fcc2205f83448ceab5f6c /src
parent70ee5f0c83eafb082eccc14a0157844672a7c68d (diff)
downloadbox64-6a6ad9748af864c41f9b2d71bc8ea1abb8b4ad11.tar.gz
box64-6a6ad9748af864c41f9b2d71bc8ea1abb8b4ad11.zip
[INTERP] Fixed CF flag of BLSI opcode
Diffstat (limited to 'src')
-rw-r--r--src/emu/x64runavx0f38.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/emu/x64runavx0f38.c b/src/emu/x64runavx0f38.c
index 2d647ec4..3ff1ba49 100644
--- a/src/emu/x64runavx0f38.c
+++ b/src/emu/x64runavx0f38.c
@@ -117,7 +117,7 @@ uintptr_t RunAVX_0F38(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step)
                     ResetFlags(emu);
                     GETVD;
                     GETED(0);
-                    CONDITIONAL_SET_FLAG(rex.w?(ED->q[0]==0):(ED->dword[0]==0), F_CF);
+                    CONDITIONAL_SET_FLAG(rex.w?(ED->q[0]!=0):(ED->dword[0]!=0), F_CF);
                     if(rex.w)
                         VD->sq[0] = ED->sq[0] & (-ED->sq[0]);
                     else