From nobody Mon Feb 9 09:52:43 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=reject dis=none) header.from=miszr.win ARC-Seal: i=1; a=rsa-sha256; t=1738746284; cv=none; d=zohomail.com; s=zohoarc; b=fujZ8GXj6x1xsD7xoltKvq6932l2cgmIlH4v4VYZ9d6vKwdizBH35zRp+5ArRZ3KkTyJOprCQMdfYyFlDloK+HKmmNt6GVkG89BSpunO3T/Gdm5RBTrykiFdi/UQwenIlN50MmQxf81RzwQsjY8ZrGNMQM9AufGKiOPrAFSrJPc= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1738746284; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=raYIHEgeTxW3E2Hf+6kFG/cpXPTBsO8kwXXvuIO7W/Y=; b=dnYnVyQeZ4qREbt7G0397KqSwoDYtcNEx1R/2XRX5GN/hFL9BqiipYonSYrtuPSPumF76ISJcdkbnG1yvgEZcV/cRZNb/Kmp4EdyBuzHUce8ocm/rYo7/Dhv+Ajd73BVI8Kj2AKmoyuXbLd69AGAGThrFWS4MvxExWbWLdLhuV8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1738746284597385.114175987163; Wed, 5 Feb 2025 01:04:44 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tfbKE-0006Ew-Pb; Wed, 05 Feb 2025 04:04:02 -0500 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 1tfbKB-0006Dz-2X for qemu-devel@nongnu.org; Wed, 05 Feb 2025 04:04:00 -0500 Received: from smtp.forwardemail.net ([121.127.44.73]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tfbK8-0002ix-Mo for qemu-devel@nongnu.org; Wed, 05 Feb 2025 04:03:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=miszr.win; h=Content-Transfer-Encoding: MIME-Version: References: In-Reply-To: Message-ID: Date: Subject: Cc: To: From; q=dns/txt; s=fe-257304d8b2; t=1738746234; bh=raYIHEgeTxW3E2Hf+6kFG/cpXPTBsO8kwXXvuIO7W/Y=; b=kwgPTLAPFO2gUhn/5ty0/qzfj6g/Q036DJjXtDkvyVNIVee06O5UcLK/73UFPaq+5vyRl5VS4 vCFqY1AuxKXldjKvHvjgBAPtJ0wly8nydw1pdLUn0Y1aOK9ifkkYTOetPiZ66vfHtaa1XIamWs8 l3hHW/mdUw+F4vyfT2VgieY= X-Forward-Email-ID: 67a32977f2c6eba601968081 X-Forward-Email-Sender: rfc822; git@miszr.win, smtp.forwardemail.net, 121.127.44.73 X-Forward-Email-Version: 0.4.40 X-Forward-Email-Website: https://forwardemail.net X-Complaints-To: abuse@forwardemail.net X-Report-Abuse: abuse@forwardemail.net X-Report-Abuse-To: abuse@forwardemail.net From: Mikael Szreder To: qemu-devel@nongnu.org Cc: Richard Henderson , Mark Cave-Ayland , Artyom Tarasenko , Mikael Szreder Subject: [PATCH v2 1/2] target/sparc: Fix register selection for the fdtox and fqtox instructions Date: Wed, 5 Feb 2025 10:03:32 +0100 Message-ID: <20250205090333.19626-2-git@miszr.win> X-Mailer: git-send-email 2.48.1 In-Reply-To: <20250205090333.19626-1-git@miszr.win> References: <20250205090333.19626-1-git@miszr.win> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=121.127.44.73; envelope-from=SRS0=dc2d=U4=miszr.win=git@fe-bounces.miszr.win; helo=smtp.forwardemail.net 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, FROM_FMBLA_NEWDOM=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001, SPF_HELO_PASS=-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+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @miszr.win) X-ZM-MESSAGEID: 1738746286906019100 Content-Type: text/plain; charset="utf-8" A bug was introduced in commit 0bba7572d40d which causes the fdtox and fqtox instructions to incorrectly select the destination registers. More information and a test program can be found in issue #2802. Fixes: 0bba7572d40d ("target/sparc: Perform DFPREG/QFPREG in decodetree") Resolves: https://gitlab.com/qemu-project/qemu/-/issues/2802 Signed-off-by: Mikael Szreder --- target/sparc/insns.decode | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/target/sparc/insns.decode b/target/sparc/insns.decode index 989c20b44a..694a28d88c 100644 --- a/target/sparc/insns.decode +++ b/target/sparc/insns.decode @@ -322,8 +322,8 @@ FNHADDs 10 ..... 110100 ..... 0 0111 0001 ..... = @r_r_r FNHADDd 10 ..... 110100 ..... 0 0111 0010 ..... @d_d_d FNsMULd 10 ..... 110100 ..... 0 0111 1001 ..... @d_r_r FsTOx 10 ..... 110100 00000 0 1000 0001 ..... @r_r2 -FdTOx 10 ..... 110100 00000 0 1000 0010 ..... @r_d2 -FqTOx 10 ..... 110100 00000 0 1000 0011 ..... @r_q2 +FdTOx 10 ..... 110100 00000 0 1000 0010 ..... @d_d2 +FqTOx 10 ..... 110100 00000 0 1000 0011 ..... @q_q2 FxTOs 10 ..... 110100 00000 0 1000 0100 ..... @r_r2 FxTOd 10 ..... 110100 00000 0 1000 1000 ..... @d_r2 FxTOq 10 ..... 110100 00000 0 1000 1100 ..... @q_r2 --=20 2.48.1