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

Recognize presence of RDTSCP on Intel CPUs as well.

Previously the detection only tested this AMD CPUs and the table check was
only present in recog_amd.c

Thanks to Andrew Roberts for reporting this issue!
This commit is contained in:
Veselin Georgiev 2014-09-23 15:11:00 +03:00
commit fc4ff90ea8
2 changed files with 1 additions and 1 deletions

View file

@ -179,6 +179,7 @@ static void load_features_common(struct cpu_raw_data_t* raw, struct cpu_id_t* da
}; };
const struct feature_map_t matchtable_edx81[] = { const struct feature_map_t matchtable_edx81[] = {
{ 11, CPU_FEATURE_SYSCALL }, { 11, CPU_FEATURE_SYSCALL },
{ 27, CPU_FEATURE_RDTSCP },
{ 29, CPU_FEATURE_LM }, { 29, CPU_FEATURE_LM },
}; };
const struct feature_map_t matchtable_ecx81[] = { const struct feature_map_t matchtable_ecx81[] = {

View file

@ -271,7 +271,6 @@ static void load_amd_features(struct cpu_raw_data_t* raw, struct cpu_id_t* data)
{ 20, CPU_FEATURE_NX }, { 20, CPU_FEATURE_NX },
{ 22, CPU_FEATURE_MMXEXT }, { 22, CPU_FEATURE_MMXEXT },
{ 25, CPU_FEATURE_FXSR_OPT }, { 25, CPU_FEATURE_FXSR_OPT },
{ 27, CPU_FEATURE_RDTSCP },
{ 30, CPU_FEATURE_3DNOWEXT }, { 30, CPU_FEATURE_3DNOWEXT },
{ 31, CPU_FEATURE_3DNOW }, { 31, CPU_FEATURE_3DNOW },
}; };