summaryrefslogtreecommitdiff
path: root/libgcc
diff options
context:
space:
mode:
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 5ce44ec8bee..d964b243879 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 1313ca3a704..b0ebfcf7fc7 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;
}