From patchwork Fri Sep 6 11:13:10 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 825944 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp747300wrb; Fri, 6 Sep 2024 04:22:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUHv1t2BfZPUDExdBB3GY4mZqAvcwWJQdKaUYhJ0PSjLt3FuNNWI0PDFn9KD9I9k7VqrHKGGA==@linaro.org X-Google-Smtp-Source: AGHT+IHauOnGqowm53ooGTa33aixBIOkwrErcvclO0hkecYwFp86YkfAJxv3VwVYoqNZsJXkyROU X-Received: by 2002:a05:6102:3907:b0:498:dd44:32c with SMTP id ada2fe7eead31-49a5af81969mr31191977137.28.1725621762040; Fri, 06 Sep 2024 04:22:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725621762; cv=none; d=google.com; s=arc-20240605; b=by3a4QoJfL0t+14sQuBuaRlnvIpBJI8pLU+pz8yc1VL/b06RQmByOGHes3av6/1TYk r/f7DFkzbuCE4U6RJC3J31FGKcHkbh6VelUrMBTcU7AAQWpNVCimoYhCp6wMy/fBvsQ2 LUnmfT8GaqwZmLwW/9/HXym1qpeE/HJXc6Lq4ym8kJYgNVZR7vjl2+DwprqDMunEJR0B xOxJAhBw+Cxu3OuL34Uzj7OOFomYZwwQBOWlVsmgDdy9qN+LOP1PgRnKYbJuk6nkVDwa GlUYQDTlTXIvhAqKhrCGlKF409/nMHL+F0hpgrsYYbjNX3u2zlNbZdYkYj0vpZ+Yz42c zk7A== 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=NKUFIJBQb+CBqs9blaoqXhBAvpIZOP/pqZD9V3LBP8U=; fh=K4abbxCgZAPvqzOXA+PZ7RIZh+KufMVJze7rXLOwES0=; b=Hs65MjsZHUk0GHdK6qKNp2bKdG5h6Bb7OPcvFXCPmj6V4ORqX08X/7RtjsVhX6tmfK 2j7qaQBdvBwMUbzFjRQ4vnEF5Idhe9hLmPQw+Q4Mp/apvQsbpoH3aQUEYoI4xy6EkrBu FU4IUvXA5/PvE//Fdo5QmOm3rVq4+K47D00P98v2+a94imaNo0IPLYBzV75kAd1/mkly 9NTeRYSBeBhGf9eDsegfZ8bMPObJr+ZFhFDbzR54ODuH4huYYsh969hVEn/qCnOpzQWV U68DMYiaS2Vcns0MjF6tVVH5+W+19uHuE2GqWf932dL24EAtD7OOKghETbzuJcw24cS0 +NQw==; 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-7a9a1068fbfsi6380985a.255.2024.09.06.04.22.41 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 06 Sep 2024 04:22: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; 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 1smWze-0005Th-Mf; Fri, 06 Sep 2024 07:19:10 -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 1smWzZ-0004uW-8N; Fri, 06 Sep 2024 07:19:05 -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 1smWzX-0008KB-Hd; Fri, 06 Sep 2024 07:19:04 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id 735588C4AE; Fri, 6 Sep 2024 14:12:10 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 806FA133717; Fri, 6 Sep 2024 14:13:28 +0300 (MSK) Received: (nullmailer pid 353745 invoked by uid 1000); Fri, 06 Sep 2024 11:13:25 -0000 From: Michael Tokarev To: qemu-devel@nongnu.org Cc: qemu-stable@nongnu.org, Richard Henderson , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Michael Tokarev Subject: [Stable-9.0.3 61/69] target/sparc: Restrict STQF to sparcv9 Date: Fri, 6 Sep 2024 14:13:10 +0300 Message-Id: <20240906111324.353230-61-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, T_SCC_BODY_TEXT_LINE=-0.01 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 Prior to sparcv9, the same encoding was STDFQ. Cc: qemu-stable@nongnu.org Fixes: 06c060d9e5b ("target/sparc: Move simple fp load/store to decodetree") Signed-off-by: Richard Henderson Reviewed-by: Philippe Mathieu-Daudé Message-ID: <20240816072311.353234-2-richard.henderson@linaro.org> Signed-off-by: Philippe Mathieu-Daudé (cherry picked from commit 12d36294a2d978faf893101862118d1ac1815e85) Signed-off-by: Michael Tokarev diff --git a/target/sparc/insns.decode b/target/sparc/insns.decode index e2d8a07dc4..d2b29de084 100644 --- a/target/sparc/insns.decode +++ b/target/sparc/insns.decode @@ -484,7 +484,7 @@ STF 11 ..... 100100 ..... . ............. @r_r_ri_na STFSR 11 00000 100101 ..... . ............. @n_r_ri STXFSR 11 00001 100101 ..... . ............. @n_r_ri { - STQF 11 ..... 100110 ..... . ............. @q_r_ri_na + STQF 11 ..... 100110 ..... . ............. @q_r_ri_na # v9 STDFQ 11 ----- 100110 ----- - ------------- } STDF 11 ..... 100111 ..... . ............. @d_r_ri_na diff --git a/target/sparc/translate.c b/target/sparc/translate.c index 99c6f3cc72..9d5d0ae47c 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -4151,7 +4151,7 @@ static bool do_st_fpr(DisasContext *dc, arg_r_r_ri_asi *a, MemOp sz) TRANS(STF, ALL, do_st_fpr, a, MO_32) TRANS(STDF, ALL, do_st_fpr, a, MO_64) -TRANS(STQF, ALL, do_st_fpr, a, MO_128) +TRANS(STQF, 64, do_st_fpr, a, MO_128) TRANS(STFA, 64, do_st_fpr, a, MO_32) TRANS(STDFA, 64, do_st_fpr, a, MO_64)