about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorYang Liu <liuyang22@iscas.ac.cn>2025-10-11 20:27:10 +0800
committerGitHub <noreply@github.com>2025-10-11 14:27:10 +0200
commit276e67f329df7f68894f56f951f64818135d1a69 (patch)
tree84040f4488508e8baf9295e78aba3b18d4b3cbd7
parent56684a2f67a6690740159541b693d1e80129b5bf (diff)
downloadbox64-276e67f329df7f68894f56f951f64818135d1a69.tar.gz
box64-276e67f329df7f68894f56f951f64818135d1a69.zip
[INTERP] Fixed a typo in AVX 0F 38 F5 BZHI opcode (#3054)
-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 a17b2e75..50736ffb 100644
--- a/src/emu/x64runavx0f38.c
+++ b/src/emu/x64runavx0f38.c
@@ -166,7 +166,7 @@ uintptr_t RunAVX_0F38(x64emu_t *emu, vex_t vex, uintptr_t addr, int *step)
                 CONDITIONAL_SET_FLAG((tmp32u>31), F_CF);
             }
             CONDITIONAL_SET_FLAG(rex.w?(GD->q[0]==0):(GD->dword[0]==0), F_ZF);
-            CONDITIONAL_SET_FLAG(rex.w?(VD->q[0]>>63):(VD->dword[0]>>31), F_SF);
+            CONDITIONAL_SET_FLAG(rex.w?(GD->q[0]>>63):(GD->dword[0]>>31), F_SF);
             CLEAR_FLAG(F_OF);
             // UD flags
             CLEAR_FLAG(F_AF);