Fix a typo in how the AVX512DQ feature bit is checked.

Reviewed by:	kib
Sponsored by:	Intel
This commit is contained in:
Scott Long 2019-11-15 11:53:06 +00:00
parent 9220357857
commit 99a6085fde
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=354729
2 changed files with 7 additions and 1 deletions

View File

@ -236,6 +236,12 @@ bus_dma_tag_create(bus_dma_tag_t parent, bus_size_t alignment,
return (error);
}
bus_dma_tag_t
bus_dma_tag_alloc(bus_dma_tag_t parent, bus_dma_props_t props)
{
return (NULL);
}
int
bus_dma_tag_destroy(bus_dma_tag_t dmat)
{

View File

@ -1069,7 +1069,7 @@ hw_mds_recalculate(void)
}
xcr0 = rxcr(0);
if ((xcr0 & XFEATURE_ENABLED_ZMM_HI256) != 0 &&
(cpu_stdext_feature2 & CPUID_STDEXT_AVX512DQ) != 0)
(cpu_stdext_feature & CPUID_STDEXT_AVX512DQ) != 0)
mds_handler = mds_handler_skl_avx512;
else if ((xcr0 & XFEATURE_ENABLED_AVX) != 0 &&
(cpu_feature2 & CPUID2_AVX) != 0)