1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-12-16 16:35:45 +00:00

Fix X2APIC, AES, XSAVE and OSXSAVE feature detection on AMD processors

This commit is contained in:
Kurt Cancemi 2016-01-16 10:53:28 -05:00
parent 78fef29bd6
commit c694397d33
2 changed files with 4 additions and 4 deletions

View file

@ -187,8 +187,10 @@ static void load_features_common(struct cpu_raw_data_t* raw, struct cpu_id_t* da
{ 12, CPU_FEATURE_FMA3 },
{ 13, CPU_FEATURE_CX16 },
{ 19, CPU_FEATURE_SSE4_1 },
{ 21, CPU_FEATURE_X2APIC },
{ 23, CPU_FEATURE_POPCNT },
{ 25, CPU_FEATURE_AES },
{ 26, CPU_FEATURE_XSAVE },
{ 27, CPU_FEATURE_OSXSAVE },
{ 28, CPU_FEATURE_AVX },
{ 29, CPU_FEATURE_F16C },
};

View file

@ -389,10 +389,8 @@ static void load_intel_features(struct cpu_raw_data_t* raw, struct cpu_id_t* dat
{ 15, CPU_FEATURE_PDCM },
{ 18, CPU_FEATURE_DCA },
{ 20, CPU_FEATURE_SSE4_2 },
{ 21, CPU_FEATURE_X2APIC },
{ 22, CPU_FEATURE_MOVBE },
{ 25, CPU_FEATURE_AES },
{ 26, CPU_FEATURE_XSAVE },
{ 27, CPU_FEATURE_OSXSAVE },
{ 30, CPU_FEATURE_RDRAND },
};
const struct feature_map_t matchtable_edx81[] = {