From patchwork Sat Sep 9 12:59:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 721090 Delivered-To: patch@linaro.org Received: by 2002:adf:f64d:0:b0:31d:da82:a3b4 with SMTP id x13csp257119wrp; Sat, 9 Sep 2023 06:07:45 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEzesd8IQJzg+wyw5SqHgFoegRtTPrNr7P/EkEGCl/nE+4P+BY9n4Q0lPmyLcASu0FCsD8r X-Received: by 2002:a05:622a:586:b0:412:23ca:c9f5 with SMTP id c6-20020a05622a058600b0041223cac9f5mr5340693qtb.39.1694264865064; Sat, 09 Sep 2023 06:07:45 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1694264865; cv=none; d=google.com; s=arc-20160816; b=VqA1bG+J/5zcocymisjiNwfQzQWpNqv2AbtYU1cdIsWpKpZjBqmXXSAkCcsJk8roA8 llqzXyv6isjhhRJHybmvsw7JfGwbzlMlA5h3u2BYr28qWsU1c3whUAwGlzM7fxnQbPg3 Y5RPcY0ZLQuWtJDkGz14x94TXuiGxHr0UqJNh3ixor9PwPMgJDoMjPh8WLwSMGWnaEJr jekvfikIC91INnR5eoa2TUGlfOFqs+q9BodUiwFirom2ZZosYL0t7pC6Wr+OQFewSQXA 7N4dz1TXDKT9nX8FKRvZF6La/p00Uet3xywUUnbAGcYmqPwZFF2xxei5nrndy5Kk1S+V 9eEw== 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=HEU7gRiKpbrrMvSBQdbAkbZpGYeE7IBVGUpLc5Tpycw=; fh=TbI2pklXwlJGmj6m7lZZgI+jTnI/L5qcZuxsjME8SeI=; b=xSNR7LDZh/X/2F/N9qjBJtSbjr3e/RsIkjURZQxX67ueivkyz6XTWzl9kJJdmVMXhr j/QPcZkduD2VrWTj+zbMMXUtO058loyEUJmidPNBEeepa5mNBqfQJUIUIrAGpb/p7z38 mfMtAxATjjH5es7Sgu0QncMLizkzwPkga7JSi6DSUYixYtYdYA60Xf9GestwOq88t9qn gXPEOwdNln4odNw3dvMqzLjnIBHhLCsTAmtLDr1BZDKJCcU25J96+pN36yGNeyvw9NaY pc6xGbOYJdp/0AgtalVynfUHy9WRBJxOXF7fNr2D3RMbNR0clY+4di0TLSgq/i9m3fff 7Tlw== 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 s32-20020a05622a1aa000b00410ab79d56esi2532164qtc.444.2023.09.09.06.07.44 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Sat, 09 Sep 2023 06:07:45 -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 1qexbh-0002wW-QL; Sat, 09 Sep 2023 09:02:38 -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 1qexbc-0002Tw-Gv; Sat, 09 Sep 2023 09:02:32 -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 1qexbZ-0002nI-QM; Sat, 09 Sep 2023 09:02:32 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 37ACF205A7; 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 F3CD526E0D; Sat, 9 Sep 2023 16:00:26 +0300 (MSK) Received: (nullmailer pid 353130 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 25/43] target/arm: Fix 64-bit SSRA Date: Sat, 9 Sep 2023 15:59:51 +0300 Message-Id: <20230909130020.352951-25-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 Typo applied byte-wise shift instead of double-word shift. Cc: qemu-stable@nongnu.org Fixes: 631e565450c ("target/arm: Create gen_gvec_[us]sra") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1737 Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-id: 20230821022025.397682-1-richard.henderson@linaro.org Signed-off-by: Peter Maydell (cherry picked from commit cd1e4db73646006039f25879af3bff55b2295ff3) Signed-off-by: Michael Tokarev diff --git a/target/arm/tcg/translate.c b/target/arm/tcg/translate.c index 1e4d94e58a..e1fe68f73a 100644 --- a/target/arm/tcg/translate.c +++ b/target/arm/tcg/translate.c @@ -3063,7 +3063,7 @@ void gen_gvec_ssra(unsigned vece, uint32_t rd_ofs, uint32_t rm_ofs, .vece = MO_32 }, { .fni8 = gen_ssra64_i64, .fniv = gen_ssra_vec, - .fno = gen_helper_gvec_ssra_b, + .fno = gen_helper_gvec_ssra_d, .prefer_i64 = TCG_TARGET_REG_BITS == 64, .opt_opc = vecop_list, .load_dest = true,