From patchwork Tue Dec 15 19:49:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lu, Hongjiu" X-Patchwork-Id: 10024 Received: (qmail 17405 invoked by alias); 15 Dec 2015 19:49:38 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 17388 invoked by uid 89); 15 Dec 2015 19:49:37 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, KAM_LAZY_DOMAIN_SECURITY, NO_DNS_FOR_FROM, T_RP_MATCHES_RCVD autolearn=no version=3.3.2 X-HELO: mga01.intel.com X-ExtLoop1: 1 Date: Tue, 15 Dec 2015 11:49:35 -0800 From: "H.J. Lu" To: GNU C Library Subject: [PATCH, committed] Enable Silvermont optimizations for Knights Landing Message-ID: <20151215194935.GA8283@intel.com> Reply-To: "H.J. Lu" MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.24 (2015-08-30) Knights Landing processor is based on Silvermont. This patch enables Silvermont optimizations for Knights Landing. Tested on i686, x86-64 and x32. Checked into master branch. H.J. --- * sysdeps/x86/cpu-features.c (init_cpu_features): Enable Silvermont optimizations for Knights Landing. --- ChangeLog | 5 +++++ sysdeps/x86/cpu-features.c | 3 +++ 2 files changed, 8 insertions(+) diff --git a/ChangeLog b/ChangeLog index 7995a58..5bff90f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2015-12-15 H.J. Lu + + * sysdeps/x86/cpu-features.c (init_cpu_features): Enable + Silvermont optimizations for Knights Landing. + 2015-12-15 Andreas Schwab [BZ #17197] diff --git a/sysdeps/x86/cpu-features.c b/sysdeps/x86/cpu-features.c index fba3ef0..aff894c 100644 --- a/sysdeps/x86/cpu-features.c +++ b/sysdeps/x86/cpu-features.c @@ -78,6 +78,9 @@ init_cpu_features (struct cpu_features *cpu_features) cpu_features->feature[index_Slow_BSF] |= bit_Slow_BSF; break; + case 0x57: + /* Knights Landing. Enable Silvermont optimizations. */ + case 0x37: case 0x4a: case 0x4d: