Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.2 required=3.0 tests=BAYES_00, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SIGNED_OFF_BY,SPF_HELO_NONE, SPF_PASS,URIBL_BLOCKED,USER_AGENT_SANE_1 autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 05392C2D0E2 for ; Tue, 22 Sep 2020 11:28:07 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 9F2D523A1B for ; Tue, 22 Sep 2020 11:28:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726515AbgIVL2G (ORCPT ); Tue, 22 Sep 2020 07:28:06 -0400 Received: from elvis.franken.de ([193.175.24.41]:51213 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726454AbgIVL2G (ORCPT ); Tue, 22 Sep 2020 07:28:06 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kKgSj-0008PU-00; Tue, 22 Sep 2020 13:27:57 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 25486C0FFF; Tue, 22 Sep 2020 13:26:59 +0200 (CEST) Date: Tue, 22 Sep 2020 13:26:59 +0200 From: Thomas Bogendoerfer To: Huacai Chen Cc: linux-mips@vger.kernel.org, Fuxin Zhang , Huacai Chen , Jiaxun Yang , Pei Huang Subject: Re: [PATCH] MIPS: Loongson-3: Fix fp register access if MSA enabled Message-ID: <20200922112659.GA4866@alpha.franken.de> References: <1598255043-11839-1-git-send-email-chenhc@lemote.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1598255043-11839-1-git-send-email-chenhc@lemote.com> User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On Mon, Aug 24, 2020 at 03:44:03PM +0800, Huacai Chen wrote: > If MSA is enabled, FPU_REG_WIDTH is 128 rather than 64, then get_fpr64() > /set_fpr64() in the original unaligned instruction emulation code access > the wrong fp registers. This is because the current code doesn't specify > the correct index field, so fix it. > > Fixes: f83e4f9896eff614d0f2547a ("MIPS: Loongson-3: Add some unaligned instructions emulation") > Signed-off-by: Huacai Chen > Signed-off-by: Pei Huang > --- > arch/mips/loongson64/cop2-ex.c | 24 ++++++++---------------- > 1 file changed, 8 insertions(+), 16 deletions(-) applied to mips-fixes. Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]