From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 7D229A0A0E; Wed, 12 May 2021 10:31:53 +0200 (CEST) Received: from [217.70.189.124] (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 16F9D4003F; Wed, 12 May 2021 10:31:53 +0200 (CEST) Received: from szxga06-in.huawei.com (szxga06-in.huawei.com [45.249.212.32]) by mails.dpdk.org (Postfix) with ESMTP id 3704A4003E for ; Wed, 12 May 2021 10:31:51 +0200 (CEST) Received: from DGGEMS404-HUB.china.huawei.com (unknown [172.30.72.59]) by szxga06-in.huawei.com (SkyGuard) with ESMTP id 4Fg7J23RlHzldZK; Wed, 12 May 2021 16:29:38 +0800 (CST) Received: from localhost.localdomain (10.67.165.24) by DGGEMS404-HUB.china.huawei.com (10.3.19.204) with Microsoft SMTP Server id 14.3.498.0; Wed, 12 May 2021 16:31:46 +0800 From: Chengwen Feng To: , CC: , , , , , Date: Wed, 12 May 2021 16:28:45 +0800 Message-ID: <1620808126-18876-2-git-send-email-fengchengwen@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1620808126-18876-1-git-send-email-fengchengwen@huawei.com> References: <1620808126-18876-1-git-send-email-fengchengwen@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH 1/2] config/arm: add non-SVE march for soc kunpeng930 X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" Currently, the soc_kunpeng930 declares '-march=armv8.2-a+crypto+sve', but some compiler doesn't recognize the march because it doesn't support sve. This patch adds '-march=armv8.2-a+crypto' before '-march=armv8.2-a+crypto+sve' so that: 1. If compiler doesn't support '-march=armv8.2-a+crypto+sve', then it will fallback supports 'armv8.2-a+crypto'. 2. If compiler supports '-march=armv8.2-a+crypto+sve', then it will compile SVE-related code. Fixes: 7cf32a22b240 ("config/arm: add Hisilicon kunpeng") Signed-off-by: Chengwen Feng --- config/arm/meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 3f34ec9..fe6c29b 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -158,7 +158,7 @@ implementer_hisilicon = { ] }, '0xd02': { - 'machine_args': ['-march=armv8.2-a+crypto+sve'], + 'machine_args': ['-march=armv8.2-a+crypto', '-march=armv8.2-a+crypto+sve'], 'flags': [ ['RTE_MACHINE', '"Kunpeng 930"'], ['RTE_ARM_FEATURE_ATOMICS', true], -- 2.8.1