Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 6B88EC25B74 for ; Mon, 27 May 2024 09:22:19 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sBWY7-0001b1-Hd; Mon, 27 May 2024 05:21:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sBWY2-0001Ym-OC for qemu-riscv@nongnu.org; Mon, 27 May 2024 05:21:42 -0400 Received: from mail-oo1-xc2f.google.com ([2607:f8b0:4864:20::c2f]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1sBWY0-0002Vj-6Z for qemu-riscv@nongnu.org; Mon, 27 May 2024 05:21:42 -0400 Received: by mail-oo1-xc2f.google.com with SMTP id 006d021491bc7-5b5254f9c32so4184267eaf.0 for ; Mon, 27 May 2024 02:21:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1716801698; x=1717406498; darn=nongnu.org; h=content-transfer-encoding:in-reply-to:cc:from:content-language :references:to:subject:user-agent:mime-version:date:message-id:from :to:cc:subject:date:message-id:reply-to; bh=MVjX/0bcikX44F39xQGF8AtuyQpw/NXj+W1HhMED9R8=; b=aFB4vHyYxlaeiftkLGP/0DOa4l/xSEvuggc4zSpXuGp9KPLPQRdjd6WixFntFnOBFy qqQ9d8CdfEWc/dA284NjpOopSlvyZNGrk9306gen5qYDbWtaYUr+VJ2uF+COy0e+qk9A GUuPGxJB0R1ap1Orsr65hQY24ZeQPpWLoBamxEkokFkOD4TIySlMsQVFUKEVqOyIE3MR N9vB0ivTVMT7W/4mdNbhnu31OCpiJP81ZL3dvHw9Lqn0X4IUcj1I4n3Y9dG08WE9bJH1 9Ms37mVIiqGdLthLbPFI3IMQ7C6Qe4w11zFOElliucsMY0i6v2OTAgXvefIAp5olwVCI cuhw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716801698; x=1717406498; h=content-transfer-encoding:in-reply-to:cc:from:content-language :references:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=MVjX/0bcikX44F39xQGF8AtuyQpw/NXj+W1HhMED9R8=; b=MtFet0bweUGwfzWC1w3BEn2KIHr1KkAeaqw76A5Z3MkqixM24ERAayiaMXTlIAR0Sy bzEZa1Pm+MQlhQyFYnwm/NyhmG/cnpSeQlGCQaCidzL7U5hnEsbEi768Xo6GleD/X0GB i18PM8grwe26udRnaugcsaWlLggTwQ7360ZPMp45qmJFKHEpc8iUBuIXH+ZQOHlwB2Xi +XlDTwL0bRMU0J3NxuymPZKbyuzM5LvM5w+gB1tqYEzLwMqtytVo2BIP3Ezh1AtKN0d6 5GLqz7YUzESa9AO6BGJ4AzIJf4fw6271p8EGdPxBnBQAz3IIjSLB/qr7R9eN76hcgzyz 5xMQ== X-Forwarded-Encrypted: i=1; AJvYcCVGshXQpiNzCmv+CoV5A9Pv6m9FlNf1nREORmuOb6qo3MJw6xEYvDwQO0F9291mcjHGPWlORRc3I21zVK7mARNFAmboEZk= X-Gm-Message-State: AOJu0Yy1as/AvApIdWGIZR+umMMh+WsXPhZU80dbPW+S7J3wWOFIwnY4 pnFYn0gNta02aMX8I/yP4UxYriBrqvB0U1urp9MX+xKAQmzRPM4NklKRSEP6m8c= X-Google-Smtp-Source: AGHT+IFaAAGuqAK49lFqYjG/UaHNeqF1TfriIviUYQCJI8avKPpBCGXyohDCSea2JyZXtySlz7idEg== X-Received: by 2002:a05:6358:9f9f:b0:192:ba37:f9f1 with SMTP id e5c5f4694b2df-197e4fc7886mr827976555d.5.1716801698238; Mon, 27 May 2024 02:21:38 -0700 (PDT) Received: from [192.168.68.110] ([177.94.42.4]) by smtp.gmail.com with ESMTPSA id 41be03b00d2f7-6822073fbffsm5707738a12.2.2024.05.27.02.21.35 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Mon, 27 May 2024 02:21:37 -0700 (PDT) Message-ID: <4d2d56aa-5758-4320-a5ef-53ebb87ab494@ventanamicro.com> Date: Mon, 27 May 2024 06:21:33 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [RESEND PATCH v2 0/5] target/riscv: Support RISC-V privilege 1.13 spec To: "Fea.Wang" , qemu-devel@nongnu.org, qemu-riscv@nongnu.org References: <20240515080605.2675399-1-fea.wang@sifive.com> Content-Language: en-US From: Daniel Henrique Barboza Cc: Palmer Dabbelt , Alistair Francis , Bin Meng , Weiwei Li , Liu Zhiwei In-Reply-To: <20240515080605.2675399-1-fea.wang@sifive.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::c2f; envelope-from=dbarboza@ventanamicro.com; helo=mail-oo1-xc2f.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-riscv@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Sender: qemu-riscv-bounces+qemu-riscv=archiver.kernel.org@nongnu.org Fea, Please try to also add all RISC-V QEMU maintainers and reviewers when sending patches. It will get your patches reviewed and queued faster. Otherwise the maintainers can miss you your series due to high ML traffic. You can fetch who you want to CC using the get_maintainer.pl script with the patch files or any source file in particular, e.g.: $ ./scripts/get_maintainer.pl -f target/riscv/cpu.c Palmer Dabbelt (supporter:RISC-V TCG CPUs) Alistair Francis (supporter:RISC-V TCG CPUs) Bin Meng (supporter:RISC-V TCG CPUs) Weiwei Li (reviewer:RISC-V TCG CPUs) Daniel Henrique Barboza (reviewer:RISC-V TCG CPUs) Liu Zhiwei (reviewer:RISC-V TCG CPUs) qemu-riscv@nongnu.org (open list:RISC-V TCG CPUs) qemu-devel@nongnu.org (open list:All patches CC here) I added the extra folk in the CC for this reply so don't worry about it. Alistair, please queue this series. It's already fully acked and I would like to add some bits on top of the priv_spec 1.13 support. Thanks, Daniel On 5/15/24 05:05, Fea.Wang wrote: > Based on the change log for the RISC-V privilege 1.13 spec, add the > support for ss1p13. > > Ref:https://github.com/riscv/riscv-isa-manual/blob/a7d93c9/src/priv-preface.adoc?plain=1#L40-L72 > > Lists what to do without clarification or document format. > * Redefined misa.MXL to be read-only, making MXLEN a constant.(Skip, implementation ignored) > * Added the constraint that SXLEN≥UXLEN.(Skip, implementation ignored) > * Defined the misa.V field to reflect that the V extension has been implemented.(Skip, existed) > * Defined the RV32-only medelegh and hedelegh CSRs.(Done in these patches) > * Defined the misaligned atomicity granule PMA, superseding the proposed Zam extension..(Skip, implementation ignored) > * Allocated interrupt 13 for Sscofpmf LCOFI interrupt.(Skip, existed) > * Defined hardware error and software check exception codes.(Done in these patches) > * Specified synchronization requirements when changing the PBMTE fields in menvcfg and henvcfg.(Skip, implementation ignored) > * Incorporated Svade and Svadu extension specifications.(Skip, existed) > > > Fea.Wang (4): > target/riscv: Support the version for ss1p13 > target/riscv: Add 'P1P13' bit in SMSTATEEN0 > target/riscv: Add MEDELEGH, HEDELEGH csrs for RV32 > target/riscv: Reserve exception codes for sw-check and hw-err > > Jim Shu (1): > target/riscv: Reuse the conversion function of priv_spec > > target/riscv/cpu.c | 8 ++++++-- > target/riscv/cpu.h | 5 ++++- > target/riscv/cpu_bits.h | 5 +++++ > target/riscv/cpu_cfg.h | 1 + > target/riscv/csr.c | 39 ++++++++++++++++++++++++++++++++++++++ > target/riscv/tcg/tcg-cpu.c | 17 ++++++++--------- > 6 files changed, 63 insertions(+), 12 deletions(-) >