From patchwork Fri Nov 9 12:59:00 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lukas Auer X-Patchwork-Id: 995508 X-Patchwork-Delegate: uboot@andestech.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=aisec.fraunhofer.de Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 42s0rL52z5z9s9h for ; Sat, 10 Nov 2018 00:10:26 +1100 (AEDT) Received: by lists.denx.de (Postfix, from userid 105) id 63D65C22541; Fri, 9 Nov 2018 13:01:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 20B16C22567; Fri, 9 Nov 2018 13:00:07 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 9FAABC22517; Fri, 9 Nov 2018 13:00:02 +0000 (UTC) Received: from mail-edgeS23.fraunhofer.de (mail-edges23.fraunhofer.de [153.97.7.23]) by lists.denx.de (Postfix) with ESMTPS id 5749FC220C7 for ; Fri, 9 Nov 2018 13:00:02 +0000 (UTC) X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A2EKAAAmhOVb/xoHYZlkGgEBAQEBAgEBAQEHAgEBAQGBUwMBAQEBCwGCA4FWOYxvli2OLoF6DYRsAoMiIjYLDQEDAQECAQECAgJpHAyFPAZ5EFEhNgYOBYMhgWoDFAGpBYd6DYIZCQGHSIQqgVg/g3WDBIJ1hQ4Cnx4uBwKBEYEHBItSgyALGIlPhx+OJYlMgUoOJIFVMxokgzuGAYpaPgEyAY1DAQE X-IPAS-Result: A2EKAAAmhOVb/xoHYZlkGgEBAQEBAgEBAQEHAgEBAQGBUwMBAQEBCwGCA4FWOYxvli2OLoF6DYRsAoMiIjYLDQEDAQECAQECAgJpHAyFPAZ5EFEhNgYOBYMhgWoDFAGpBYd6DYIZCQGHSIQqgVg/g3WDBIJ1hQ4Cnx4uBwKBEYEHBItSgyALGIlPhx+OJYlMgUoOJIFVMxokgzuGAYpaPgEyAY1DAQE X-IronPort-AV: E=Sophos;i="5.54,483,1534802400"; d="scan'208";a="7622496" Received: from mail-mtas26.fraunhofer.de ([153.97.7.26]) by mail-edgeS23.fraunhofer.de with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 09 Nov 2018 14:00:02 +0100 X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: A0AaAADxg+Vb/xBhWMBkGwEBAQEDAQEBBwMBAQGBUwQBAQELAYM4ITmMb5Ytji6Beg2EbAKDQzYLDQEDAQECAQECbRwMhTsGeRBRITYGDgWDIYFqAxWpBId6DYIZCQGHSIYCP4N1gwSCdYUOAp8eLgcCgRGBBwSLUoMgCxiJT4cfjiWJTIFKDiOBVTMaJIM7hgGKWj4DMAGNQwEB X-IronPort-AV: E=Sophos;i="5.54,483,1534802400"; d="scan'208";a="51714100" Received: from fgdemucivp01ltm.xch.fraunhofer.de (HELO FGDEMUCIMP12EXC.ads.fraunhofer.de) ([192.88.97.16]) by mail-mtaS26.fraunhofer.de with ESMTP/TLS/AES256-SHA; 09 Nov 2018 14:00:01 +0100 Received: from muc-nb-035.aisec.fraunhofer.de (10.80.233.51) by FGDEMUCIMP12EXC.ads.fraunhofer.de (10.80.232.43) with Microsoft SMTP Server (TLS) id 14.3.408.0; Fri, 9 Nov 2018 14:00:00 +0100 From: Lukas Auer To: Date: Fri, 9 Nov 2018 13:59:00 +0100 Message-ID: <20181109125923.7034-6-lukas.auer@aisec.fraunhofer.de> X-Mailer: git-send-email 2.17.2 In-Reply-To: <20181109125923.7034-1-lukas.auer@aisec.fraunhofer.de> References: <20181109125923.7034-1-lukas.auer@aisec.fraunhofer.de> MIME-Version: 1.0 X-TM-AS-Product-Ver: SMEX-11.0.0.4179-8.200.1013-24212.007 X-TM-AS-Result: No--1.031000-8.000000-31 X-TM-AS-User-Approved-Sender: No X-TM-AS-User-Blocked-Sender: No Subject: [U-Boot] [PATCH v3 05/28] riscv: add Kconfig entries for the C and A ISA extensions X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Add Kconfig entries for the C (compressed instructions) and A (atomic instructions) ISA extensions. Only the C ISA extension is selectable. This matches the configuration in Linux. The Kconfig entries are not used yet. A follow-up patch will select the appropriate compiler flags based on the Kconfig configuration. Signed-off-by: Lukas Auer Reviewed-by: Bin Meng --- Changes in v3: None Changes in v2: - Replace the description of RISCV_ISA_C with that of the Linux kernel, as suggested by Bin Meng arch/riscv/Kconfig | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/arch/riscv/Kconfig b/arch/riscv/Kconfig index b81e0d990a..0de77a75d7 100644 --- a/arch/riscv/Kconfig +++ b/arch/riscv/Kconfig @@ -38,6 +38,17 @@ config ARCH_RV64I endchoice +config RISCV_ISA_C + bool "Emit compressed instructions" + default y + help + Adds "C" to the ISA subsets that the toolchain is allowed to emit + when building U-Boot, which results in compressed instructions in the + U-Boot binary. + +config RISCV_ISA_A + def_bool y + config 32BIT bool