From patchwork Sat Sep 9 12:59:50 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 721098 Delivered-To: patch@linaro.org Received: by 2002:adf:f64d:0:b0:31d:da82:a3b4 with SMTP id x13csp262759wrp; Sat, 9 Sep 2023 06:18:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGkqZveRoOak6HHBWgHornvouGXLDMNj8nEenu6ju2q9vBhIuJDMr9SlbIFfyPIIA5FBaI9 X-Received: by 2002:a67:f3c8:0:b0:44e:d85c:ac48 with SMTP id j8-20020a67f3c8000000b0044ed85cac48mr5079062vsn.5.1694265520603; Sat, 09 Sep 2023 06:18:40 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694265520; cv=none; d=google.com; s=arc-20160816; b=uX28jHx9QxW2tlISSiWsQ46CGWsenF/ebdzrJzBi8haNbw1X6guhMn64JxnmPlhcRg gUqPojWEL2ZpHPtPzoKMXxZ7mc6FrUoeC5X6v6pWDPuMtUgDR4uy6YrdjB2exgDR+Qmy qGVGQMiz0UEYFdyckGpbH1hNPBKzWHn3LtZk87+NuPS2wdY8kKf0JdNO4KO7xoty13mA eDMy89XNfpQOtLGePJRuLELRiBrM7L8Jb2jClkLVrS1CuG2HvxsvP8FWB+rsM19oOqMu e71m1wkM0S5jZ4MCWBvtLBfscdetJYhEinmwRNjVQyvAUR+9tqlq/+q4i/W/cbZabSfY Yffg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; 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=IATqqqODT0sHsvp31DTxx3fQ9qytytuXXLWv8sA8TaI=; fh=TbI2pklXwlJGmj6m7lZZgI+jTnI/L5qcZuxsjME8SeI=; b=Rgcq+1rNwIm6Ylgoak4uizuatDMlnX0/Kv+SvhuK1nm6nrYHg/YUmZKHeSxvT8kBWz t2+vmBINHBO/juGNtXGj6r7FlQXAcnxG06UgyXAQojrylwZPh6vGYHhLE0Hj19S+DViL AOXCRmWUZgbhAfygO/Zn7J7D0uSMEZdzN72W5OIt6D3Ejz0d1kXCrzMJPkhEKaCMiyLW w+qklyF/fX+21c4IhztFAMRokSwX5tMLwc3SLAhqE/GCD7Jh0qEiCueymrFSE6R3YhEQ EIXl3nAUkBULINa6ELSa6Kj5g6M95QsUMfOwgJ6EL7t3sqACIt4Zd8lcraFExOXiH+kW PhqA== 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 s16-20020a0ce310000000b00655e15f4d48si113332qvl.241.2023.09.09.06.18.40 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Sep 2023 06:18:40 -0700 (PDT) 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 1qexbl-0003TC-Ft; Sat, 09 Sep 2023 09:02:41 -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 1qexbZ-00024d-Uw; Sat, 09 Sep 2023 09:02:30 -0400 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 1qexbV-0002mc-Og; Sat, 09 Sep 2023 09:02:28 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 04CBE205A6; Sat, 9 Sep 2023 16:01:18 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id C9D0426E0C; Sat, 9 Sep 2023 16:00:26 +0300 (MSK) Received: (nullmailer pid 353127 invoked by uid 1000); Sat, 09 Sep 2023 13:00:22 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Peter Maydell , Michael Tokarev Subject: [Stable-8.0.5 24/43] target/arm: Fix SME ST1Q Date: Sat, 9 Sep 2023 15:59:50 +0300 Message-Id: <20230909130020.352951-24-mjt@tls.msk.ru> X-Mailer: git-send-email 2.39.2 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, 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 A typo, noted in the bug report, resulting in an incorrect write offset. Cc: qemu-stable@nongnu.org Fixes: 7390e0e9ab8 ("target/arm: Implement SME LD1, ST1") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1833 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-id: 20230818214255.146905-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell (cherry picked from commit 4b3520fd93cd49cc56dfcab45d90735cc2e35af7) Signed-off-by: Michael Tokarev diff --git a/target/arm/tcg/sme_helper.c b/target/arm/tcg/sme_helper.c index 1e67fcac30..296826ffe6 100644 --- a/target/arm/tcg/sme_helper.c +++ b/target/arm/tcg/sme_helper.c @@ -379,7 +379,7 @@ static inline void HNAME##_host(void *za, intptr_t off, void *host) \ { \ uint64_t *ptr = za + off; \ HOST(host, ptr[BE]); \ - HOST(host + 1, ptr[!BE]); \ + HOST(host + 8, ptr[!BE]); \ } \ static inline void VNAME##_v_host(void *za, intptr_t off, void *host) \ { \