From patchwork Sun Sep 3 13:17:48 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Yann E. MORIN" X-Patchwork-Id: 809291 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=busybox.net (client-ip=140.211.166.138; helo=whitealder.osuosl.org; envelope-from=buildroot-bounces@busybox.net; receiver=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="reDJLilw"; dkim-atps=neutral Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3xlYSw19ZPz9s8J for ; Sun, 3 Sep 2017 23:18:24 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id CCBCA86241; Sun, 3 Sep 2017 13:18:19 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id XZ3AFdq55QZ6; Sun, 3 Sep 2017 13:18:15 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by whitealder.osuosl.org (Postfix) with ESMTP id 50EDA862A0; Sun, 3 Sep 2017 13:18:14 +0000 (UTC) X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from hemlock.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by ash.osuosl.org (Postfix) with ESMTP id 53CA81C0DB4 for ; Sun, 3 Sep 2017 13:18:06 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by hemlock.osuosl.org (Postfix) with ESMTP id AA3828852E for ; Sun, 3 Sep 2017 13:18:05 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from hemlock.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 28LXXVLAey8X for ; Sun, 3 Sep 2017 13:18:04 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mail-wm0-f65.google.com (mail-wm0-f65.google.com [74.125.82.65]) by hemlock.osuosl.org (Postfix) with ESMTPS id 8CB7B88932 for ; Sun, 3 Sep 2017 13:18:04 +0000 (UTC) Received: by mail-wm0-f65.google.com with SMTP id u26so4133552wma.5 for ; Sun, 03 Sep 2017 06:18:04 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=sender:from:to:cc:subject:date:message-id:in-reply-to:references; bh=cdimYOZk0M/ncQs33vW6Z2XpdG678vM5I9PhT/HqCEI=; b=reDJLilwbsC3ovci91m0er7ZMvkmZ6Gq9YfX3qcDlwWFwW6YIYSkkCe5EA1Cq2JUdH lscafFJ9eAxJCFiyD00UbiPo7IY6QsxC1lDNdjJ4ZOI9rWQrTKTbVgKjnQiYAPlw9MqF PMqKS0JOLdrjq7X1Qeje5eRfXdstKYDKDO6B8ULC0GYDGElbdnnR8sNRbZ9YgtDvCxh0 FEUjA3g/6TCRSNzUT77EgEj5Kid9BTwnYyARFFtsoOwOAI9psd5XAwbIFrtVNNo61iS1 UXQCYLKdmNplUvDpbhnuDGmAwTdbd4UDWp8FXqbgsdgVBNaq58lHv90Cfvhv/x3MPoEE W5EQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:sender:from:to:cc:subject:date:message-id :in-reply-to:references; bh=cdimYOZk0M/ncQs33vW6Z2XpdG678vM5I9PhT/HqCEI=; b=j9jEe2oTGYnZA6iX3NliT6u6Fg2876e9OiOv/92Fbb50+vvBtgZGluAt4P8G1Pnsiz uolz+i7405o2U64wUezAZvJe7NOvVH9Dfj0/J8/vTAjYdWyjiX2MtOw0d1J1wqgYF//x WMNVIVj+vj6WGgtukE7yiI23IZS4yRiU+Oc5lZMFL4tAbJZE+Q6oP0Q8ilAvd8IqFAIz aPMvOu55ywxm8CmnFcrScmqvo3rBlaxLfbTrBJ/9WTIB+HRK8KQYSTxZiJXaLwzK6p71 UG2fMt0OEK6S2XBE02LgxzmKsShlsPMXsjMvkGosoo+nJcH+uNSspapoyIYNp9cibDJ4 Vkug== X-Gm-Message-State: AHPjjUgtQiZm4K3epwciyP2b43Xj8d15Urk/feA21RYF8aDxsQ4Wch0N vF3exLsFKMpMCQHC X-Google-Smtp-Source: ADKCNb4dLGeXwJVcHbMgrw0zGuJon6RXoQQ5RLz6f0b8Fbn9ex8W4Jjw9pTOkdJsM4L01cUS+6BskQ== X-Received: by 10.28.193.194 with SMTP id r185mr1732911wmf.147.1504444682846; Sun, 03 Sep 2017 06:18:02 -0700 (PDT) Received: from localhost.localdomain (2a01cb0886107300d59898fcbeacd7d5.ipv6.abo.wanadoo.fr. [2a01:cb08:8610:7300:d598:98fc:beac:d7d5]) by smtp.gmail.com with ESMTPSA id c139sm6351605wmh.32.2017.09.03.06.18.01 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 03 Sep 2017 06:18:01 -0700 (PDT) From: "Yann E. MORIN" To: buildroot@buildroot.org Date: Sun, 3 Sep 2017 15:17:48 +0200 Message-Id: <26299bebf4d92dc57d8722f1f11eb3b2209ceb30.1504444617.git.yann.morin.1998@free.fr> X-Mailer: git-send-email 2.11.0 In-Reply-To: References: Cc: Thomas Petazzoni , "Yann E. MORIN" Subject: [Buildroot] [PATCH 8/9] arch/arm: add armv8.1a cores X-BeenThere: buildroot@busybox.net X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: buildroot-bounces@busybox.net Sender: "buildroot" The armv8.1a generation is a cumulative extension to armv8a. It adds new extensions, and makes some previously optional ones now mandatory. Since gcc correctly enables the appropriate extensions based on the core name, we don't really need to introduce a separate config for armv8.1a, and we can piggyback on armv8a. All those new cores are aarch64 only (gcc fails to build in arm mode). Signed-off-by: "Yann E. MORIN" Cc: Thomas Petazzoni --- arch/Config.in.arm | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/arch/Config.in.arm b/arch/Config.in.arm index 40d6ae18b8..1cb75c1b69 100644 --- a/arch/Config.in.arm +++ b/arch/Config.in.arm @@ -400,6 +400,37 @@ config BR2_xgene1 select BR2_ARM_CPU_ARMV8A select BR2_ARCH_HAS_MMU_OPTIONAL select BR2_ARCH_NEEDS_GCC_AT_LEAST_5 + +if BR2_ARCH_IS_64 +comment "armv8.1a cores" +config BR2_thunderx2t99 + bool "thunderx2t99" + select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 +config BR2_thunderx2t99p1 + bool "thunderx2t99p1" + select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 +config BR2_vulcan + bool "vulcan" + select BR2_ARM_CPU_HAS_ARM if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_NEON if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_THUMB2 if !BR2_ARCH_IS_64 + select BR2_ARM_CPU_HAS_FP_ARMV8 + select BR2_ARM_CPU_ARMV8A + select BR2_ARCH_HAS_MMU_OPTIONAL + select BR2_ARCH_NEEDS_GCC_AT_LEAST_7 +endif # BR2_ARCH_IS_64 endchoice config BR2_ARM_ENABLE_NEON @@ -705,6 +736,10 @@ config BR2_GCC_TARGET_CPU default "thunderxt88" if BR2_thunderxt88 default "thunderxt88p1" if BR2_thunderxt88p1 default "xgene1" if BR2_xgene1 + # armv8.1a + default "thunderx2t99" if BR2_thunderx2t99 + default "thunderx2t99p1" if BR2_thunderx2t99p1 + default "vulcan" if BR2_vulcan config BR2_GCC_TARGET_ABI default "aapcs-linux" if BR2_arm || BR2_armeb