aboutsummaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
authorVenkataramanan Kumar <venkataramanan.kumar@amd.com>2015-10-30 13:20:42 +0000
committerVenkataramanan Kumar <vekumar@gcc.gnu.org>2015-10-30 13:20:42 +0000
commit2ef543e47016ce97fabb14dc3cba52f86e8f4a16 (patch)
tree298eff63d77d888024ef4e7571a1247a4a0fcfb5 /libgcc
parent7524f419ae7935594e7ec85daf7cdf736a835b04 (diff)
downloadgcc-2ef543e47016ce97fabb14dc3cba52f86e8f4a16.zip
gcc-2ef543e47016ce97fabb14dc3cba52f86e8f4a16.tar.gz
gcc-2ef543e47016ce97fabb14dc3cba52f86e8f4a16.tar.bz2
libgcc changes for AMD znver1.
2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com> * config/i386/i386.c (get_builtin_code_for_version): Set priority for PROCESSOR_ZNVER1. (enum processor_model): Add M_AMDFAM17H_znver1. (struct arch_names_table): Likewise. * doc/extend.texi: ADD znver1. 2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com> * config/i386/cpuinfo.c (enum processor_types): Add AMDFAM17H. (processor_subtypes): Add znver1. (get_amd_cpu): Detect znver1. From-SVN: r229575
Diffstat (limited to 'libgcc')
-rw-r--r--libgcc/ChangeLog6
-rw-r--r--libgcc/config/i386/cpuinfo.c8
2 files changed, 14 insertions, 0 deletions
diff --git a/libgcc/ChangeLog b/libgcc/ChangeLog
index 5ce44ec..d964b24 100644
--- a/libgcc/ChangeLog
+++ b/libgcc/ChangeLog
@@ -1,3 +1,9 @@
+2015-10-30 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
+
+ * config/i386/cpuinfo.c (enum processor_types): Add AMDFAM17H.
+ (processor_subtypes): Add znver1.
+ (get_amd_cpu): Detect znver1.
+
2015-10-29 Christophe Lyon <christophe.lyon@linaro.org>
* config.host (arm*-*-eabi*, arm*-*-symbianelf*, arm*-*-rtems*):
diff --git a/libgcc/config/i386/cpuinfo.c b/libgcc/config/i386/cpuinfo.c
index 1313ca3..b0ebfcf 100644
--- a/libgcc/config/i386/cpuinfo.c
+++ b/libgcc/config/i386/cpuinfo.c
@@ -59,6 +59,7 @@ enum processor_types
INTEL_KNL,
AMD_BTVER1,
AMD_BTVER2,
+ AMDFAM17H,
CPU_TYPE_MAX
};
@@ -74,6 +75,7 @@ enum processor_subtypes
AMDFAM15H_BDVER2,
AMDFAM15H_BDVER3,
AMDFAM15H_BDVER4,
+ AMDFAM17H_ZNVER1,
INTEL_COREI7_IVYBRIDGE,
INTEL_COREI7_HASWELL,
INTEL_COREI7_BROADWELL,
@@ -177,6 +179,12 @@ get_amd_cpu (unsigned int family, unsigned int model)
case 0x16:
__cpu_model.__cpu_type = AMD_BTVER2;
break;
+ case 0x17:
+ __cpu_model.__cpu_type = AMDFAM17H;
+ /* AMD family 17h version 1. */
+ if (model <= 0x1f)
+ __cpu_model.__cpu_subtype = AMDFAM17H_ZNVER1;
+ break;
default:
break;
}