diff options
author | vekumar <vekumar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-11 08:06:14 +0000 |
---|---|---|
committer | vekumar <vekumar@138bc75d-0d04-0410-961f-82ee72b054a4> | 2015-10-11 08:06:14 +0000 |
commit | 5814084e1ead8baeaa6395ff910a70f7c2c60f8d (patch) | |
tree | 0af173e8b0eae536903c5e77db9373525429d87b /libgcc | |
parent | e6daccdfd91169493125b81f5740ed7c94493696 (diff) | |
download | gcc-5814084e1ead8baeaa6395ff910a70f7c2c60f8d.tar.gz |
Add bdver4 for multiversioning and fix AMD model detection.
2015-10-09 Venkataramanan kumar <venkataramanan.kumar@amd.com>
* config/i386/cpuinfo.c (get_amd_cpu): Detect bdver4.
(__cpu_indicator_init): Fix model selection for AMD CPUs.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@228691 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libgcc')
-rw-r--r-- | libgcc/ChangeLog | 5 | ||||
-rw-r--r-- | libgcc/config/i386/cpuinfo.c | 5 |
2 files changed, 9 insertions, 1 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog index bb3a722b511..8676747211c 100644 --- a/libgcc/ChangeLog +++ b/libgcc/ChangeLog @@ -1,3 +1,8 @@ +2015-10-09 Venkataramanan kumar <venkataramanan.kumar@amd.com> + + * config/i386/cpuinfo.c (get_amd_cpu): Detect bdver4. + (__cpu_indicator_init): Fix model selection for AMD CPUs. + 2015-10-05 Kirill Yukhin <kirill.yukhin@intel.com> * config/i386/cpuinfo.c (get_intel_cpu): Detect "skylake-avx512". diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c index 0cbbc853056..1313ca3a704 100644 --- a/libgcc/config/i386/cpuinfo.c +++ b/libgcc/config/i386/cpuinfo.c @@ -169,6 +169,9 @@ get_amd_cpu (unsigned int family, unsigned int model) /* Bulldozer version 3 "Steamroller" */ if (model >= 0x30 && model <= 0x4f) __cpu_model.__cpu_subtype = AMDFAM15H_BDVER3; + /* Bulldozer version 4 "Excavator" */ + if (model >= 0x60 && model <= 0x7f) + __cpu_model.__cpu_subtype = AMDFAM15H_BDVER4; break; /* AMD Family 16h "btver2" */ case 0x16: @@ -455,7 +458,7 @@ __cpu_indicator_init (void) if (family == 0x0f) { family += extended_family; - model += (extended_model << 4); + model += extended_model; } /* Get CPU type. */ |