From nobody Sun Feb 8 22:10:42 2026 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=1675781257; cv=none; d=zohomail.com; s=zohoarc; b=DNyMsyf7e4PRNQIDa5FY8yQqV/RuRguqZ85mNycLT67U2oNEunjrrYNKgML6Kxhn2bVUXHEsTOeWlHjVgoUhFysl9VvxEYVR9XuO+jx0qjmX3j0NWLX6f2reFP5RCitMany8YrUky7Uxols0Pghy2Jja2/RbqsW5WyAKodoubIg= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1675781257; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=BeKlKQYE7Ni0q7sa33oNWy1hbogFwzoa9jmFgKxuPpg=; b=MN7s8uWw60G1QeuSM9ov23/3jzoytIgkP0FKuUa7JqH+mT+5fr7eu7dEiftcHTHVZMp0PWDAOKTsEb2YLlJAF0drKFhCx2TjH5RZreM5fEvIcxXaBzTzS0crVg8SQoSRi2RmutqlFSpt+WVvyD53NER9ftvPxd/lkeTTAT2zIBs= 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 1675781257353350.4068214862224; Tue, 7 Feb 2023 06:47:37 -0800 (PST) Received: from list by lists.xenproject.org with outflank-mailman.491187.760190 (Exim 4.92) (envelope-from ) id 1pPPFM-0004Pt-4u; Tue, 07 Feb 2023 14:47:00 +0000 Received: by outflank-mailman (output) from mailman id 491187.760190; Tue, 07 Feb 2023 14:47:00 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1pPPFM-0004OG-0P; Tue, 07 Feb 2023 14:47:00 +0000 Received: by outflank-mailman (input) for mailman id 491187; Tue, 07 Feb 2023 14:46:59 +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 1pPPFL-0004Hz-At for xen-devel@lists.xenproject.org; Tue, 07 Feb 2023 14:46:59 +0000 Received: from mail-wr1-x431.google.com (mail-wr1-x431.google.com [2a00:1450:4864:20::431]) by se1-gles-flk1.inumbo.com (Halon) with ESMTPS id 4469773f-a6f6-11ed-93b5-47a8fe42b414; Tue, 07 Feb 2023 15:46:56 +0100 (CET) Received: by mail-wr1-x431.google.com with SMTP id i5so6624533wrc.0 for ; Tue, 07 Feb 2023 06:46:56 -0800 (PST) Received: from 34-6F-24-FC-D2-65.. (46.204.109.85.nat.umts.dynamic.t-mobile.pl. [46.204.109.85]) by smtp.gmail.com with ESMTPSA id h10-20020a5d4fca000000b002c3e94cb757sm5269743wrw.117.2023.02.07.06.46.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 07 Feb 2023 06:46:54 -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: 4469773f-a6f6-11ed-93b5-47a8fe42b414 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; 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=BeKlKQYE7Ni0q7sa33oNWy1hbogFwzoa9jmFgKxuPpg=; b=YpY2gkWaM3zV8ZLTipnSRbsaciGgxykBKswjqXD9rs2M08Yb1xKF6N1rIUKI+Sntjh 6aVlI3f+2gm0ojcPul6HrkhnAT7tWT27pOvcCVYNaDSss2iCzKZB5DGP/051Y2HEfJtj DJqT6LGFHO0thy6tJ8+stYjgNiyIYiYiIFA7AGR7XjLboitoQ7P2EVPMzVJBKNfburEU 2jszF0t51cHIwGp2+hPLJPElczd8ErI+Ku/ZqwLVQmqJAAcE1abNtruM87VMjSOQ80M7 eXF2ItubuoPHMjeSYT/1eLGFBoqRX1HQUe9cv8f1aOXPnUehZDYvH0S3GAyQTuwp5zh+ J8BA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; 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=BeKlKQYE7Ni0q7sa33oNWy1hbogFwzoa9jmFgKxuPpg=; b=tGnd0o1x0B86yZXaX15ycYFaUQYp2B4lN1XeDWoCOqgZHvCkbVTCFUhrorHnVDCvTb jrYXkXXcfnptRfuQ0iXpr/n32J9aIQBGFpx6tgIOFRWIqlHfcFyfUNyl7FkVT7e+dmki e4D9FK2Z2nE92F6GRFnyVGqK18Rl4sRcXJWdjr86TeSJQciYk+7Fim3JfTTKyk+qsxiQ 3WJN5TKIkS0AlcodGq13W6LmH+rzD7aG9zVJLjVMSUBuNruCoXZyn8aEgKghlW0RLXx5 byZPproVVI27alvyGp+vCGPSJju2+JaFB1MXtg76JsHU96tPt0AMGV9UXE9qWn6DeA/+ 7W3g== X-Gm-Message-State: AO0yUKX+i+ePB3eGe044AXsocn+FBSIxLrj801G1DijZk4ifUqul71Ml ChjbxXaiSHzbdoVXvW7LasSZQjqyFZA= X-Google-Smtp-Source: AK7set9Gs824FluQ0oqE09fWcuFr5+gOFbrFPP88qJeejCuF+aPWckC5o5p1oW14I1IaA5jbIhq5Sw== X-Received: by 2002:a5d:488b:0:b0:2bf:e533:315a with SMTP id g11-20020a5d488b000000b002bfe533315amr2837644wrq.62.1675781215205; Tue, 07 Feb 2023 06:46:55 -0800 (PST) From: Oleksii Kurochko To: xen-devel@lists.xenproject.org Cc: Jan Beulich , Julien Grall , Andrew Cooper , Stefano Stabellini , Gianluca Guida , Oleksii Kurochko , Bob Eshleman , Alistair Francis , Connor Davis Subject: [PATCH v3 01/14] xen/riscv: change ISA to r64G Date: Tue, 7 Feb 2023 16:46:36 +0200 Message-Id: X-Mailer: git-send-email 2.39.0 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: 1675781258752100025 Work with some registers requires csr command which is part of Zicsr. Also ISA was changed from r64ima to r64g where G is represented the =E2=80=9CIMAFDZicsr Zifencei=E2=80=9D base and extensions so basically it i= s the same as it was before plus additional extensions we will need in the nearest future. Signed-off-by: Oleksii Kurochko Reviewed-by: Alistair Francis --- Changes in V3: - Change the name of config RISCV_ISA_RV64IMA to RISCV_ISA_RV64G as instructions from Zicsr and Zifencei extensions aren't part of I extension any more. --- Changes in V2: - Nothing changed --- xen/arch/riscv/Kconfig | 14 +++++++++----- xen/arch/riscv/arch.mk | 2 +- 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/xen/arch/riscv/Kconfig b/xen/arch/riscv/Kconfig index 468e250c86..f382b36f6c 100644 --- a/xen/arch/riscv/Kconfig +++ b/xen/arch/riscv/Kconfig @@ -19,15 +19,19 @@ menu "ISA Selection" =20 choice prompt "Base ISA" - default RISCV_ISA_RV64IMA if RISCV_64 + default RISCV_ISA_RV64G if RISCV_64 help This selects the base ISA extensions that Xen will target. =20 -config RISCV_ISA_RV64IMA - bool "RV64IMA" +config RISCV_ISA_RV64G + bool "RV64G" help - Use the RV64I base ISA, plus the "M" and "A" extensions - for integer multiply/divide and atomic instructions, respectively. + 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. =20 endchoice =20 diff --git a/xen/arch/riscv/arch.mk b/xen/arch/riscv/arch.mk index 012dc677c3..45fe858ee0 100644 --- a/xen/arch/riscv/arch.mk +++ b/xen/arch/riscv/arch.mk @@ -3,7 +3,7 @@ =20 CFLAGS-$(CONFIG_RISCV_64) +=3D -mabi=3Dlp64 =20 -riscv-march-$(CONFIG_RISCV_ISA_RV64IMA) :=3D rv64ima +riscv-march-$(CONFIG_RISCV_ISA_RV64G) :=3D rv64g riscv-march-$(CONFIG_RISCV_ISA_C) :=3D $(riscv-march-y)c =20 # Note that -mcmodel=3Dmedany is used so that Xen can be mapped --=20 2.39.0