From nobody Tue Dec 16 13:57:22 2025 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1740773342; cv=none; d=zohomail.com; s=zohoarc; b=FRGk4B989OhVY9cdloBsx2Qe84LkrMVsO8pMtM2Mmj36l6JoQttISUazeeMdyHkyBKcDh6g9HPNaLXEQJCXfbrHxzGwJR9O9nwVe9/f6mL/vo+wd3T1EsK4GunLtm8qJAHlUTCIRmRKctkL+gLR9HuQZuVuD5UtTQ+GWBwDz2vA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1740773342; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=9Jop1hBaJ3pnNk3H9uIqCEBRmmCVkB6BdhpXsgr1UDY=; b=LCBvibmsNZMF3MOEJw23FKlKo47bd4glcLhpZ/K9n+jklVcXle9kU+Mz3h8p7Ehz/ctR2jpssOozu1e9QXVjJDhU/Bw/lcS7fFPVuoio5YjHzlUaFFmwvjgtQhxUWTXy1UpzR8p8xX/jly9KqzbC5GGBKApj3iQVZfjeO6SrZpM= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1740773342648208.0133495528537; Fri, 28 Feb 2025 12:09:02 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.899111.1307572 (Exim 4.92) (envelope-from ) id 1to6ee-0006c5-LA; Fri, 28 Feb 2025 20:08:16 +0000 Received: by outflank-mailman (output) from mailman id 899111.1307572; Fri, 28 Feb 2025 20:08:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1to6ee-0006bY-IQ; Fri, 28 Feb 2025 20:08:16 +0000 Received: by outflank-mailman (input) for mailman id 899111; Fri, 28 Feb 2025 20:08:15 +0000 Received: from se1-gles-flk1-in.inumbo.com ([94.247.172.50] helo=se1-gles-flk1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1to6ed-0005OT-Fm for xen-devel@lists.xenproject.org; Fri, 28 Feb 2025 20:08:15 +0000 Received: from mail-ej1-x629.google.com (mail-ej1-x629.google.com [2a00:1450:4864:20::629]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id bda37603-f60f-11ef-9898-31a8f345e629; Fri, 28 Feb 2025 21:08:14 +0100 (CET) Received: by mail-ej1-x629.google.com with SMTP id a640c23a62f3a-abbec6a0bfeso391566366b.2 for ; Fri, 28 Feb 2025 12:08:14 -0800 (PST) Received: from fedora.. ([94.75.70.14]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-abf1d1a84b7sm267586566b.19.2025.02.28.12.08.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 28 Feb 2025 12:08:12 -0800 (PST) X-Outflank-Mailman: Message body and most headers restored to incoming version X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: bda37603-f60f-11ef-9898-31a8f345e629 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1740773293; x=1741378093; darn=lists.xenproject.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9Jop1hBaJ3pnNk3H9uIqCEBRmmCVkB6BdhpXsgr1UDY=; b=IlDiEQcZE9nhIsrQPQ01U/Wg/zkm2p7DKLm1mZ1Z8Ns3DRRl8L7lPrdHJnyP1Yz5V3 yuXDS00tT8HPJX5N/XspE1K6/7TUAwH9bvVBKJd6JYE2fr5YSqy+MKNT+jUbo/xJfW2k 7Qn1tzuNvCtbFt6VldOymtJGVT+5InNcp0H1FTggNVmD39ThmTSZIPHXdWhi2tf5odq/ fzIElhZCvxszReQ58q0vexTvkMZi1eoMyivmmFZ83GcSALhCqwG3UKofaCLZzNRYq/qp vSGQ0IfqgdZv2s+WYNT4aghCLK3kr5AWSy14hrzT0ueG1nmiEtaqcM8YBAwW3KFl9o3M sTvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1740773293; x=1741378093; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9Jop1hBaJ3pnNk3H9uIqCEBRmmCVkB6BdhpXsgr1UDY=; b=Knp997cJw1GZMVR4w/6UBCROkTdrluIbZ4fGmBjNJOH5KxQ9FiHwAk0yS6sfumjbCF 4GTCqxDAlDNXlXy3AG/07dvHV4ntnxNeK3piViKAfNfI4L6GyCYCwvUaVzFu7w3aSD7r QuXnZmaml97RVRyY7Ok37mS0D7pj18FRNihrOPtimiFEV4oI8XUVvtnevyzL7m2sOH96 B2WfZVCGPKUhd5IMJva1tPEwb9AplGF17lZnTM/wfQSRlL7wprQc1Iya5GOSXo6fKehx z8MfDoYGOHMLnJwNycFEIVfLvzcLcIfnQvYPdtFjR39KGbkgqara6BQMRISLrlPdOXQW uwEQ== X-Gm-Message-State: AOJu0YxN1N8MjwT24IQNTBip3HrLT990zSxcHa0rZPwoj+s5ulw9TDx7 n1ordv12HmEecEra+8Lp/K0Bl/e9UIhb1myd9dhRoTbIfL5vCpftcQoF2A== X-Gm-Gg: ASbGncvVmw/tGYZzohKrdXd0l2afXr/URZAmf/hYsAUH+BGPle+m6BIvyGlQedsS2yy wpLLn8tMivUpTfbi0Jx+wANI0A3B9Qj8ONkcGnQdgP+tYBpvaahwOSB9FAKFm1ivdD7GZ8g9saA CGj7udadnlOAUlp/F5L4Ppe8st87uy5q864hSQb3pT/Wpi+B9qtnITRMWxycD2sNbpHX8Fiys0/ YZLDg9IzFKwjctm80KHlPyw2zsv5F0Zopa9e1/posySzFe3CvAP9iEX2EMRU6nsk021t1hhnRz+ cREAKni8juenFBdx61epGcq1Wsc= X-Google-Smtp-Source: AGHT+IGZJUtBwtWiR5R7fDgmYa24CEBFv5BD0O0AC7XrGL+dNTz4PtKsfMCvms3phO+qDJ/5vcQQvA== X-Received: by 2002:a17:907:3d88:b0:abc:919:a989 with SMTP id a640c23a62f3a-abf2682e053mr475604166b.48.1740773292936; Fri, 28 Feb 2025 12:08:12 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Oleksii Kurochko , Alistair Francis , Bob Eshleman , Connor Davis , Andrew Cooper , Anthony PERARD , Michal Orzel , Jan Beulich , Julien Grall , =?UTF-8?q?Roger=20Pau=20Monn=C3=A9?= , Stefano Stabellini Subject: [PATCH v8 3/6] xen/riscv: drop CONFIG_RISCV_ISA_RV64G Date: Fri, 28 Feb 2025 21:07:41 +0100 Message-ID: <335dcb9923a06631cbfb6656e262a560f17a4522.1740764258.git.oleksii.kurochko@gmail.com> X-Mailer: git-send-email 2.48.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @gmail.com) X-ZM-MESSAGEID: 1740773344108019000 'G' stands for "imafd_zicsr_zifencei". Extensions 'f' and 'd' aren't really needed for Xen, and allowing floating point registers to be used can lead to crashes. Extensions 'i', 'm', 'a', 'zicsr', and 'zifencei' are necessary for the operation of Xen, which is why they are used explicitly (unconditionally) in -march. Drop "Base ISA" choice from riscv/Kconfig as it is always empty. Signed-off-by: Oleksii Kurochko Reviewed-by: Jan Beulich --- Changes in V8: - Add Reviewed-by: Jan Beulich . --- Changes in V7: - For better readability use +=3D instead of :=3D for riscv-march-* in arc= h.mk. - Drop spaces from riscv-march-y by usage of subst macros. - Drop "Base ISA" choice as it is empty now. - Update the commit message. --- Changes in V6: - new patch. --- xen/arch/riscv/Kconfig | 18 ------------------ xen/arch/riscv/arch.mk | 8 +++++--- 2 files changed, 5 insertions(+), 21 deletions(-) diff --git a/xen/arch/riscv/Kconfig b/xen/arch/riscv/Kconfig index fa95cd0a42..d882e0a059 100644 --- a/xen/arch/riscv/Kconfig +++ b/xen/arch/riscv/Kconfig @@ -23,24 +23,6 @@ endmenu =20 menu "ISA Selection" =20 -choice - prompt "Base ISA" - default RISCV_ISA_RV64G if RISCV_64 - help - This selects the base ISA extensions that Xen will target. - -config RISCV_ISA_RV64G - bool "RV64G" - help - Use the RV64I base ISA, plus - "M" for multiply/divide, - "A" for atomic instructions, - =E2=80=9CF=E2=80=9D/"D" for {single/double}-precision floating-point i= nstructions, - "Zicsr" for control and status register access, - "Zifencei" for instruction-fetch fence. - -endchoice - config RISCV_ISA_C bool "Compressed extension" default y diff --git a/xen/arch/riscv/arch.mk b/xen/arch/riscv/arch.mk index 17827c302c..3034da76cb 100644 --- a/xen/arch/riscv/arch.mk +++ b/xen/arch/riscv/arch.mk @@ -6,10 +6,12 @@ $(call cc-options-add,CFLAGS,CC,$(EMBEDDED_EXTRA_CFLAGS)) riscv-abi-$(CONFIG_RISCV_32) :=3D -mabi=3Dilp32 riscv-abi-$(CONFIG_RISCV_64) :=3D -mabi=3Dlp64 =20 -riscv-march-$(CONFIG_RISCV_ISA_RV64G) :=3D rv64g -riscv-march-$(CONFIG_RISCV_ISA_C) :=3D $(riscv-march-y)c +riscv-march-$(CONFIG_RISCV_64) :=3D rv64 +riscv-march-y +=3D ima +riscv-march-$(CONFIG_RISCV_ISA_C) +=3D c +riscv-march-y +=3D _zicsr_zifencei =20 -riscv-generic-flags :=3D $(riscv-abi-y) -march=3D$(riscv-march-y) +riscv-generic-flags :=3D $(riscv-abi-y) -march=3D$(subst $(space),,$(riscv= -march-y)) =20 # check-extension: Check whether extenstion is supported by a compiler and # an assembler. --=20 2.48.1