]> git.ipfire.org Git - thirdparty/qemu.git/commit
i386/cpu: Move adjustment of CPUID_EXT_PDCM before feature_dependencies[] check
authorXiaoyao Li <xiaoyao.li@intel.com>
Tue, 4 Mar 2025 05:24:49 +0000 (00:24 -0500)
committerMichael Tokarev <mjt@tls.msk.ru>
Wed, 6 Aug 2025 07:03:00 +0000 (10:03 +0300)
commit3d26cb65c27190e57637644ecf6c96b8c3d246a3
tree84fe7b4984d4719fab3834f16f59b76380e014e0
parentd973766e10323cb6f48c0c73a065ccd367943456
i386/cpu: Move adjustment of CPUID_EXT_PDCM before feature_dependencies[] check

There is one entry relates to CPUID_EXT_PDCM in feature_dependencies[].
So it needs to get correct value of CPUID_EXT_PDCM before using
feature_dependencies[] to apply dependencies.

Besides, it also ensures CPUID_EXT_PDCM value is tracked in
env->features[FEAT_1_ECX].

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Reviewed-by: Zhao Liu <zhao1.liu@intel.com>
Link: https://lore.kernel.org/r/20250304052450.465445-2-xiaoyao.li@intel.com
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
(cherry picked from commit e68ec2980901c8e7f948f3305770962806c53f0b)
(Mjt: this simple cleanup is not strictly necessary for 10.0,
 but pick it up so subsequent changes in this area applies cleanly)
Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
target/i386/cpu.c