From patchwork Thu Aug 24 09:28:35 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Peter Maydell X-Patchwork-Id: 716539 Delivered-To: patch@linaro.org Received: by 2002:adf:f747:0:b0:317:ecd7:513f with SMTP id z7csp1237670wrp; Thu, 24 Aug 2023 02:34:43 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGlA6+CF+DYMjFDEyuxuoPi0Vcf6ghdplMh9UHvkq3udwn/9/gKXWZHhbDLi4thA6rlVJLZ X-Received: by 2002:a05:620a:2151:b0:76c:c101:fbf2 with SMTP id m17-20020a05620a215100b0076cc101fbf2mr15047562qkm.37.1692869682849; Thu, 24 Aug 2023 02:34:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692869682; cv=none; d=google.com; s=arc-20160816; b=NLaN+KQdUD31tiZEDEYsUEBYeg4PrX/LDNWpQdn+FXduNbuuR/zLDKxPVJboY7I1z5 //3RukYKzbH5KqnF3I2gOfQkHugT6LvjafNytYnbabqkJwWugfmojGrhW3ZqZdWNm9Q9 OzCe0RqzLm79fVMDNsFkyuQB/oefNZoEyJ7jxFA33fm3aITQjw5x6guad0dR0LkjH15K SfSixhtIJyarSyZnTd5MVJlwcjNhQpnRUmI9nh6Nrs8eFPy5pbXIxMA2MKXOf6m+8bmc L0y80PE0Mt+s5jhHDi8MvKN0LyYF8AyypqQ7OYsczDbBtHmNASS6604e9owqz//CzfvR swMA== 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:to:from :dkim-signature; bh=jJcM1m2DqXyGCyWJeoR0m55Hp/YRlvKCbwqX7Yknn7U=; fh=bFDrUYhlTVi/QyetgXx/byg2+yO/22Hp9SjwoefyKLk=; b=N9nibOOfb+P0nlH/Lme0WyMK8ThuO/j8yUaBptsXroZHIeZZMEj8DEHNgSfzmlN5p7 xZWJi93X1cWtEWtIPxlPffCntBFi3sG68PQRFfqbQHgBzZkYqH2drCMtG2ROACp158WP aZiJjTkoarYwuAoN4GUiAEe2HaDKG3ych4bBBvd3xr8ymmSERe+kfwlmSSKdwx6O3dGz CnNeD3ssKzFdRA/NBXnRTy3d3221hHSueidMkTjK6roIadnjavA7jgndpftxhjHZKdU6 Ocl4BTYdW8uoXmNUyt6g6W4tB1A1Ar0pqACh2YVhN7PKHzvmrZroK8q+ecnGs6dLs2of na/g== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=YwhzEcsM; 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 pz10-20020a05620a640a00b0076d86b56144si3156991qkn.669.2023.08.24.02.34.42 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 24 Aug 2023 02:34:42 -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=YwhzEcsM; 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 1qZ6eq-00083p-BQ; Thu, 24 Aug 2023 05:29:40 -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 1qZ6eR-0006Iz-0g for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:29:15 -0400 Received: from mail-wm1-x32c.google.com ([2a00:1450:4864:20::32c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1qZ6eA-00052T-Gm for qemu-devel@nongnu.org; Thu, 24 Aug 2023 05:29:04 -0400 Received: by mail-wm1-x32c.google.com with SMTP id 5b1f17b1804b1-3fe4cdb72b9so60746525e9.0 for ; Thu, 24 Aug 2023 02:28:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1692869334; x=1693474134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:from:to:cc:subject:date:message-id :reply-to; bh=jJcM1m2DqXyGCyWJeoR0m55Hp/YRlvKCbwqX7Yknn7U=; b=YwhzEcsMmzBZneA+2Mf7S1cGsbNupeXQQ9CxljSm3CS+JX7+AKVQSP9gv51rpE4Kfy k8F8j3/e1Yxi8Tp0k1rSM1sq+eLkqqwbNMUh1DT2+38pgdld/F4t2KFTGL+VkDcjZ8YR HIdoweSSz75tdxwUu0a3M7CwOzsxLSFtXOqPoUgQTwYwrGsIxr0jpW00UkKVQjdHaIfg g7XpvAtml8CKeb0aD99RBAG2gSCL0+EoMFykQH5Q03vciQ1z1Wy7eTzs7yhuKdtM261p vYrTzOyA9U8f8wNG4NW8U+J1qTQk5M5J92IJoAuP6HGjcRtpj6hUnllIpdOg1dTrDWw9 77OQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1692869334; x=1693474134; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=jJcM1m2DqXyGCyWJeoR0m55Hp/YRlvKCbwqX7Yknn7U=; b=dDTXu1wjFYsuyS5iiMlEEvVhgtiLpCqUcUTM45dQaWjxuoLQGBGd9D9vmJ1Dh1/L4e IHVude0YkeGp3CcHuxY7bz5pWYuNY2AysBXPbZCHVcUziVRKvyjHSVzxyxHBO4atVJf1 21KH3lNlC4ViwKtVjS6KdYdDnC7iLgnIIjfoWBftwGAgXRB/fgKA7MP+agX8JEBe2iCF JA5kdTtCLPrPUNEAnyAAQHY6VcO36g0bsDxJEqZA81n2ZyiTHZcjGvUL/biUQjzXx1Pd 8PwdbL/05GKzAnlc+nnUsKSIRBZKk8PW/HcjhhCHAqpuqEWF98Uw/3YNsNQvRCNlkRQg 00Tg== X-Gm-Message-State: AOJu0YwbRtfOS0xM06halqNihdLa3RLBOMPXl6LgmV6uVKpdY6ejRod4 ju6Uj5coTfcYbCfscxYPRLF7+YFZYesGzfKm9cY= X-Received: by 2002:a1c:f708:0:b0:3fb:e356:b60d with SMTP id v8-20020a1cf708000000b003fbe356b60dmr11503184wmh.38.1692869334476; Thu, 24 Aug 2023 02:28:54 -0700 (PDT) Received: from orth.archaic.org.uk (orth.archaic.org.uk. [2001:8b0:1d0::2]) by smtp.gmail.com with ESMTPSA id s12-20020adfeccc000000b00317b5c8a4f1sm21844004wro.60.2023.08.24.02.28.54 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 24 Aug 2023 02:28:54 -0700 (PDT) From: Peter Maydell To: qemu-devel@nongnu.org Subject: [PULL 34/35] target/arm: Fix SME ST1Q Date: Thu, 24 Aug 2023 10:28:35 +0100 Message-Id: <20230824092836.2239644-35-peter.maydell@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20230824092836.2239644-1-peter.maydell@linaro.org> References: <20230824092836.2239644-1-peter.maydell@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::32c; envelope-from=peter.maydell@linaro.org; helo=mail-wm1-x32c.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 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 --- 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 1e67fcac308..296826ffe6a 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) \ { \