[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/45] target/i386: fix SSE and SSE2 feature check
From: |
Paolo Bonzini |
Subject: |
[PULL 08/45] target/i386: fix SSE and SSE2 feature check |
Date: |
Tue, 4 Jun 2024 08:43:32 +0200 |
From: Xinyu Li <lixinyu@loongson.cn>
Features check of CPUID_SSE and CPUID_SSE2 should use cpuid_features,
rather than cpuid_ext_features.
Signed-off-by: Xinyu Li <lixinyu20s@ict.ac.cn>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Message-ID: <20240602100904.2137939-1-lixinyu20s@ict.ac.cn>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
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/tcg/decode-new.c.inc
index 27dc1bb146b..0ec849b0035 100644
--- a/target/i386/tcg/decode-new.c.inc
+++ b/target/i386/tcg/decode-new.c.inc
@@ -2041,9 +2041,9 @@ static bool has_cpuid_feature(DisasContext *s,
X86CPUIDFeature cpuid)
case X86_FEAT_PCLMULQDQ:
return (s->cpuid_ext_features & CPUID_EXT_PCLMULQDQ);
case X86_FEAT_SSE:
- return (s->cpuid_ext_features & CPUID_SSE);
+ return (s->cpuid_features & CPUID_SSE);
case X86_FEAT_SSE2:
- return (s->cpuid_ext_features & CPUID_SSE2);
+ return (s->cpuid_features & CPUID_SSE2);
case X86_FEAT_SSE3:
return (s->cpuid_ext_features & CPUID_EXT_SSE3);
case X86_FEAT_SSSE3:
--
2.45.1
- [PULL 00/45] mostly i386 patches for 2024-06-04, Paolo Bonzini, 2024/06/04
- [PULL 02/45] host/i386: nothing looks at CPUINFO_SSE4, Paolo Bonzini, 2024/06/04
- [PULL 01/45] virtio-blk: remove SCSI passthrough functionality, Paolo Bonzini, 2024/06/04
- [PULL 03/45] meson: assume x86-64-v2 baseline ISA, Paolo Bonzini, 2024/06/04
- [PULL 05/45] host/i386: assume presence of SSE2, Paolo Bonzini, 2024/06/04
- [PULL 04/45] host/i386: assume presence of CMOV, Paolo Bonzini, 2024/06/04
- [PULL 06/45] host/i386: assume presence of SSSE3, Paolo Bonzini, 2024/06/04
- [PULL 08/45] target/i386: fix SSE and SSE2 feature check,
Paolo Bonzini <=
- [PULL 07/45] host/i386: assume presence of POPCNT, Paolo Bonzini, 2024/06/04
- [PULL 09/45] target/i386: fix memory opsize for Mov to/from Seg, Paolo Bonzini, 2024/06/04
- [PULL 10/45] target/i386/tcg: Fix RDPID feature check, Paolo Bonzini, 2024/06/04
- [PULL 12/45] update-linux-headers: fix forwarding to asm-generic headers, Paolo Bonzini, 2024/06/04
- [PULL 11/45] target/i386: fix xsave.flat from kvm-unit-tests, Paolo Bonzini, 2024/06/04
- [PULL 13/45] update-linux-headers: move pvpanic.h to correct directory, Paolo Bonzini, 2024/06/04
- [PULL 14/45] linux-headers: Update to current kvm/next, Paolo Bonzini, 2024/06/04
- [PULL 15/45] update-linux-headers: import linux/kvm_para.h header, Paolo Bonzini, 2024/06/04
- [PULL 16/45] machine: allow early use of machine_require_guest_memfd, Paolo Bonzini, 2024/06/04
- [PULL 17/45] i386/sev: Replace error_report with error_setg, Paolo Bonzini, 2024/06/04