From patchwork Mon Nov 18 21:08:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 844128 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp839023wrx; Mon, 18 Nov 2024 13:11:29 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCU0AyQ2W77s2MMeqbONooRu/SZENKWLZiVRI85AaL9z0tc+Ixd5pC9/FlyWP+K3eqdmob+2yg==@linaro.org X-Google-Smtp-Source: AGHT+IEkunvwCM+qkjxNvTjMelIUL0aQH3S2YBbMIjwxlleTibnEAzYDgu15Yy7F6fpBV+SCFMce X-Received: by 2002:a05:622a:1486:b0:461:20b2:ba00 with SMTP id d75a77b69052e-46392da14f7mr12990311cf.18.1731964289597; Mon, 18 Nov 2024 13:11:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731964289; cv=none; d=google.com; s=arc-20240605; b=ZI0EZiaJMirbLKtToMx6GpT+olfoRd3GRLhFzNUX+vkW2yV0fRw0G8hn8MvESeBWVJ dgX2WqcECp/ROPJPXGuBKgsDWG7zS+/2ydKISbkCaOg1oeXtYIHkNiNukBv3g0VQV2/B wzNPtj4RCoa2vgAD7jN9y0zFp9m/zj9xr9s1HkqoyTFkydJ83JZJoJg4VlQULW6A3r7O ZILN52YSXITJxKb/nMSmC6EnwkOuV1PdYBc+tO3QnupzZ39lt14HAKmHKQigbcKZX0qO g8D7iHoQmGOtqSjzjgAivlBKZmPgSd/R5Fb81WlOmGh9ZkWLPOBVSho331VqkqYxb5Cu xaEw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20240605; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from; bh=loHIXc4wXqImr2Y8mWhDPn3u3pm58UHKF295eTH1L1o=; fh=NoJ7n5JVE2hviRF6uNBFRIJvWH7igafuy1AIwg26ToM=; b=Hmcw1nNDkpoyX9RvglfcBtsEuSOxvM6PCKiuaclwOKN4Zya7LmBHCARXK9WqRKO/kE PaJjF+P3fyvY/hGENoxLRxR+xwPzF3aaL02lO1qEQC+qOo1rTGUctLTu8drZ/U649aEy fmtcKd0wHG0o/c5pvXtjdj/eskk1ko+OLe+QzstEC8E6QYeaTcZJM3hztH0M3NRu9Ywh fsWEZcfhQ38fBKUGWx/L7FHXTFRyC2wZ6kmeN5oxGCUtSp0zQja8KM8hD8AjbjEswS8t iI31lSuAaIPHffWQTGIK9nAoeFSKx6wmY0NuReTgEv9e7VRy539GUqEei8Olx2ZXaLNb 8fFw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id af79cd13be357-7b37a8951d0si59896585a.361.2024.11.18.13.11.29 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 13:11:29 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org" Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tD904-0002ZT-V3; Mon, 18 Nov 2024 16:09:37 -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 1tD8zJ-0001sM-Oc; Mon, 18 Nov 2024 16:08:51 -0500 Received: from isrv.corpit.ru ([86.62.121.231]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tD8zI-0005N4-2h; Mon, 18 Nov 2024 16:08:49 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 72353A560A; Tue, 19 Nov 2024 00:08:31 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 0B8C8173623; Tue, 19 Nov 2024 00:08:35 +0300 (MSK) Received: (nullmailer pid 2366106 invoked by uid 1000); Mon, 18 Nov 2024 21:08:34 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , Peter Maydell , Michael Tokarev Subject: [Stable-9.0.4 61/71] target/arm: Drop user-only special case in sve_stN_r Date: Tue, 19 Nov 2024 00:08:18 +0300 Message-Id: <20241118210834.2366046-4-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.5 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=86.62.121.231; envelope-from=mjt@tls.msk.ru; helo=isrv.corpit.ru X-Spam_score_int: -68 X-Spam_score: -6.9 X-Spam_bar: ------ X-Spam_report: (-6.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_HI=-5, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org From: Richard Henderson This path is reachable with plugins enabled, and provoked with run-plugin-catch-syscalls-with-libinline.so. Cc: qemu-stable@nongnu.org Reviewed-by: Peter Maydell Signed-off-by: Richard Henderson Message-ID: <20241112141232.321354-1-richard.henderson@linaro.org> (cherry picked from commit f27550804688da43c6e0d87b2f9e143adbf76271) Signed-off-by: Michael Tokarev diff --git a/target/arm/tcg/sve_helper.c b/target/arm/tcg/sve_helper.c index 6853f58c19..7ac19fdd65 100644 --- a/target/arm/tcg/sve_helper.c +++ b/target/arm/tcg/sve_helper.c @@ -6306,9 +6306,6 @@ void sve_stN_r(CPUARMState *env, uint64_t *vg, target_ulong addr, flags = info.page[0].flags | info.page[1].flags; if (unlikely(flags != 0)) { -#ifdef CONFIG_USER_ONLY - g_assert_not_reached(); -#else /* * At least one page includes MMIO. * Any bus operation can fail with cpu_transaction_failed, @@ -6339,7 +6336,6 @@ void sve_stN_r(CPUARMState *env, uint64_t *vg, target_ulong addr, } while (reg_off & 63); } while (reg_off <= reg_last); return; -#endif } mem_off = info.mem_off_first[0];