From patchwork Mon Nov 18 19:35:06 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 844115 Delivered-To: patch@linaro.org Received: by 2002:a05:6000:8b:b0:382:43a8:7b94 with SMTP id m11csp802989wrx; Mon, 18 Nov 2024 11:38:17 -0800 (PST) X-Forwarded-Encrypted: i=2; AJvYcCXAzu7L5o34dQTSpqBb6H13llcn0ki4ubWtkZMglQqIiyuE/x6Cvc92qClgtl7lMyq9SnTHnA==@linaro.org X-Google-Smtp-Source: AGHT+IHnN+P4Ufg2GZXBgWsZWPd4Vui1X6kREFWBohVoSNAsnNbFoKEeoDE7pfGpumg6AU61Ss0R X-Received: by 2002:a05:620a:44d5:b0:7a9:c129:504f with SMTP id af79cd13be357-7b37aa80df8mr113503985a.23.1731958696734; Mon, 18 Nov 2024 11:38:16 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1731958696; cv=none; d=google.com; s=arc-20240605; b=jHOE0TeyoIZG2/lqQ9mfsHqjA6QoQqW3pl9XbY+W1/c+1/YAAhl0TuV+dCELF9/XBO 7qYzH1VPrWfe+e2Y/BoAcczZWdm3GeaxMiY73ctVI4nugXwErlhzlXg4//I7owRxMoT0 sMO6EzZwuhyygA2VPaXFVmKxrHjODqFevwj451IY9isXKDxF6GjJWrygeL8cEIvJISKn kwq1C02SmigawP9R4x1XHE/DBka4fd8sQgUHFq7itRrZn/A4SmpGR7o+yP/fdV7S/QDU YwT7mHai6dnC1GieBCr9UtnS/V4d7FZDR92rO7KVdbtQiwTnRoatFp8dO8XDsTEvpC3L 0GUw== 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=IeDvBIDZFLfUkn9dhrxMPrq9uQrr0LtxkH6TX/BKqpk=; fh=NoJ7n5JVE2hviRF6uNBFRIJvWH7igafuy1AIwg26ToM=; b=hXRgv0RB3vjW9ctOvHgD6JT4OGe7DVrgkGr0j4KwOJEJDuls9BLrwTXj7mbH6u8VYe uyMyZOboJwuIwVtGaqp9k/kKYfLPC1xuoFL5sJnltjC9Kl4NFbpoYhz3P7BfZFCMv5Uq AnxiPjjtCahXbZOPws268LZ0C0wBFr52KXdAG+oWseE2ifEsKQ2tn23YRoAWFZRrJM2Z DjkRX6+qtrTk0nW9R5FOm63peeLHwXNUVIEf4+yJ7ENLbJ6MLFBI1J6zMUq/E9idK4vE PZZqN/rcm4vnV63bBb8Z0mD1hfpU8NAniae7y7XIKLGRn/y+7oet6g87SFV9mgJYt9yd qjIQ==; 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-7b37a83c675si41525185a.69.2024.11.18.11.38.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 18 Nov 2024 11:38:16 -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 1tD7X8-0006a4-2O; Mon, 18 Nov 2024 14:35:38 -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 1tD7X4-0006Y2-F5; Mon, 18 Nov 2024 14:35:34 -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 1tD7Wz-0002fl-39; Mon, 18 Nov 2024 14:35:34 -0500 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 6B92CA54DF; Mon, 18 Nov 2024 22:35:17 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id DF41A17359D; Mon, 18 Nov 2024 22:35:20 +0300 (MSK) Received: (nullmailer pid 2312676 invoked by uid 1000); Mon, 18 Nov 2024 19:35:20 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , Peter Maydell , Michael Tokarev Subject: [Stable-8.2.8 51/61] target/arm: Drop user-only special case in sve_stN_r Date: Mon, 18 Nov 2024 22:35:06 +0300 Message-Id: <20241118193520.2312620-3-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 5699dfe667..9694201550 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];