From patchwork Fri Sep 6 06:54:18 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Michael Tokarev X-Patchwork-Id: 825919 Delivered-To: patch@linaro.org Received: by 2002:adf:a345:0:b0:367:895a:4699 with SMTP id d5csp662742wrb; Thu, 5 Sep 2024 23:59:16 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUn97jtJgFLt+/UETMJzXIlNB7RRWK0M89VxdfMwN9jhtM0NfI0Olk+9VwmTSLh2jRkJnO3Mg==@linaro.org X-Google-Smtp-Source: AGHT+IEXGdqhIwUHi9/tSqRVZYO2UMqd7uNeOoXZ/eYmJb/a+UxJLPn6OE7Mw3Psx7cbjY3Pg3qG X-Received: by 2002:a05:622a:259b:b0:450:4788:ac93 with SMTP id d75a77b69052e-4567f542393mr261113821cf.26.1725605956547; Thu, 05 Sep 2024 23:59:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1725605956; cv=none; d=google.com; s=arc-20240605; b=JaprrhvEAxuPT+5MwpA6rjZ9/oY18zWbenuCud56/aWmJeNWlH9TgZasIWXT0bt8dU KRvmTvVBhv/BLvZY2KIxgtWJWiIh1JAO0DWhJvVfrobP0SuoAEIvwfi4XNBQgYVzmwcG y2z+F4LEHJ/ANzPFymyr6UATqCSAheE0Qx9mKwkkoxJAkrj9GXk6zRs/+TdxcX4rLGv5 B3Ew0R210KaORT5sMvIcc33vGqQItCQeAqVKJUSiid1M2E2zCWTnP7RAWUlxH1Q6sJ3q s/UjBS/0lApkZ2zmIblccATKTQEEMs38zlzMGtTx9tdPgBFyXJNMbbbsuxyzfFVgIGvQ nH/A== 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=DyFEawXU3BrVtWXQTzUYpAlAE85lvs+W8aiHzwtoi7U=; fh=K4abbxCgZAPvqzOXA+PZ7RIZh+KufMVJze7rXLOwES0=; b=W1+0a/9V8fAQaWk1DSeepbca/0BCyMpn8RAxh4BnYEGzyigTl+/TXEDTLyi92klu99 edlFy0oO1rb9NvgnhMNlPGiAWISH1lvty93yPhQHXboKn9ylahGIxoO2GkiPHbxRUiLo ON9QAkDwpndGkHtxxRQU+OT9ADj4gFqkGu8Fat+GLWf1/dt5vBwlyJTz+mPhcC7/3UEz zkwjPPMXQUFxoVbz3spQzt3l9ZtkK4UPRxuvrY+vd6px2Rl33OXhDxlRwM67dv457TUN KxfZmtDAlns3ZEqPwDvSZhvSKTCY0oqZnxv62r1sT31zrV1EUh2QLmFUbESAo3Mo+BWa nA8g==; 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 d75a77b69052e-45809c9902csi20106521cf.567.2024.09.05.23.59.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 05 Sep 2024 23:59:16 -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 1smSw3-0004gF-HF; Fri, 06 Sep 2024 02:59:11 -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 1smSvo-00026J-SU; Fri, 06 Sep 2024 02:58:57 -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 1smSvn-0003lj-BG; Fri, 06 Sep 2024 02:58:56 -0400 Received: from tsrv.corpit.ru (tsrv.tls.msk.ru [192.168.177.2]) by isrv.corpit.ru (Postfix) with ESMTP id C7F908C265; Fri, 6 Sep 2024 09:53:14 +0300 (MSK) Received: from tls.msk.ru (mjt.wg.tls.msk.ru [192.168.177.130]) by tsrv.corpit.ru (Postfix) with SMTP id 91B3413341D; Fri, 6 Sep 2024 09:54:32 +0300 (MSK) Received: (nullmailer pid 43697 invoked by uid 1000); Fri, 06 Sep 2024 06:54:31 -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-8.2.7 48/53] target/sparc: Restrict STQF to sparcv9 Date: Fri, 6 Sep 2024 09:54:18 +0300 Message-Id: <20240906065429.42415-48-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 7058b6c2a4..94350aa588 100644 --- a/target/sparc/translate.c +++ b/target/sparc/translate.c @@ -4362,7 +4362,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)