From nobody Thu Nov 28 09:56:35 2024 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; dmarc=pass(p=none dis=none) header.from=gmail.com ARC-Seal: i=1; a=rsa-sha256; t=1694153689; cv=none; d=zohomail.com; s=zohoarc; b=B1xkZvEucDr7gcHTq+62Z2eXt4FRLkX6hgN+7a/phV2mBl8ENSIsaeE6C2Uzjc0S86SAiRGH21EpSHIpKiWGNK8b354i9Og1Kzok5V/D5hsZGGqdKtX23qI6h0/9GTuHav4w2nNVmYQd826QeY7uuAtmbKehin4KTrihiCGXYJY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1694153689; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=wJk34toFNyidTQI3XnnaKroUPxNRe6WC7SlLZ/NA1WQ=; b=azCugtT7lUyGwYtSPGPK7KbvdJmmiFcDzTPpOuUEHC5Yz9fqOB10/Ckg61qDPd8AzOnYLi3TWf1Bdzh0j6N2pWh3Paq3JsNXwcr2i7zSAqySNR9+kyE76ugeYtgQDb90g4qnaNx3iE+YpvxbW2qOLeOp+9YxdELdkSx7up+hir8= 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; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1694153689339811.9324718153341; Thu, 7 Sep 2023 23:14:49 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qeUcT-000068-QS; Fri, 08 Sep 2023 02:05:29 -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 1qeUcL-00005P-Uv for qemu-devel@nongnu.org; Fri, 08 Sep 2023 02:05:23 -0400 Received: from mail-pl1-x632.google.com ([2607:f8b0:4864:20::632]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qeUcJ-0005Gi-Om for qemu-devel@nongnu.org; Fri, 08 Sep 2023 02:05:21 -0400 Received: by mail-pl1-x632.google.com with SMTP id d9443c01a7336-1c1e780aa95so12634175ad.3 for ; Thu, 07 Sep 2023 23:05:18 -0700 (PDT) Received: from toolbox.alistair23.me (2403-580b-97e8-0-321-6fb2-58f1-a1b1.ip6.aussiebb.net. [2403:580b:97e8:0:321:6fb2:58f1:a1b1]) by smtp.gmail.com with ESMTPSA id q1-20020a170902dac100b001c3267ae31bsm715231plx.301.2023.09.07.23.05.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 07 Sep 2023 23:05:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1694153117; x=1694757917; darn=nongnu.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=wJk34toFNyidTQI3XnnaKroUPxNRe6WC7SlLZ/NA1WQ=; b=l1wliExY8OefUX+cd/ujsaGAWLaglJRUTVZuockjGhMv4OZNXcYlWiZGDQRa+jmKlJ FAT5/ptXmpPewKjeN3W7gfRyZcMNa4SG18gXoe4D9OfcXybz1HUKrn1L1W6vBra5U8GE jwMKEQ3eI8jRjG8Ew+9kwrPctYLDCL3zKFkB7fP+Ea/OjDflInNt5CsOGHeGyKQpnSWY R3ADPoHDUU3LjpYCjI4Ce/owq1iMMga18S5w+V3vt2qbu5AeC6PC3E/8afbS+/RZiEdH tPB9yhfMHyQxpcpR29PAi1M71hR9GOCZXorkQBa6wO6y48OtN2IZZwM61hvlNtCgCHKD EU2A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1694153117; x=1694757917; 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=wJk34toFNyidTQI3XnnaKroUPxNRe6WC7SlLZ/NA1WQ=; b=ZPvzmFooBNol3i1rSmxu5GiuV8V6MDhTgYH4J7hLT9aY/bPX1CUD4W0ZcooGLDMwzL yw2UG7ZvzVkYWpXGcy3FlkA7nhV1b71o/r8bYnaceuJOyIsrSu4PUMv6uglVzlB5Gtno Qvde/tegY8G4+IEEe/B6eT3Hett/eulESxJba37lE+AMCDDh6PewVt/ilj85ObaRc3Yw 4ptXKDeVzmGHciMVhsRZx68NgZzgcUNGBRtMdVFKMiseIca6iFYi5suxe95vVF4OI1Oo uw00PZ1nLyQlMMCVC3OtKIzhHPh+sufNF0QHEFZAURcJzhzQ55QrFsmnjIbCmRDdjMMQ 0VDQ== X-Gm-Message-State: AOJu0YxYCI2+zdQ7NXL8HrDj27OBMTHPBmnZoyDn86TZL+mQqjyVwgGx 6C8L0HLg7/dJ3ax0Z2xoa2W4p6RPckhbBkxQ X-Google-Smtp-Source: AGHT+IGbmpdEZdIuFPyazAS7/XPguCMdHTkP9BPNQvvfjrdSWRiNezCELVeYhKYwSr0djs4/8HPikg== X-Received: by 2002:a17:902:f682:b0:1c3:83e2:d0a9 with SMTP id l2-20020a170902f68200b001c383e2d0a9mr859967plg.58.1694153117125; Thu, 07 Sep 2023 23:05:17 -0700 (PDT) From: Alistair Francis X-Google-Original-From: Alistair Francis To: qemu-devel@nongnu.org Cc: alistair23@gmail.com, LIU Zhiwei , Richard Henderson , Alistair Francis Subject: [PULL 06/65] target/riscv: Fix page_check_range use in fault-only-first Date: Fri, 8 Sep 2023 16:03:32 +1000 Message-ID: <20230908060431.1903919-7-alistair.francis@wdc.com> X-Mailer: git-send-email 2.41.0 In-Reply-To: <20230908060431.1903919-1-alistair.francis@wdc.com> References: <20230908060431.1903919-1-alistair.francis@wdc.com> MIME-Version: 1.0 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::632; envelope-from=alistair23@gmail.com; helo=mail-pl1-x632.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.8 / 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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, 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 @gmail.com) X-ZM-MESSAGEID: 1694153689924100005 Content-Type: text/plain; charset="utf-8" From: LIU Zhiwei Commit bef6f008b98(accel/tcg: Return bool from page_check_range) converts integer return value to bool type. However, it wrongly converted the use of the API in riscv fault-only-first, where page_check_range < =3D 0, should be converted to !page_check_range. Signed-off-by: LIU Zhiwei Reviewed-by: Richard Henderson Message-ID: <20230729031618.821-1-zhiwei_liu@linux.alibaba.com> Signed-off-by: Alistair Francis --- target/riscv/vector_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target/riscv/vector_helper.c b/target/riscv/vector_helper.c index bc9e151aa9..379f03df06 100644 --- a/target/riscv/vector_helper.c +++ b/target/riscv/vector_helper.c @@ -584,7 +584,7 @@ vext_ldff(void *vd, void *v0, target_ulong base, cpu_mmu_index(env, false)); if (host) { #ifdef CONFIG_USER_ONLY - if (page_check_range(addr, offset, PAGE_READ)) { + if (!page_check_range(addr, offset, PAGE_READ)) { vl =3D i; goto ProbeSuccess; } --=20 2.41.0