From patchwork Fri Dec 10 14:13:43 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?V=C3=ADctor_Colombo?= X-Patchwork-Id: 1566540 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=permerror (SPF Permanent Error: redirect domain has no SPF record: gnu.org) smtp.mailfrom=nongnu.org (client-ip=209.51.188.17; helo=lists.gnu.org; envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org; receiver=) Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4J9ZWy5Rmsz9sR4 for ; Sat, 11 Dec 2021 02:27:10 +1100 (AEDT) Received: from localhost ([::1]:57218 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvhng-0003O5-Jk for incoming@patchwork.ozlabs.org; Fri, 10 Dec 2021 10:27:08 -0500 Received: from eggs.gnu.org ([209.51.188.92]:48372) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1mvgww-0004aN-HE; Fri, 10 Dec 2021 09:32:38 -0500 Received: from [201.28.113.2] (port=6297 helo=outlook.eldorado.org.br) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1mvgwt-0002Cy-Rd; Fri, 10 Dec 2021 09:32:38 -0500 Received: from power9a ([10.10.71.235]) by outlook.eldorado.org.br with Microsoft SMTPSVC(8.5.9600.16384); Fri, 10 Dec 2021 11:13:52 -0300 Received: from eldorado.org.br (unknown [10.10.70.45]) by power9a (Postfix) with ESMTP id 6323B8009F6; Fri, 10 Dec 2021 11:13:52 -0300 (-03) From: Victor Colombo To: qemu-devel@nongnu.org, qemu-ppc@nongnu.org Subject: [PATCH 0/4] target/ppc: Fix VSX instructions register access Date: Fri, 10 Dec 2021 11:13:43 -0300 Message-Id: <20211210141347.38603-1-victor.colombo@eldorado.org.br> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 X-OriginalArrivalTime: 10 Dec 2021 14:13:52.0748 (UTC) FILETIME=[28FEB2C0:01D7EDD0] X-Host-Lookup-Failed: Reverse DNS lookup failed for 201.28.113.2 (failed) Received-SPF: pass client-ip=201.28.113.2; envelope-from=victor.colombo@eldorado.org.br; helo=outlook.eldorado.org.br X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, RDNS_NONE=0.793, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Fri, 10 Dec 2021 10:20:18 -0500 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: , Cc: danielhb413@gmail.com, groug@kaod.org, Victor Colombo , clg@kaod.org, matheus.ferst@eldorado.org.br, david@gibson.dropbear.id.au Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: "Qemu-devel" Instructions xscvqpdp, xsmaxcdp, xsmincdp, xsmaxjdp, and xsminjdp are using the wrong registers, which yields the wrong result when using them. This patch series fixes this issue by correcting the registers used. It also takes the opportunity to move these instructions to decodetree. Matheus Ferst (2): target/ppc: fix xscvqpdp register access target/ppc: move xscvqpdp to decodetree Victor Colombo (2): target/ppc: Fix xs{max,min}[cj]dp to use VSX registers target/ppc: Move xs{max,min}[cj]dp to decodetree target/ppc/fpu_helper.c | 14 +++----- target/ppc/helper.h | 10 +++--- target/ppc/insn32.decode | 21 +++++++++-- target/ppc/translate/vsx-impl.c.inc | 55 +++++++++++++++++++++-------- target/ppc/translate/vsx-ops.c.inc | 5 --- 5 files changed, 68 insertions(+), 37 deletions(-)