Skip to content

Commit e44389b

Browse files
rrwhxMichael Tokarev
authored andcommitted
target/i386: fix SSE and SSE2 feature check
Features check of CPUID_SSE and CPUID_SSE2 should use cpuid_features, rather than cpuid_ext_features. Signed-off-by: Xinyu Li <[email protected]> Reviewed-by: Zhao Liu <[email protected]> Message-ID: <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]> (cherry picked from commit da7c959) Signed-off-by: Michael Tokarev <[email protected]>
1 parent 0ab2229 commit e44389b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

target/i386/tcg/decode-new.c.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1485,9 +1485,9 @@ static bool has_cpuid_feature(DisasContext *s, X86CPUIDFeature cpuid)
14851485
case X86_FEAT_PCLMULQDQ:
14861486
return (s->cpuid_ext_features & CPUID_EXT_PCLMULQDQ);
14871487
case X86_FEAT_SSE:
1488-
return (s->cpuid_ext_features & CPUID_SSE);
1488+
return (s->cpuid_features & CPUID_SSE);
14891489
case X86_FEAT_SSE2:
1490-
return (s->cpuid_ext_features & CPUID_SSE2);
1490+
return (s->cpuid_features & CPUID_SSE2);
14911491
case X86_FEAT_SSE3:
14921492
return (s->cpuid_ext_features & CPUID_EXT_SSE3);
14931493
case X86_FEAT_SSSE3:

0 commit comments

Comments
 (0)