[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] fix SSE2/SSSE3 feature detection in tcg/decode-new.c.inc
From: |
Frank Mehnert |
Subject: |
[PATCH] fix SSE2/SSSE3 feature detection in tcg/decode-new.c.inc |
Date: |
Wed, 29 May 2024 15:53:13 +0200 |
The correct bitmask is cpuid_features rather than cpuid_ext_features.
---
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 27dc1bb146..0ec849b003 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
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [PATCH] fix SSE2/SSSE3 feature detection in tcg/decode-new.c.inc,
Frank Mehnert <=