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 AF0CCC4363D for ; Tue, 22 Sep 2020 07:04:33 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 61D8E23A1E for ; Tue, 22 Sep 2020 07:04:33 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729591AbgIVHEd (ORCPT ); Tue, 22 Sep 2020 03:04:33 -0400 Received: from elvis.franken.de ([193.175.24.41]:50708 "EHLO elvis.franken.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729168AbgIVHEc (ORCPT ); Tue, 22 Sep 2020 03:04:32 -0400 Received: from uucp (helo=alpha) by elvis.franken.de with local-bsmtp (Exim 3.36 #1) id 1kKcLl-00061j-00; Tue, 22 Sep 2020 09:04:29 +0200 Received: by alpha.franken.de (Postfix, from userid 1000) id 3A71DC0FE4; Tue, 22 Sep 2020 09:03:56 +0200 (CEST) Date: Tue, 22 Sep 2020 09:03:56 +0200 From: Thomas Bogendoerfer To: Huacai Chen Cc: "open list:MIPS" , Fuxin Zhang , Jiaxun Yang , Pei Huang Subject: Re: [PATCH] MIPS: Loongson-3: Fix fp register access if MSA enabled Message-ID: <20200922070356.GA6275@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: User-Agent: Mutt/1.5.23 (2014-03-12) Precedence: bulk List-ID: X-Mailing-List: linux-mips@vger.kernel.org On Tue, Sep 22, 2020 at 10:06:24AM +0800, Huacai Chen wrote: > On Mon, Aug 24, 2020 at 3:40 PM 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(-) should this go via mips-fixes ? Thomas. -- Crap can work. Given enough thrust pigs will fly, but it's not necessarily a good idea. [ RFC1925, 2.3 ]