From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 0BE844CA7 for ; Mon, 18 Mar 2019 17:51:02 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2IGkUDd024373; Mon, 18 Mar 2019 09:51:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=3QERh+V6D74p30VPpr030LgRS8ppIxRt+1wUU5v6bpM=; b=wxvteT70mZDnogG0Zsr55gqvq8pK7SyTH2RYbAP1ObAu1rytDZPmWCwLUE3hN85nZABs fp8gohrbYvwaf3ID+7Ko5Cpj8/bY+THQwJl6L60xaxE4tlk8IxR/BTAoLJ1/k/oKZKZ1 +nek8Q7xn6h03u6OJZP3okrQJ5fUOYTijZb08PrTXjjMnvDDIItKDC3p1bd62/y+2H/E ncAPDbPXw+uyQxqX1He77ABb7JscoUZSQCrAV8H18/auKxZEBbJsN/1LxJRzAVjREElc BVVV5BXjODyCsfXhxB2QJmG9O47aJBBI0vFCERRox9viGfE8WzTuwntU24Rg5z6amuOg Ig== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2ra80ch9c8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Mar 2019 09:50:59 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 18 Mar 2019 09:50:48 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.50) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 18 Mar 2019 09:50:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3QERh+V6D74p30VPpr030LgRS8ppIxRt+1wUU5v6bpM=; b=C7v1El3oaP2gHC7sv5n8TVRQbPKLaKyKBDZGzvcVsjZV0dJg8lri5Te+a05F6+JdwdwSU22XGyDryUgZ5oqHrcY539L+Jc8DlD91qiMFVn1aXwkU0re3TKfz+xjj+SnKIREnbfYf2Lr8EAuU6K/Hyk4UD+DfqwIM/EG+S0Wc2tY= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2853.namprd18.prod.outlook.com (20.179.58.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Mon, 18 Mar 2019 16:50:16 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2cce:b981:61da:f92b]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2cce:b981:61da:f92b%2]) with mapi id 15.20.1709.015; Mon, 18 Mar 2019 16:50:16 +0000 From: Jerin Jacob Kollanukkaran To: Thomas Monjalon CC: "dev@dpdk.org" , "gavin.hu@arm.com" , Pavan Nikhilesh Bhagavatula , "Jerin Jacob Kollanukkaran" Thread-Topic: [dpdk-dev] [PATCH v6 2/4] meson: add infra to support machine specific flags Thread-Index: AQHU3aqpHu6f5CFx00GnDl8bfBw2Dg== Date: Mon, 18 Mar 2019 16:50:16 +0000 Message-ID: <20190318164949.2357-2-jerinj@marvell.com> References: <20190224181041.27127-1-jerinj@marvell.com> <20190318164949.2357-1-jerinj@marvell.com> In-Reply-To: <20190318164949.2357-1-jerinj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0142.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:40::36) To BYAPR18MB2424.namprd18.prod.outlook.com (2603:10b6:a03:130::21) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-originating-ip: [111.93.218.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec320332-13a6-4c1a-599c-08d6abc1cc15 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:BYAPR18MB2853; x-ms-traffictypediagnostic: BYAPR18MB2853: x-microsoft-antispam-prvs: x-forefront-prvs: 098076C36C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(396003)(366004)(346002)(39860400002)(199004)(189003)(6916009)(52116002)(386003)(68736007)(6506007)(66066001)(71200400001)(71190400001)(2906002)(76176011)(99286004)(1076003)(256004)(5660300002)(53936002)(86362001)(78486014)(25786009)(316002)(3846002)(305945005)(8936002)(478600001)(54906003)(8676002)(50226002)(6486002)(6512007)(6436002)(81166006)(97736004)(36756003)(81156014)(7736002)(11346002)(2616005)(446003)(186003)(486006)(476003)(4326008)(26005)(14454004)(6116002)(105586002)(102836004)(106356001)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2853; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: y1418opJcLxR1N9yBmc7qC85FjbAcHXo+Z6OgXTSvhD85zCI2o8RixyR9rmXoZ338YIOhHV1bK8fc8CCGXjriT3Y3skeuobQ4tv3uHqWKlzK0G7rnc3xJMduENcHNl3LjIauTgjf8JoYHVdXM20+87ePWWSrxqWJXr4fxvbr5IInutFt9kX9eIyjkuuuExOnkJSxrCzVMBSm6bxPTP2q5EqVd3kzg4pU0QOWWebGkCOn6eO1wscgbNutkzE8UqSxw9U7+xcp6zqCv783fiA0aiAwq0cQYixlUFya0I8pR1NZZ22M/cC6+TflX/EOKEWE0neDdvGCQNSDOEjU63iwBC2AzcWET0UckX29MwgAwNDvaQERxJpov7cvTmsyWgMED5i8PPAoJVXTI11krF82TTeB+A6rjJgQDM1Tv92G5WM= Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ec320332-13a6-4c1a-599c-08d6abc1cc15 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2019 16:50:16.3214 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2853 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-18_11:, , signatures=0 Subject: [dpdk-dev] [PATCH v6 2/4] meson: add infra to support machine specific flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Mar 2019 16:51:03 -0000 From: Pavan Nikhilesh Currently, RTE_* flags are set based on the implementer ID but there might be some micro arch specific differences from the same vendor eg. CACHE_LINESIZE. Add support to set micro arch specific flags. Signed-off-by: Pavan Nikhilesh Signed-off-by: Jerin Jacob --- config/arm/meson.build | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 8e892fa77..3db6d6445 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -52,12 +52,10 @@ flags_generic =3D [ ['RTE_USE_C11_MEM_MODEL', true], ['RTE_CACHE_LINE_SIZE', 128]] flags_cavium =3D [ - ['RTE_MACHINE', '"thunderx"'], ['RTE_CACHE_LINE_SIZE', 128], ['RTE_MAX_NUMA_NODES', 2], ['RTE_MAX_LCORE', 96], - ['RTE_MAX_VFIO_GROUPS', 128], - ['RTE_USE_C11_MEM_MODEL', false]] + ['RTE_MAX_VFIO_GROUPS', 128]] flags_dpaa =3D [ ['RTE_MACHINE', '"dpaa"'], ['RTE_USE_C11_MEM_MODEL', true], @@ -71,6 +69,27 @@ flags_dpaa2 =3D [ ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16], ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]] +flags_default_extra =3D [] +flags_thunderx_extra =3D [ + ['RTE_MACHINE', '"thunderx"'], + ['RTE_USE_C11_MEM_MODEL', false]] + +machine_args_generic =3D [ + ['default', ['-march=3Darmv8-a+crc+crypto']], + ['native', ['-march=3Dnative']], + ['0xd03', ['-mcpu=3Dcortex-a53']], + ['0xd04', ['-mcpu=3Dcortex-a35']], + ['0xd07', ['-mcpu=3Dcortex-a57']], + ['0xd08', ['-mcpu=3Dcortex-a72']], + ['0xd09', ['-mcpu=3Dcortex-a73']], + ['0xd0a', ['-mcpu=3Dcortex-a75']]] + +machine_args_cavium =3D [ + ['default', ['-march=3Darmv8-a+crc+crypto','-mcpu=3Dthunderx']], + ['native', ['-march=3Dnative']], + ['0xa1', ['-mcpu=3Dthunderxt88'], flags_thunderx_extra], + ['0xa2', ['-mcpu=3Dthunderxt81'], flags_thunderx_extra], + ['0xa3', ['-mcpu=3Dthunderxt83'], flags_thunderx_extra]] =20 ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic =3D ['Generic armv8', flags_generic, machine_args_generic] @@ -157,8 +176,16 @@ else endif foreach marg: machine[2] if marg[0] =3D=3D impl_pn - foreach f: marg[1] - machine_args +=3D f + foreach flag: marg[1] + if cc.has_argument(flag) + machine_args +=3D flag + endif + endforeach + # Apply any extra machine specific flags. + foreach flag: marg.get(2, flags_default_extra) + if flag.length() > 0 + dpdk_conf.set(flag[0], flag[1]) + endif endforeach endif endforeach --=20 2.21.0 From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by dpdk.space (Postfix) with ESMTP id 8537DA05FE for ; Mon, 18 Mar 2019 17:51:05 +0100 (CET) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id 3C4114CAB; Mon, 18 Mar 2019 17:51:05 +0100 (CET) Received: from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com [67.231.148.174]) by dpdk.org (Postfix) with ESMTP id 0BE844CA7 for ; Mon, 18 Mar 2019 17:51:02 +0100 (CET) Received: from pps.filterd (m0045849.ppops.net [127.0.0.1]) by mx0a-0016f401.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x2IGkUDd024373; Mon, 18 Mar 2019 09:51:00 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com; h=from : to : cc : subject : date : message-id : references : in-reply-to : content-type : content-transfer-encoding : mime-version; s=pfpt0818; bh=3QERh+V6D74p30VPpr030LgRS8ppIxRt+1wUU5v6bpM=; b=wxvteT70mZDnogG0Zsr55gqvq8pK7SyTH2RYbAP1ObAu1rytDZPmWCwLUE3hN85nZABs fp8gohrbYvwaf3ID+7Ko5Cpj8/bY+THQwJl6L60xaxE4tlk8IxR/BTAoLJ1/k/oKZKZ1 +nek8Q7xn6h03u6OJZP3okrQJ5fUOYTijZb08PrTXjjMnvDDIItKDC3p1bd62/y+2H/E ncAPDbPXw+uyQxqX1He77ABb7JscoUZSQCrAV8H18/auKxZEBbJsN/1LxJRzAVjREElc BVVV5BXjODyCsfXhxB2QJmG9O47aJBBI0vFCERRox9viGfE8WzTuwntU24Rg5z6amuOg Ig== Received: from sc-exch01.marvell.com ([199.233.58.181]) by mx0a-0016f401.pphosted.com with ESMTP id 2ra80ch9c8-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT); Mon, 18 Mar 2019 09:50:59 -0700 Received: from SC-EXCH03.marvell.com (10.93.176.83) by SC-EXCH01.marvell.com (10.93.176.81) with Microsoft SMTP Server (TLS) id 15.0.1367.3; Mon, 18 Mar 2019 09:50:48 -0700 Received: from NAM05-CO1-obe.outbound.protection.outlook.com (104.47.48.50) by SC-EXCH03.marvell.com (10.93.176.83) with Microsoft SMTP Server (TLS) id 15.0.1367.3 via Frontend Transport; Mon, 18 Mar 2019 09:50:48 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.onmicrosoft.com; s=selector1-marvell-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=3QERh+V6D74p30VPpr030LgRS8ppIxRt+1wUU5v6bpM=; b=C7v1El3oaP2gHC7sv5n8TVRQbPKLaKyKBDZGzvcVsjZV0dJg8lri5Te+a05F6+JdwdwSU22XGyDryUgZ5oqHrcY539L+Jc8DlD91qiMFVn1aXwkU0re3TKfz+xjj+SnKIREnbfYf2Lr8EAuU6K/Hyk4UD+DfqwIM/EG+S0Wc2tY= Received: from BYAPR18MB2424.namprd18.prod.outlook.com (20.179.91.149) by BYAPR18MB2853.namprd18.prod.outlook.com (20.179.58.79) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.13; Mon, 18 Mar 2019 16:50:16 +0000 Received: from BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2cce:b981:61da:f92b]) by BYAPR18MB2424.namprd18.prod.outlook.com ([fe80::2cce:b981:61da:f92b%2]) with mapi id 15.20.1709.015; Mon, 18 Mar 2019 16:50:16 +0000 From: Jerin Jacob Kollanukkaran To: Thomas Monjalon CC: "dev@dpdk.org" , "gavin.hu@arm.com" , Pavan Nikhilesh Bhagavatula , "Jerin Jacob Kollanukkaran" Thread-Topic: [dpdk-dev] [PATCH v6 2/4] meson: add infra to support machine specific flags Thread-Index: AQHU3aqpHu6f5CFx00GnDl8bfBw2Dg== Date: Mon, 18 Mar 2019 16:50:16 +0000 Message-ID: <20190318164949.2357-2-jerinj@marvell.com> References: <20190224181041.27127-1-jerinj@marvell.com> <20190318164949.2357-1-jerinj@marvell.com> In-Reply-To: <20190318164949.2357-1-jerinj@marvell.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BM1PR01CA0142.INDPRD01.PROD.OUTLOOK.COM (2603:1096:b00:40::36) To BYAPR18MB2424.namprd18.prod.outlook.com (2603:10b6:a03:130::21) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 2.21.0 x-originating-ip: [111.93.218.67] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: ec320332-13a6-4c1a-599c-08d6abc1cc15 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(5600127)(711020)(4605104)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(2017052603328)(7153060)(7193020); SRVR:BYAPR18MB2853; x-ms-traffictypediagnostic: BYAPR18MB2853: x-microsoft-antispam-prvs: x-forefront-prvs: 098076C36C x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(136003)(376002)(396003)(366004)(346002)(39860400002)(199004)(189003)(6916009)(52116002)(386003)(68736007)(6506007)(66066001)(71200400001)(71190400001)(2906002)(76176011)(99286004)(1076003)(256004)(5660300002)(53936002)(86362001)(78486014)(25786009)(316002)(3846002)(305945005)(8936002)(478600001)(54906003)(8676002)(50226002)(6486002)(6512007)(6436002)(81166006)(97736004)(36756003)(81156014)(7736002)(11346002)(2616005)(446003)(186003)(486006)(476003)(4326008)(26005)(14454004)(6116002)(105586002)(102836004)(106356001)(107886003); DIR:OUT; SFP:1101; SCL:1; SRVR:BYAPR18MB2853; H:BYAPR18MB2424.namprd18.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX:1; received-spf: None (protection.outlook.com: marvell.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: y1418opJcLxR1N9yBmc7qC85FjbAcHXo+Z6OgXTSvhD85zCI2o8RixyR9rmXoZ338YIOhHV1bK8fc8CCGXjriT3Y3skeuobQ4tv3uHqWKlzK0G7rnc3xJMduENcHNl3LjIauTgjf8JoYHVdXM20+87ePWWSrxqWJXr4fxvbr5IInutFt9kX9eIyjkuuuExOnkJSxrCzVMBSm6bxPTP2q5EqVd3kzg4pU0QOWWebGkCOn6eO1wscgbNutkzE8UqSxw9U7+xcp6zqCv783fiA0aiAwq0cQYixlUFya0I8pR1NZZ22M/cC6+TflX/EOKEWE0neDdvGCQNSDOEjU63iwBC2AzcWET0UckX29MwgAwNDvaQERxJpov7cvTmsyWgMED5i8PPAoJVXTI11krF82TTeB+A6rjJgQDM1Tv92G5WM= Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-CrossTenant-Network-Message-Id: ec320332-13a6-4c1a-599c-08d6abc1cc15 X-MS-Exchange-CrossTenant-originalarrivaltime: 18 Mar 2019 16:50:16.3214 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 70e1fb47-1155-421d-87fc-2e58f638b6e0 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: BYAPR18MB2853 X-OriginatorOrg: marvell.com X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-18_11:, , signatures=0 Subject: [dpdk-dev] [PATCH v6 2/4] meson: add infra to support machine specific flags X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 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" Message-ID: <20190318165016.UOlV8mwT4SZAm4YnHnnuW4kJ7Uc1fZiJjayhEUsDoWE@z> From: Pavan Nikhilesh Currently, RTE_* flags are set based on the implementer ID but there might be some micro arch specific differences from the same vendor eg. CACHE_LINESIZE. Add support to set micro arch specific flags. Signed-off-by: Pavan Nikhilesh Signed-off-by: Jerin Jacob --- config/arm/meson.build | 37 ++++++++++++++++++++++++++++++++----- 1 file changed, 32 insertions(+), 5 deletions(-) diff --git a/config/arm/meson.build b/config/arm/meson.build index 8e892fa77..3db6d6445 100644 --- a/config/arm/meson.build +++ b/config/arm/meson.build @@ -52,12 +52,10 @@ flags_generic =3D [ ['RTE_USE_C11_MEM_MODEL', true], ['RTE_CACHE_LINE_SIZE', 128]] flags_cavium =3D [ - ['RTE_MACHINE', '"thunderx"'], ['RTE_CACHE_LINE_SIZE', 128], ['RTE_MAX_NUMA_NODES', 2], ['RTE_MAX_LCORE', 96], - ['RTE_MAX_VFIO_GROUPS', 128], - ['RTE_USE_C11_MEM_MODEL', false]] + ['RTE_MAX_VFIO_GROUPS', 128]] flags_dpaa =3D [ ['RTE_MACHINE', '"dpaa"'], ['RTE_USE_C11_MEM_MODEL', true], @@ -71,6 +69,27 @@ flags_dpaa2 =3D [ ['RTE_MAX_NUMA_NODES', 1], ['RTE_MAX_LCORE', 16], ['RTE_LIBRTE_DPAA2_USE_PHYS_IOVA', false]] +flags_default_extra =3D [] +flags_thunderx_extra =3D [ + ['RTE_MACHINE', '"thunderx"'], + ['RTE_USE_C11_MEM_MODEL', false]] + +machine_args_generic =3D [ + ['default', ['-march=3Darmv8-a+crc+crypto']], + ['native', ['-march=3Dnative']], + ['0xd03', ['-mcpu=3Dcortex-a53']], + ['0xd04', ['-mcpu=3Dcortex-a35']], + ['0xd07', ['-mcpu=3Dcortex-a57']], + ['0xd08', ['-mcpu=3Dcortex-a72']], + ['0xd09', ['-mcpu=3Dcortex-a73']], + ['0xd0a', ['-mcpu=3Dcortex-a75']]] + +machine_args_cavium =3D [ + ['default', ['-march=3Darmv8-a+crc+crypto','-mcpu=3Dthunderx']], + ['native', ['-march=3Dnative']], + ['0xa1', ['-mcpu=3Dthunderxt88'], flags_thunderx_extra], + ['0xa2', ['-mcpu=3Dthunderxt81'], flags_thunderx_extra], + ['0xa3', ['-mcpu=3Dthunderxt83'], flags_thunderx_extra]] =20 ## Arm implementer ID (ARM DDI 0487C.a, Section G7.2.106, Page G7-5321) impl_generic =3D ['Generic armv8', flags_generic, machine_args_generic] @@ -157,8 +176,16 @@ else endif foreach marg: machine[2] if marg[0] =3D=3D impl_pn - foreach f: marg[1] - machine_args +=3D f + foreach flag: marg[1] + if cc.has_argument(flag) + machine_args +=3D flag + endif + endforeach + # Apply any extra machine specific flags. + foreach flag: marg.get(2, flags_default_extra) + if flag.length() > 0 + dpdk_conf.set(flag[0], flag[1]) + endif endforeach endif endforeach --=20 2.21.0