1
0
Fork 0
mirror of https://github.com/anrieff/libcpuid synced 2024-11-10 22:59:13 +00:00

FFXSR flag supported

git-svn-id: https://svn.code.sf.net/p/libcpuid/code/HEAD/libcpuid@16 3b4be424-7ac5-41d7-8526-f4ddcb85d872
This commit is contained in:
Veselin Georgiev 2008-11-18 14:37:48 +00:00
parent 47ffde3908
commit f4f88108e8
3 changed files with 3 additions and 0 deletions

View file

@ -452,6 +452,7 @@ const char* cpu_feature_str(cpu_feature_t feature)
{ CPU_FEATURE_3DNOW, "3dnow" }, { CPU_FEATURE_3DNOW, "3dnow" },
{ CPU_FEATURE_3DNOWEXT, "3dnowext" }, { CPU_FEATURE_3DNOWEXT, "3dnowext" },
{ CPU_FEATURE_NX, "nx" }, { CPU_FEATURE_NX, "nx" },
{ CPU_FEATURE_FXSR_OPT, "fxsr_opt" },
{ CPU_FEATURE_RDTSCP, "rdtscp" }, { CPU_FEATURE_RDTSCP, "rdtscp" },
{ CPU_FEATURE_LM, "lm" }, { CPU_FEATURE_LM, "lm" },
{ CPU_FEATURE_LAHF_LM, "lahf_lm" }, { CPU_FEATURE_LAHF_LM, "lahf_lm" },

View file

@ -281,6 +281,7 @@ enum _cpu_feature_t {
CPU_FEATURE_3DNOW, /*!< AMD 3DNow! instructions supported */ CPU_FEATURE_3DNOW, /*!< AMD 3DNow! instructions supported */
CPU_FEATURE_3DNOWEXT, /*!< AMD 3DNow! extended instructions supported */ CPU_FEATURE_3DNOWEXT, /*!< AMD 3DNow! extended instructions supported */
CPU_FEATURE_NX, /*!< No-execute bit supported */ CPU_FEATURE_NX, /*!< No-execute bit supported */
CPU_FEATURE_FXSR_OPT, /*!< FFXSR: FXSAVE and FXRSTOR optimizations */
CPU_FEATURE_RDTSCP, /*!< RDTSCP instruction supported (AMD-only) */ CPU_FEATURE_RDTSCP, /*!< RDTSCP instruction supported (AMD-only) */
CPU_FEATURE_LM, /*!< Long mode (x86_64/EM64T) supported */ CPU_FEATURE_LM, /*!< Long mode (x86_64/EM64T) supported */
CPU_FEATURE_LAHF_LM, /*!< LAHF/SAHF supported in 64-bit mode */ CPU_FEATURE_LAHF_LM, /*!< LAHF/SAHF supported in 64-bit mode */

View file

@ -159,6 +159,7 @@ static void load_amd_features(struct cpu_raw_data_t* raw, struct cpu_id_t* data)
const struct feature_map_t matchtable_edx81[] = { const struct feature_map_t matchtable_edx81[] = {
{ 20, CPU_FEATURE_NX }, { 20, CPU_FEATURE_NX },
{ 22, CPU_FEATURE_MMXEXT }, { 22, CPU_FEATURE_MMXEXT },
{ 25, CPU_FEATURE_FXSR_OPT },
{ 27, CPU_FEATURE_RDTSCP }, { 27, CPU_FEATURE_RDTSCP },
{ 30, CPU_FEATURE_3DNOWEXT }, { 30, CPU_FEATURE_3DNOWEXT },
{ 31, CPU_FEATURE_3DNOW }, { 31, CPU_FEATURE_3DNOW },