Message ID | 20240822174828.4031332-4-debug@rivosinc.com |
---|---|
State | Superseded |
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=bS0HnoXl; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=kXLJ7HIm; 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 4WqW2q6vHjz23Rn for <incoming@patchwork.ozlabs.org>; Fri, 23 Aug 2024 03:50:58 +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:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: 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: List-Owner; bh=ULRjgCUMwAIfL18Z58RYf78OT1+G/ev+3AMDpOMtW3M=; b=bS0HnoXla68XAa ZdS5E/C0Gijl5NxL8QZZDIS37rP1s2aTZ/lkvRfsNabQhSI/Q99tgr0yrfy5llFTwf9c6XGKnToqh nFgRQ0+duhJUHC7vdoguzG8DpgBLrparKGPX5BOfHCWaQm6HLfqOPYBbnnjJyZ1njZwM8e52HLBaN E33WZc+0ZbqQxERNEAHCbOpDpVljurd+J2uBRqKRByfGyCbCxAyQH9eZh9bvvoo4UseInqhSDsY1C ElwcOocgKSWGDRZtJ53BW4wd5Be6gsr5T9IKaT9V/8YDpt48mhfNTPdDWgryT+6tV5twO3oAbDVHE eUjkV0Y8jwqNcIYenuqg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.97.1 #2 (Red Hat Linux)) id 1shBxR-0000000DrT3-06gO; Thu, 22 Aug 2024 17:50:49 +0000 Received: from mail-pf1-x42d.google.com ([2607:f8b0:4864:20::42d]) by bombadil.infradead.org with esmtps (Exim 4.97.1 #2 (Red Hat Linux)) id 1shBvJ-0000000Dr4Y-3E8s for opensbi@lists.infradead.org; Thu, 22 Aug 2024 17:48:38 +0000 Received: by mail-pf1-x42d.google.com with SMTP id d2e1a72fcca58-7141e20e31cso1001808b3a.3 for <opensbi@lists.infradead.org>; Thu, 22 Aug 2024 10:48:36 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1724348916; x=1724953716; darn=lists.infradead.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=Dc0OZFeSdfhIKvQi3Bq4JJVWhLtpZPp9oEUW0NgbPtw=; b=kXLJ7HImxJNYX0DHqzw0ACsqY8GBrUJPmLpsy72fpXUv8bYF+e0eb/+vaiA1JdWtnm pcoQdoovM+MEyHhqiG56Mi64gz03E49kAwlIcy+nEMK/YLbeK8qaXzR1l1WmxM16Bb/+ MIblD9v9UvPSv8gmOHZrgXCsS333yg7j2HD3CBiRabvPDjdvi4KNYcD3bQfQsdUXsHKW Lo8vp7yVYubQ5xdVNZsdz3rK/G0TcLdzLUkzsLgEOq7yG0eUhZmGeQAhlnoY4IkfnGiD JcNnPfhLsS77GLZCYbaEflgHTqu7LfV7iUYlMnwxEh795JZM8wjmv7ySTevPT6AlvHb+ TmEw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1724348916; x=1724953716; 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=Dc0OZFeSdfhIKvQi3Bq4JJVWhLtpZPp9oEUW0NgbPtw=; b=jAdv9eFCl2I8+a9TTj4d3FlmHviP2QzvtZBQnMsbvmN5J5hIxK9fEzd01l67FflBkz BvLMrHoUO/hHxFRmrojPBhvdfjROmWBLgwxOul4vk0LuXcpUIAelAF3BQcVfvcXFU0as XVb8gxrhrilX3nKafpd2yQZtOSyE7jQeDLIj3C44mYQextl+FO8IdSfkipMeKTGXk8tw N6Wxswc5tIk1UuaQtivCB1SwZqUK0caTriXp64+qRbzxRjy0SL2qXiaQSiOqaPz2Ebe2 /PuS2IEbdkyb4WH9H073bXZRHZ73HgLArxRPJyNnjPM6E0GoOta3YzKmO65JWR98MW0e jk4Q== X-Gm-Message-State: AOJu0YxqTvIbkVgk2ASOatobyFtQhQj0blBjUW7CPrnQpEV0ck5ooZpD mGjylx4fkXsAOU14rbH5dP27Tn2Clk59Z7sSQSp1MmbCmECs8884xWMAa9e+GBKGk3AB4eTx+2l w X-Google-Smtp-Source: AGHT+IFweHXqGyqLuDHgyPD0Fs7VghRQ7BH8lYI64d9O4K9+aca6kE3pCuRY12mYPDn8gDh98zWL8g== X-Received: by 2002:a05:6a00:9a9:b0:710:591e:b52f with SMTP id d2e1a72fcca58-71423421f10mr7767928b3a.5.1724348916112; Thu, 22 Aug 2024 10:48:36 -0700 (PDT) Received: from debug.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-7143430636esm1650251b3a.165.2024.08.22.10.48.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Aug 2024 10:48:35 -0700 (PDT) From: Deepak Gupta <debug@rivosinc.com> To: opensbi@lists.infradead.org Subject: [PATCH v3 3/4] lib: sbi: sw check exception delegation Date: Thu, 22 Aug 2024 10:48:27 -0700 Message-ID: <20240822174828.4031332-4-debug@rivosinc.com> X-Mailer: git-send-email 2.45.0 In-Reply-To: <20240822174828.4031332-1-debug@rivosinc.com> References: <20240822174828.4031332-1-debug@rivosinc.com> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20240822_104837_817710_6A117B3D X-CRM114-Status: UNSURE ( 8.65 ) 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: zicfiss and zicfilp introduces new exception (cause=18). Delegate this exception to S mode because cfi violations in U / S will be reported via this exception. Signed-off-by: Deepak Gupta <debug@rivosinc.com> Reviewed-by: Samuel Holland <samuel.holland@sifive.com> --- lib/sbi/sbi_hart.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) Content analysis details: (-1.9 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at https://www.dnswl.org/, no trust [2607:f8b0:4864:20:0:0:0:42d listed in] [list.dnswl.org] 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.0 SPF_PASS SPF: sender matches SPF record -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.0 T_SCC_BODY_TEXT_LINE No description available. 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: apatel@ventanamicro.com, anup@brainfault.org, atishp@rivosinc.com, cleger@rivosinc.com, Deepak Gupta <debug@rivosinc.com> 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 |
zicfilp and zicfiss support in opensbi
|
expand
|
diff --git a/lib/sbi/sbi_hart.c b/lib/sbi/sbi_hart.c index 0636021..1f6c4c8 100644 --- a/lib/sbi/sbi_hart.c +++ b/lib/sbi/sbi_hart.c @@ -207,7 +207,8 @@ static int delegate_traps(struct sbi_scratch *scratch) if (sbi_platform_has_mfaults_delegation(plat)) exceptions |= (1U << CAUSE_FETCH_PAGE_FAULT) | (1U << CAUSE_LOAD_PAGE_FAULT) | - (1U << CAUSE_STORE_PAGE_FAULT); + (1U << CAUSE_STORE_PAGE_FAULT)| + (1U << CAUSE_SW_CHECK_EXCP); /* * If hypervisor extension available then we only handle hypervisor