From nobody Fri Apr 4 21:37:29 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1739458667; cv=none; d=zohomail.com; s=zohoarc; b=OMQ1m6655TflpBAqG0cxA1trCgxmkZOQgpYL2w8xALx8syX207RNojlnzpFi8RAa0h5Swj4196whr1lXRrFP//N9IUGSS4hCFjByxva3Rg7R+WyM+P0//gCfAWZ4C3jkjpXwnnHVEIf0CMH6ekhg+uc/xynE/d55RxO6XxI1Sy8= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1739458667; h=Content-Type:Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=xmNcB0h8FvwC5Sw/FgDlp5/VO2PWTeM+sjfDIwJaVLI=; b=IQZ3aZe9WuBj5jE66/BW1w8443Hib22UjXAF1TwQ6tLJXgONiEZ25qJG5axNdk/sfrdlSOnt6/JVg0J/nrT/Jx//FuDt0KEmXs5PRtnW+DZByvMcoLVCJnb8r2twVueKXs+K/TukGphjsyH/UGrffpex+PIuueLJxZeALN67+JE= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1739458667510403.3411835242929; Thu, 13 Feb 2025 06:57:47 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tiaeg-00066c-74; Thu, 13 Feb 2025 09:57:30 -0500 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 1tiaeX-00062N-IY for qemu-devel@nongnu.org; Thu, 13 Feb 2025 09:57:22 -0500 Received: from mail-pl1-x62a.google.com ([2607:f8b0:4864:20::62a]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tiaeU-0003k4-5q for qemu-devel@nongnu.org; Thu, 13 Feb 2025 09:57:21 -0500 Received: by mail-pl1-x62a.google.com with SMTP id d9443c01a7336-21f92258aa6so25048845ad.3 for ; Thu, 13 Feb 2025 06:57:17 -0800 (PST) Received: from carbon-x1.. ([2a01:e0a:e17:9700:16d2:7456:6634:9626]) by smtp.gmail.com with ESMTPSA id d9443c01a7336-220d5366984sm13437105ad.60.2025.02.13.06.57.10 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 13 Feb 2025 06:57:16 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1739458636; x=1740063436; darn=nongnu.org; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=xmNcB0h8FvwC5Sw/FgDlp5/VO2PWTeM+sjfDIwJaVLI=; b=rqAjc1+xOT3Igxq7Oo/Wnu2ZOTDh9PrGPU8GeD2iKrVS76jj7wXRuxoXCcgZZ3ZQX8 ej8/yL8XRT9kgPtinBhaHDCbtskG0ZjO4HE01/2f2duBL7jHy6a4+iNSu7in0qUf19N8 dwU4IS+yBQUm1dIF4Bx4ny58kUHc5R8XrVY6TvPRqoteVyjFjjk3wPq3+utyqpx051kO VCsB7cwptAJUr7WbCrONYiwB0yO7f81mnbA/0WwudVh4qSJLsRofpikq6iLUiiWC2Gvx LUgm0A/SxJlJ1BGlEv1bXZT55eNkpq4FRevMSXQIQlJNeSky2p00RJnzhiteIo5Wrd6W atXg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1739458636; x=1740063436; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=xmNcB0h8FvwC5Sw/FgDlp5/VO2PWTeM+sjfDIwJaVLI=; b=rwQU6CUme7Yo7pWLGokMz+N1B0wXNdoVAgL1TtjL33Ai7NkcgiFilhox/oT5vPu5MC UkxeoJW8BF5wpMehXNwwGPdZAu5Dt3ZvV4yzRw41Bsa36rAKNR9ErbAa3LQKkoKDm9UQ Pf9BCqOLaQXPw+6m1QPmxhHSj9aP1uDTX1G9J6AVNQa0ZgiSrKvGbZ4FuJu9o+pAH2kg 6NM3HgUCgOZHpm+Pzzs8M9v7iOPWFUwZXVMmcwJa841hvYrPr6TucqEDo9b2XdUNGAfI OgrEqBHkFbfjYs+soxUcp6TVHzkzAnjzRFaHEAqYiSimEDKSDaKdzqugi857zEo1njLH D4Pw== X-Forwarded-Encrypted: i=1; AJvYcCUTu3VrOyQFPQfbXKKkayZr4jcMh1TUu8DOQNLadnSlg5FBk0qPmIDZo7+raUWVtuD5ekfdDN7WThy1@nongnu.org X-Gm-Message-State: AOJu0YyJVg/gU3SEOaqCL2oGlVWcu5DBWahk20CQw9zrel7YuHeCk8fp g+hUmnCYNg5dcGXEhk9tRfG5W5mu6ZD5Vaa5LQAa4Eh4PFuevPbmd1NwFyNGQUI= X-Gm-Gg: ASbGncsS5PAuf017C8ToxtEBGULSSH2/PVfmZDmSIsyaUSSZaTX3CKF93a29QB0jV9H 7Id4Wt2zdYzguLtLqkrgSYsT4Yx7xvQI1Ga29IrAm0uBa2G61e1gkMRdR11sDtziLCrZQGpyBAC R6VwLSNWpywI8X3MVG+ug0L1rw22AW+NT88wvgUFoYtd9R+jzvFanoC42rs1cOBloj1XHk/z38a XtvtPoLxsTxY0vOJJz36iNDJuUu2jA6wOCSyVVhIft4wtcslUder1FdBSYS2IFCnkKX9gYk0EXb o7BWzLzrfMiu2JL+ X-Google-Smtp-Source: AGHT+IGIQSwSe9tSqrsS/uO3AUAGdeOrFP+mr+XXpNrd6m2pcjqXGP+8GGytqczcOh13hF182jSFlg== X-Received: by 2002:a17:902:cec8:b0:215:6e01:ad07 with SMTP id d9443c01a7336-220bbab3cf5mr99498455ad.6.1739458636618; Thu, 13 Feb 2025 06:57:16 -0800 (PST) From: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= To: qemu-riscv@nongnu.org, Palmer Dabbelt , Alistair Francis , Bin Meng Cc: =?UTF-8?q?Cl=C3=A9ment=20L=C3=A9ger?= , Daniel Henrique Barboza , Richard Henderson , qemu-devel@nongnu.org Subject: [PATCH v2] target/riscv: remove warnings about Smdbltrp/Smrnmi being disabled Date: Thu, 13 Feb 2025 15:56:31 +0100 Message-ID: <20250213145640.117275-1-cleger@rivosinc.com> X-Mailer: git-send-email 2.47.2 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=2607:f8b0:4864:20::62a; envelope-from=cleger@rivosinc.com; helo=mail-pl1-x62a.google.com X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@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-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @rivosinc-com.20230601.gappssmtp.com) X-ZM-MESSAGEID: 1739458669410019100 As raised by Richard Henderson, these warnings are displayed in user only as well. Since they aren't really useful for the end-user, remove them and add a "TODO" note in the leading comments. Signed-off-by: Cl=C3=A9ment L=C3=A9ger Reviewed-by: Daniel Henrique Barboza --- v2: - Remove Tommy bouncing mail from the recipient list - Entirely remove warnings and add "TODO" in the leading comments target/riscv/tcg/tcg-cpu.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/target/riscv/tcg/tcg-cpu.c b/target/riscv/tcg/tcg-cpu.c index 0a137281de..94bfafd7db 100644 --- a/target/riscv/tcg/tcg-cpu.c +++ b/target/riscv/tcg/tcg-cpu.c @@ -1432,22 +1432,20 @@ static void riscv_init_max_cpu_extensions(Object *o= bj) } =20 /* - * ext_smrnmi requires OpenSBI changes that our current + * TODO: ext_smrnmi requires OpenSBI changes that our current * image does not have. Disable it for now. */ if (cpu->cfg.ext_smrnmi) { isa_ext_update_enabled(cpu, CPU_CFG_OFFSET(ext_smrnmi), false); - qemu_log("Smrnmi is disabled in the 'max' type CPU\n"); } =20 /* - * ext_smdbltrp requires the firmware to clear MSTATUS.MDT on startup = to - * avoid generating a double trap. OpenSBI does not currently support = it, + * TODO: ext_smdbltrp requires the firmware to clear MSTATUS.MDT on st= artup + * to avoid generating a double trap. OpenSBI does not currently suppo= rt it, * disable it for now. */ if (cpu->cfg.ext_smdbltrp) { isa_ext_update_enabled(cpu, CPU_CFG_OFFSET(ext_smdbltrp), false); - qemu_log("Smdbltrp is disabled in the 'max' type CPU\n"); } } =20 --=20 2.47.2