1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2025-10-03 11:01:30 +00:00

Detect ABM feature on Intel CPUs

Resolve #144
This commit is contained in:
Xorg 2020-05-18 21:11:01 +02:00
commit 4b06a9a23e
No known key found for this signature in database
GPG key ID: 1E55EE2EFF18BC1A
15 changed files with 15 additions and 14 deletions

View file

@ -232,6 +232,7 @@ static void load_features_common(struct cpu_raw_data_t* raw, struct cpu_id_t* da
};
const struct feature_map_t matchtable_ecx81[] = {
{ 0, CPU_FEATURE_LAHF_LM },
{ 5, CPU_FEATURE_ABM },
};
const struct feature_map_t matchtable_edx87[] = {
{ 8, CPU_FEATURE_CONSTANT_TSC },

View file

@ -317,7 +317,7 @@ static void load_amd_features(struct cpu_raw_data_t* raw, struct cpu_id_t* data)
const struct feature_map_t matchtable_ecx81[] = {
{ 1, CPU_FEATURE_CMP_LEGACY },
{ 2, CPU_FEATURE_SVM },
{ 5, CPU_FEATURE_ABM },
/* id 5 is handled in common */
{ 6, CPU_FEATURE_SSE4A },
{ 7, CPU_FEATURE_MISALIGNSSE },
{ 8, CPU_FEATURE_3DNOWPREFETCH },