diff options
| author | gganesh <gganesh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-12 11:03:10 +0000 |
|---|---|---|
| committer | gganesh <gganesh@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-08-12 11:03:10 +0000 |
| commit | 46a4e53e1cb4cf4e550e7a713e56a1881a1d5283 (patch) | |
| tree | e001aba75f0c6a3f1e173703910135cf5834605c | |
| parent | 816faba136b6986370cfc2cebb5a80dc2b158e05 (diff) | |
| download | ppe42-gcc-46a4e53e1cb4cf4e550e7a713e56a1881a1d5283.tar.gz ppe42-gcc-46a4e53e1cb4cf4e550e7a713e56a1881a1d5283.zip | |
Backport from mainline AMD BTVER2 handling with extended family information
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/branches/gcc-4_9-branch@213852 138bc75d-0d04-0410-961f-82ee72b054a4
| -rw-r--r-- | gcc/ChangeLog | 9 | ||||
| -rw-r--r-- | gcc/config/i386/driver-i386.c | 5 |
2 files changed, 12 insertions, 2 deletions
diff --git a/gcc/ChangeLog b/gcc/ChangeLog index 2d77d2656c4..0a313a0fd5a 100644 --- a/gcc/ChangeLog +++ b/gcc/ChangeLog @@ -1,6 +1,15 @@ 2014-08-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> Backport from mainline + 2014-08-04 Ganesh Gopalasubramanian + <Ganesh.Gopalasubramanian@amd.com> + + * config/i386/driver-i386.c (host_detect_local_cpu): Handle AMD's extended + family information. Handle BTVER2 cpu with cpuid family value. + +2014-08-12 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> + + Backport from mainline 2014-06-16 Ganesh Gopalasubramanian <Ganesh.Gopalasubramanian@amd.com> diff --git a/gcc/config/i386/driver-i386.c b/gcc/config/i386/driver-i386.c index 80f6a087925..722c5469255 100644 --- a/gcc/config/i386/driver-i386.c +++ b/gcc/config/i386/driver-i386.c @@ -431,7 +431,8 @@ const char *host_detect_local_cpu (int argc, const char **argv) model = (eax >> 4) & 0x0f; family = (eax >> 8) & 0x0f; - if (vendor == signature_INTEL_ebx) + if (vendor == signature_INTEL_ebx + || vendor == signature_AMD_ebx) { unsigned int extended_model, extended_family; @@ -570,7 +571,7 @@ const char *host_detect_local_cpu (int argc, const char **argv) if (name == signature_NSC_ebx) processor = PROCESSOR_GEODE; - else if (has_movbe) + else if (has_movbe && family == 22) processor = PROCESSOR_BTVER2; else if (has_avx2) processor = PROCESSOR_BDVER4; |

