diff --git a/libcpuid/cpuid_main.c b/libcpuid/cpuid_main.c index b486a3d..c638f09 100644 --- a/libcpuid/cpuid_main.c +++ b/libcpuid/cpuid_main.c @@ -455,6 +455,7 @@ const char* cpu_feature_str(cpu_feature_t feature) { CPU_FEATURE_RDTSCP, "rdtscp" }, { CPU_FEATURE_LM, "lm" }, { CPU_FEATURE_LAHF_LM, "lahf_lm" }, + { CPU_FEATURE_CMP_LEGACY, "cmp_legacy" }, { CPU_FEATURE_SVM, "svm" }, { CPU_FEATURE_SSE4A, "sse4a" }, { CPU_FEATURE_MISALIGNSSE, "misalignsse" }, diff --git a/libcpuid/libcpuid.h b/libcpuid/libcpuid.h index ae85606..d31b3ac 100644 --- a/libcpuid/libcpuid.h +++ b/libcpuid/libcpuid.h @@ -284,6 +284,7 @@ enum _cpu_feature_t { CPU_FEATURE_RDTSCP, /*!< RDTSCP instruction supported (AMD-only) */ CPU_FEATURE_LM, /*!< Long mode (x86_64/EM64T) supported */ CPU_FEATURE_LAHF_LM, /*!< LAHF/SAHF supported in 64-bit mode */ + CPU_FEATURE_CMP_LEGACY, /*!< core multi-processing legacy mode */ CPU_FEATURE_SVM, /*!< AMD Secure virtual machine */ CPU_FEATURE_ABM, /*!< LZCNT instruction support */ CPU_FEATURE_MISALIGNSSE,/*!< Misaligned SSE supported */ diff --git a/libcpuid/recog_amd.c b/libcpuid/recog_amd.c index 24cea05..1609be9 100644 --- a/libcpuid/recog_amd.c +++ b/libcpuid/recog_amd.c @@ -164,6 +164,7 @@ static void load_amd_features(struct cpu_raw_data_t* raw, struct cpu_id_t* data) { 31, CPU_FEATURE_3DNOW }, }; const struct feature_map_t matchtable_ecx81[] = { + { 1, CPU_FEATURE_CMP_LEGACY }, { 2, CPU_FEATURE_SVM }, { 5, CPU_FEATURE_ABM }, { 6, CPU_FEATURE_SSE4A },