Message ID | 20240718054357.18756-1-zhangdongdong@eswincomputing.com |
---|---|
Headers | show
Return-Path: <opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=oOKqTMqG; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.infradead.org (client-ip=2607:7c80:54:3::133; helo=bombadil.infradead.org; envelope-from=opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=patchwork.ozlabs.org) Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:3::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4WPhZn0dhcz1xrQ for <incoming@patchwork.ozlabs.org>; Thu, 18 Jul 2024 15:44:29 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=KDq1PacAKU/CA+hggkXwvhzt10nhYIo+0l7BE4dK+js=; b=oOK qTMqGGmsraoYMoUltmGVx5B1op+DakjlJ8wrHZ38B6IF6gOi+RwUpbh6YsKuSMr110p/qEOhlWFOb NU/O9yftVbTac9HqwN/ThcUrT3Q7Qmkh9ogGTGK4oPeqfh91mI+HjFpwwGf3cl51z9g8QfPwJGBd1 us+HjPzc50kKZkDtwl2gdhSXCcFF+Iu6v36GjY5bY+DYy52fc+wJ8bLuVjzXkBvYtss/jNj6Qg/sT q9Vin0YGeMxbeQJokaYaBeJKk8Mh3ocYJ/82LDeB9aB7odzWpIZDljs1fYLpvuJ4W8OfcrLiKHUKq 8szrLPXa1HDHInoc+zsrFaVlQhdGSaw==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUJw7-0000000Fr0l-0HJQ; Thu, 18 Jul 2024 05:44:15 +0000 Received: from zg8tmja2lje4os43os4xodqa.icoremail.net ([206.189.79.184]) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1sUJw3-0000000Fr01-3iHM for opensbi@lists.infradead.org; Thu, 18 Jul 2024 05:44:14 +0000 Received: from ubuntu18.eswin.cn (unknown [10.12.192.173]) by app1 (Coremail) with SMTP id TAJkCgBX+OSfq5hmWG4WAA--.27394S4; Thu, 18 Jul 2024 13:43:59 +0800 (CST) From: zhangdongdong@eswincomputing.com To: opensbi@lists.infradead.org Subject: [PATCH v2 0/1] lib:sbi: Enhance CSR Handling in system_opcode_insn Date: Thu, 18 Jul 2024 13:43:56 +0800 Message-Id: <20240718054357.18756-1-zhangdongdong@eswincomputing.com> X-Mailer: git-send-email 2.17.1 X-CM-TRANSID: TAJkCgBX+OSfq5hmWG4WAA--.27394S4 X-Coremail-Antispam: 1UD129KBjDUn29KB7ZKAUJUUUUU529EdanIXcx71UUUUU7v73 VFW2AGmfu7bjvjm3AaLaJ3UjIYCTnIWjp_UUUY27AC8VAFwI0_Jr0_Gr1l1xkIjI8I6I8E 6xAIw20EY4v20xvaj40_Wr0E3s1l1IIY67AEw4v_Jr0_Jr4l8cAvFVAK0II2c7xJM28Cjx kF64kEwVA0rcxSw2x7M28EF7xvwVC0I7IYx2IY67AKxVWDJVCq3wA2z4x0Y4vE2Ix0cI8I cVCY1x0267AKxVW8Jr0_Cr1UM28EF7xvwVC2z280aVAFwI0_GcCE3s1l84ACjcxK6I8E87 Iv6xkF7I0E14v26rxl6s0DM2AIxVAIcxkEcVAq07x20xvEncxIr21l5I8CrVACY4xI64kE 6c02F40Ex7xfMcIj6xIIjxv20xvE14v26r1j6r18McIj6I8E87Iv67AKxVWUJVW8JwAm72 CE4IkC6x0Yz7v_Jr0_Gr1lF7xvr2IYc2Ij64vIr41lF7I21c0EjII2zVCS5cI20VAGYxC7 M4kE6xkIj40Ew7xC0wCY02Avz4vE-syl42xK82IYc2Ij64vIr41l4I8I3I0E4IkC6x0Yz7 v_Jr0_Gr1lx2IqxVAqx4xG67AKxVWUJVWUGwC20s026x8GjcxK67AKxVWUGVWUWwC2zVAF 1VAY17CE14v26r126r1DMIIYrxkI7VAKI48JMIIF0xvE2Ix0cI8IcVAFwI0_Jr0_JF4lIx AIcVC0I7IYx2IY6xkF7I0E14v26r1j6r4UMIIF0xvE42xK8VAvwI8IcIk0rVWUJVWUCwCI 42IY6I8E87Iv67AKxVWUJVW8JwCI42IY6I8E87Iv6xkF7I0E14v26r1j6r4UYxBIdaVFxh VjvjDU0xZFpf9x0JU6CJPUUUUU= X-CM-SenderInfo: x2kd0wpgrqwvxrqjqvxvzl0uprps33xlqjhudrp/1tbiAQECCmaXj-McWwAAsC X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240717_224411_953300_3D50865A X-CRM114-Status: UNSURE ( 3.10 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -1.9 (-) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Dongdong Zhang <zhangdongdong@eswincomputing.com> Changes in v2: - Accepted Vivian's suggestion regarding the funct3 check. The code has been simplified to: if (funct3 == 0 || funct3 == 4) for better clarity and conciseness. Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [206.189.79.184 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] X-BeenThere: opensbi@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: <opensbi.lists.infradead.org> List-Unsubscribe: <http://lists.infradead.org/mailman/options/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=unsubscribe> List-Archive: <http://lists.infradead.org/pipermail/opensbi/> List-Post: <mailto:opensbi@lists.infradead.org> List-Help: <mailto:opensbi-request@lists.infradead.org?subject=help> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/opensbi>, <mailto:opensbi-request@lists.infradead.org?subject=subscribe> Cc: ajones@ventanamicro.com, Dongdong Zhang <zhangdongdong@eswincomputing.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "opensbi" <opensbi-bounces@lists.infradead.org> Errors-To: opensbi-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org |
Series |
lib:sbi: Enhance CSR Handling in system_opcode_insn
|
expand
|
From: Dongdong Zhang <zhangdongdong@eswincomputing.com> Changes in v2: - Accepted Vivian's suggestion regarding the funct3 check. The code has been simplified to: if (funct3 == 0 || funct3 == 4) for better clarity and conciseness. Dongdong Zhang (1): lib:sbi: Enhance CSR Handling in system_opcode_insn include/sbi/riscv_encoding.h | 19 +++++++++++++++++- include/sbi/riscv_fp.h | 1 - lib/sbi/sbi_illegal_insn.c | 37 +++++++++++++++++++++++------------- 3 files changed, 42 insertions(+), 15 deletions(-)