diff options
author | Uros Bizjak <ubizjak@gmail.com> | 2013-12-26 15:12:20 +0100 |
---|---|---|
committer | Uros Bizjak <uros@gcc.gnu.org> | 2013-12-26 15:12:20 +0100 |
commit | 1879e97f6cf296fb0a30e85350b79f73fc58aad5 (patch) | |
tree | 77ada0b2458ccbed700347fdd8d7abe888466876 /libgcc | |
parent | f4a4bdbb6c1600f8ecfe494a49160abdad99a72c (diff) | |
download | gcc-1879e97f6cf296fb0a30e85350b79f73fc58aad5.zip gcc-1879e97f6cf296fb0a30e85350b79f73fc58aad5.tar.gz gcc-1879e97f6cf296fb0a30e85350b79f73fc58aad5.tar.bz2 |
cpuinfo.c (enum vendor_signatures): Remove.
* config/i386/cpuinfo.c (enum vendor_signatures): Remove.
(__cpu_indicator_init): Use signature_INTEL_ebx and signature_AMD_ebx
from cpuid.h to check vendor signatures.
From-SVN: r206211
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 6 | ||||
-rw-r--r-- | libgcc/config/i386/cpuinfo.c | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index c4dd997..1488dec 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,9 @@ +2013-12-26 Uros Bizjak <ubizjak@gmail.com> + + * config/i386/cpuinfo.c (enum vendor_signatures): Remove. + (__cpu_indicator_init): Use signature_INTEL_ebx and signature_AMD_ebx + from cpuid.h to check vendor signatures. + 2013-12-26 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> * config/i386/cpuinfo.c (processor_types): Rename AMD cpu names diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c index 7835b20..394db87 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -36,12 +36,6 @@ see the files COPYING3 and COPYING.RUNTIME respectively. If not, see int __cpu_indicator_init (void) __attribute__ ((constructor CONSTRUCTOR_PRIORITY)); -enum vendor_signatures -{ - SIG_INTEL = 0x756e6547 /* Genu */, - SIG_AMD = 0x68747541 /* Auth */ -}; - /* Processor Vendor and Models. */ enum processor_vendor @@ -368,7 +362,7 @@ __cpu_indicator_init (void) extended_model = (eax >> 12) & 0xf0; extended_family = (eax >> 20) & 0xff; - if (vendor == SIG_INTEL) + if (vendor == signature_INTEL_ebx) { /* Adjust model and family for Intel CPUS. */ if (family == 0x0f) @@ -385,7 +379,7 @@ __cpu_indicator_init (void) get_available_features (ecx, edx, max_level); __cpu_model.__cpu_vendor = VENDOR_INTEL; } - else if (vendor == SIG_AMD) + else if (vendor == signature_AMD_ebx) { /* Adjust model and family for AMD CPUS. */ if (family == 0x0f) |