[PATCH] target/i386: fix SSE and SSE2 featue check

2024-06-02 Thread lixinyu20s
From: Xinyu Li Featues check of CPUID_SSE and CPUID_SSE2 shoule use cpuid_features, rather than cpuid_ext_features Signed-off-by: Xinyu Li --- target/i386/tcg/decode-new.c.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/i386/tcg/decode-new.c.inc b/target/i386

[PATCH] target/i386: fix memory opsize for Mov to/from Seg

2024-06-02 Thread lixinyu20s
From: Xinyu Li This commit fixes an issue with MOV instructions (0x8C and 0x8E) involving segment registers by explicitly setting the memory operand size to 16 bits. It introduces a new flag X86_SPECIAL_MovSeg to handle this specification correctly. Signed-off-by: Xinyu Li --- target/i386/tcg/

[PATCH] target/i386: fix avx2 instructions vzeroall and vpermdq

2023-05-10 Thread lixinyu20s
From: Xinyu Li vzeroall: xmm_regs should be used instead of xmm_t0 vpermdq: bit 3 and 7 of imm should be considered Signed-off-by: Xinyu Li --- target/i386/ops_sse.h | 8 target/i386/tcg/emit.c.inc | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/target/i386/