From patchwork Tue Aug 15 10:05:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jamie Gibbons X-Patchwork-Id: 1821318 Return-Path: X-Original-To: incoming-buildroot@patchwork.ozlabs.org Delivered-To: patchwork-incoming-buildroot@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=buildroot.org (client-ip=2605:bc80:3010::133; helo=smtp2.osuosl.org; envelope-from=buildroot-bounces@buildroot.org; receiver=) Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4RQ6Nf52phz1yf2 for ; Tue, 15 Aug 2023 20:06:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id A9B5A40B08; Tue, 15 Aug 2023 10:06:08 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org A9B5A40B08 X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id hLqJ3QDB6CTz; Tue, 15 Aug 2023 10:06:08 +0000 (UTC) Received: from ash.osuosl.org (ash.osuosl.org [140.211.166.34]) by smtp2.osuosl.org (Postfix) with ESMTP id E019840BEE; Tue, 15 Aug 2023 10:06:06 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org E019840BEE X-Original-To: buildroot@lists.busybox.net Delivered-To: buildroot@osuosl.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by ash.osuosl.org (Postfix) with ESMTP id 6F18E1BF2C0 for ; Tue, 15 Aug 2023 10:05:53 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 4680581ECC for ; Tue, 15 Aug 2023 10:05:53 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org 4680581ECC X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id EWOSAJxjQpsX for ; Tue, 15 Aug 2023 10:05:52 +0000 (UTC) Received: from esa.microchip.iphmx.com (esa.microchip.iphmx.com [68.232.153.233]) by smtp1.osuosl.org (Postfix) with ESMTPS id AA84781EC8 for ; Tue, 15 Aug 2023 10:05:52 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org AA84781EC8 X-IronPort-AV: E=Sophos;i="6.01,174,1684825200"; d="scan'208";a="241676372" X-Amp-Result: SKIPPED(no attachment in message) Received: from unknown (HELO email.microchip.com) ([170.129.1.10]) by esa1.microchip.iphmx.com with ESMTP/TLS/AES256-SHA256; 15 Aug 2023 03:05:51 -0700 Received: from chn-vm-ex02.mchp-main.com (10.10.85.144) by chn-vm-ex01.mchp-main.com (10.10.85.143) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.21; Tue, 15 Aug 2023 03:05:51 -0700 Received: from jamie-dev.microchip.com (10.10.115.15) by chn-vm-ex02.mchp-main.com (10.10.85.144) with Microsoft SMTP Server id 15.1.2507.21 via Frontend Transport; Tue, 15 Aug 2023 03:05:50 -0700 To: Date: Tue, 15 Aug 2023 11:05:58 +0100 Message-ID: <20230815100600.297932-2-jamie.gibbons@microchip.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230815100600.297932-1-jamie.gibbons@microchip.com> References: <20230815100600.297932-1-jamie.gibbons@microchip.com> MIME-Version: 1.0 X-Mailman-Original-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=microchip.com; i=@microchip.com; q=dns/txt; s=mchp; t=1692093952; x=1723629952; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=F2TL1WtlovcCKfVNhRhxgr3OkR2MXGnu7oBqZH1iOJU=; b=RYxOQqo2xESvyxkkE3WjJvzkZ33rSr2Lm4F5neERDPoWjcgVtAxXPAHD OykZWwZMxNwuvAHrh2RPxt2ZdrJ/nIVie7tKtnu531c55yoHuG5YTGs23 vF+PSgDBhF6152bexkEehpKFN3xOrU7oUr2oKs0im96x2eHe3VMQfli/o KdcBh7DFHCKy90DIfWgUR1dAwhuNeMnriNhoEd7B74XTI/AHIz70RJldH hNkPkok5DVX08FD9N9Zi3RQNItXCr0vRIkW/MKOVCSs9lTXVvWqJxIL5c UJxdH883xeg4ZNNC5dm075sNL9JSYWdaQqb+wgUTi6EeQG75lVoAfRdFE w==; X-Mailman-Original-Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=microchip.com header.i=@microchip.com header.a=rsa-sha256 header.s=mchp header.b=RYxOQqo2 Subject: [Buildroot] [PATCH 1/3] arch/Config.in.riscv: update instruction set ext X-BeenThere: buildroot@buildroot.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Discussion and development of buildroot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Jamie Gibbons via buildroot From: Jamie Gibbons Reply-To: Jamie Gibbons Cc: Conor Dooley , Nicolas Ferre , Ludovic Desroches , Thomas Petazzoni , Valentina Fernandez Alanis , Jamie Gibbons Errors-To: buildroot-bounces@buildroot.org Sender: "buildroot" Allow a RISC-V G core to support C and V. Move custom RVC and RVV instructions from RISC-V custom core to RISC-V general core. Signed-off-by: Jamie Gibbons --- arch/Config.in.riscv | 24 +++++++++++++++--------- 1 file changed, 15 insertions(+), 9 deletions(-) diff --git a/arch/Config.in.riscv b/arch/Config.in.riscv index 3dfbb4165f..ab839fd8a4 100644 --- a/arch/Config.in.riscv +++ b/arch/Config.in.riscv @@ -35,6 +35,21 @@ config BR2_riscv_g help General purpose (G) is equivalent to IMAFD. +if BR2_riscv_g + +comment "Instruction Set Extensions" + +config BR2_RISCV_ISA_CUSTOM_RVC + bool "Compressed Instructions (C)" + select BR2_RISCV_ISA_RVC + +config BR2_RISCV_ISA_CUSTOM_RVV + bool "Vector Instructions (V)" + select BR2_RISCV_ISA_RVV + select BR2_ARCH_NEEDS_GCC_AT_LEAST_12 + +endif + config BR2_riscv_custom bool "Custom architecture" select BR2_RISCV_ISA_RVI @@ -62,15 +77,6 @@ config BR2_RISCV_ISA_CUSTOM_RVD depends on BR2_RISCV_ISA_RVF select BR2_RISCV_ISA_RVD -config BR2_RISCV_ISA_CUSTOM_RVC - bool "Compressed Instructions (C)" - select BR2_RISCV_ISA_RVC - -config BR2_RISCV_ISA_CUSTOM_RVV - bool "Vector Instructions (V)" - select BR2_RISCV_ISA_RVV - select BR2_ARCH_NEEDS_GCC_AT_LEAST_12 - endif choice