From patchwork Mon Dec 9 03:29:35 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "May Shao(BJ-RD)" X-Patchwork-Id: 36644 Received: (qmail 55668 invoked by alias); 9 Dec 2019 03:29:45 -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 55576 invoked by uid 89); 9 Dec 2019 03:29:44 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-17.2 required=5.0 tests=AWL, BAYES_00, BODY_8BITS, GARBLED_BODY, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3 autolearn=ham version=3.3.1 spammy=H*r:0800, intel, amd X-HELO: ZXSHCAS2.zhaoxin.com From: MayShao To: CC: , , , , Subject: [PATCH 3/3] x86: Add the test case of __get_cpu_features support for Zhaoxin processors Date: Mon, 9 Dec 2019 11:29:35 +0800 Message-ID: <1575862175-5044-4-git-send-email-MayShao@zhaoxin.com> In-Reply-To: <1575862175-5044-1-git-send-email-MayShao@zhaoxin.com> References: <1575862175-5044-1-git-send-email-MayShao@zhaoxin.com> MIME-Version: 1.0 Return-Path: MayShao@zhaoxin.com For the test case of the __get_cpu_features interface, add an item in cpu_kinds and a switch case for Zhaoxin support. Checked on x86_64-linux-gnu. Signed-off-by: MayShao --- sysdeps/x86/tst-get-cpu-features.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.7.4 保密声明: 本邮件含有保密或专有信息,仅供指定收件人使用。严禁对本邮件或其内容做任何未经授权的查阅、使用、复制或转发。 CONFIDENTIAL NOTE: This email contains confidential or legally privileged information and is for the sole use of its intended recipient. Any unauthorized review, use, copying or forwarding of this email or the content of this email is strictly prohibited. diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c index bf2b9b2..0e5327b 100644 --- a/sysdeps/x86/tst-get-cpu-features.c +++ b/sysdeps/x86/tst-get-cpu-features.c @@ -38,6 +38,7 @@ static const char * const cpu_kinds[] = "Unknown", "Intel", "AMD", + "ZHAOXIN", "Other", }; @@ -50,6 +51,7 @@ do_test (void) { case arch_kind_intel: case arch_kind_amd: + case arch_kind_zhaoxin: case arch_kind_other: printf ("Vendor: %s\n", cpu_kinds[cpu_features->basic.kind]); printf ("Family: 0x%x\n", cpu_features->basic.family);