From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from ZXSHCAS2.zhaoxin.com (unknown [203.148.12.82]) by sourceware.org (Postfix) with ESMTPS id D4EFA38930F1 for ; Fri, 24 Apr 2020 12:29:58 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org D4EFA38930F1 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=zhaoxin.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=Mayshao-oc@zhaoxin.com Received: from zxbjmbx3.zhaoxin.com (10.29.252.165) by ZXSHCAS2.zhaoxin.com (10.28.252.162) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 24 Apr 2020 20:29:56 +0800 Received: from localhost.localdomain (124.64.17.172) by zxbjmbx3.zhaoxin.com (10.29.252.165) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.1979.3; Fri, 24 Apr 2020 20:29:54 +0800 From: mayshao-oc To: CC: , , , , , , mayshao Subject: [PATCH v3 3/3] x86: Add the test case of __get_cpu_features support for Zhaoxin processors Date: Fri, 24 Apr 2020 20:29:32 +0800 Message-ID: <1587731372-9324-4-git-send-email-mayshao-oc@zhaoxin.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1587731372-9324-1-git-send-email-mayshao-oc@zhaoxin.com> References: <1587731372-9324-1-git-send-email-mayshao-oc@zhaoxin.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [124.64.17.172] X-ClientProxiedBy: ZXSHCAS2.zhaoxin.com (10.28.252.162) To zxbjmbx3.zhaoxin.com (10.29.252.165) X-Spam-Status: No, score=-20.8 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, KAM_DMARC_STATUS, RCVD_IN_ABUSEAT, RCVD_IN_BARRACUDACENTRAL, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: libc-alpha@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Libc-alpha mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2020 12:30:00 -0000 From: mayshao For the test case of the __get_cpu_features interface, add an item in cpu_kinds and a switch case for Zhaoxin support. --- sysdeps/x86/tst-get-cpu-features.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sysdeps/x86/tst-get-cpu-features.c b/sysdeps/x86/tst-get-cpu-features.c index 0f55987..0dcb906 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); -- 2.7.4