From patchwork Fri Aug 18 21:42:55 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 714688 Delivered-To: patch@linaro.org Received: by 2002:a5d:484e:0:b0:317:ecd7:513f with SMTP id n14csp738165wrs; Fri, 18 Aug 2023 14:43:56 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHY0g19ailc+wXAI9qhmWwro4cj6nkfmrZA7x3SjJuvGK9HZuLiExtmFwTY5X98gQn9rp5Y X-Received: by 2002:a05:6214:b0c:b0:63f:7c62:63dd with SMTP id u12-20020a0562140b0c00b0063f7c6263ddmr397343qvj.46.1692395036315; Fri, 18 Aug 2023 14:43:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692395036; cv=none; d=google.com; s=arc-20160816; b=kF9jXgjkOb+QV2HKEwIuHbAKNczhswp9HNpNuJxV9jeWYIpHl0O1pYEEVJAGvP6PLT b/JDOGyDwZIEcXEcnja4YwQNmt/ZMscKUp9wSjyOW0aveYX8i9jqsXA7Hou01pjsE7to Ip2bDkEWwyZYVisrHNkW3BwaKb7kzNkGS8JB6sN3XT1Irz5MPSe7oFfgSbC9EYC0ZM+Q zU1XAR32yIZ5lZH6qdcsd6POKF8iIRbIMWG0BzhXtAV3r26+7q/mfV3FYtUIbeunSfW7 xZf6URUiY7zIPOJ3tBfQcNp1fxhBKlRKb9WWkIPXiGnqQ4ktZIeUGE6QbbMPrpEqs9ju 2yMQ== 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:message-id:date:subject:cc:to:from:dkim-signature; bh=tf9Jzo6/6lt0bMLI+m86t2rXgiczmZf9K4SenvBJf6A=; fh=j4Z1An09Ve/stdydd/yoEYU5jCtTlZP/o+LZJGsiADc=; b=x0ujtOtNcSBgOYo7P3QB9PcZg61A5H5Nv0IAx2rclvvpUto8/kmkUj+/I1+eYcCkt4 0PzPJh21uFpMoevoFtelqFCDPQMpvbwZYHaITIFyevImPgzGUG09CzTnzYa7S3+DTdrN dKlUXnQg2gPlANc4LRVTcbncFjSZKiHrImAWd9nlPpJbjicv59q2UE+vZJhyvgp1Cjr3 G8YYUHb17FB0BLJJjrBEDq7FSAD3eqCn1V9toB+u6ahfZZykAQCuM6ZDB9G0J3/3tnbN GTopurZbQbwudtNlHj48uY6BvR45qZe/l0/mc4a1vxrXFqAxHltJ4q5XMTLNrVsGzvBD dfFw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="dPNPzo3/"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w20-20020a0ce114000000b00647120c3ecesi1884469qvk.3.2023.08.18.14.43.56 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 18 Aug 2023 14:43:56 -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; dkim=pass header.i=@linaro.org header.s=google header.b="dPNPzo3/"; 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"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1qX7FV-0007Y6-KX; Fri, 18 Aug 2023 17:43:17 -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 1qX7FM-0007Xy-I1 for qemu-devel@nongnu.org; Fri, 18 Aug 2023 17:43:08 -0400 Received: from mail-pl1-x62d.google.com ([2607:f8b0:4864:20::62d]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qX7FK-0004Rz-78 for qemu-devel@nongnu.org; Fri, 18 Aug 2023 17:43:08 -0400 Received: by mail-pl1-x62d.google.com with SMTP id d9443c01a7336-1bdf98a6086so11624005ad.0 for ; Fri, 18 Aug 2023 14:42:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692394976; x=1692999776; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=tf9Jzo6/6lt0bMLI+m86t2rXgiczmZf9K4SenvBJf6A=; b=dPNPzo3/sGSPgNxdHgM50skhTAd7/sFnejnLhntAUvbDsekzYZ/Al8/+ocJ6FM1otl Suoq0FEr+8sKYb5PAgamt85pLGayv/oIfIvTJ3wZyyPcj6sQ4KOHblW3vATl6pJm2kKk tH21NM/XBpzr48fadFg271HEQpHXgRK4fGHnED4wXTKXBw1ODF4WckDJ/sMHeKBu7TA3 2D5nEf6ZZ6UtBkdPTz9rb/TfB0V2YmwgvIzitMQzB10QQs6YSZgPCuyVaZi2otWKgqLx wi0MxFDQgdNriuvKpJxK2XD1Hg6l3uT7cUPKBIGM2CGSNO4EeNL48OGbCAtqbNaroO+K NABA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692394976; x=1692999776; 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=tf9Jzo6/6lt0bMLI+m86t2rXgiczmZf9K4SenvBJf6A=; b=faqQNM6nVRaTnbiPiQPv0NOkPQlZNasursp6WmXiQuApCoe8tkkCvwItA8BZ8Bnyv/ Iq5wkNr4ies3mUWg244x8VFJSBoFNIdQCv6bREGzKLcVXAuDHcWpqtHFlvpzmnmWXJTJ vksxU+BfyapkiNNvNR29UnB+KSm7G8mQJHkmmhornf9VOBXrnvQXEFLqeOcdR3o3a8y7 Km8LIIN+pYVV0EGjpB/wnlrIsrKUCZnX1AstGM2Itw0f+iBi+ALLaqxcBVVVPsBSPAip nmSZzMwbOhrV+Em2LSegnjI+CJfVWqIz0jvNk5tDGhoCc2pSWFzFdnpzNEtBqVRAEW9m m47w== X-Gm-Message-State: AOJu0YypK/NdQgXHS0mgqHGe7SMhQPLZnMFeWjfHzFnuRN6K5EUFycHw Qgom69fzh0SkL0s3/cvMY/uuEVmMAhR4AbrqFog= X-Received: by 2002:a17:902:ced1:b0:1b8:33d4:77f8 with SMTP id d17-20020a170902ced100b001b833d477f8mr550351plg.23.1692394976353; Fri, 18 Aug 2023 14:42:56 -0700 (PDT) Received: from stoup.. ([2602:47:d483:7301:cf24:6daf:2b9e:7972]) by smtp.gmail.com with ESMTPSA id g19-20020a170902869300b001b896d0eb3dsm2209856plo.8.2023.08.18.14.42.55 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Aug 2023 14:42:55 -0700 (PDT) From: Richard Henderson To: qemu-devel@nongnu.org Cc: qemu-arm@nongnu.org, qemu-stable@nongnu.org Subject: [PATCH] target/arm: Fix SME ST1Q Date: Fri, 18 Aug 2023 14:42:55 -0700 Message-Id: <20230818214255.146905-1-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::62d; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62d.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org 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é --- target/arm/tcg/sme_helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) \ { \