From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailapp01.imgtec.com ([195.59.15.196]:58091 "EHLO mailapp01.imgtec.com" rhost-flags-OK-OK-OK-OK) by eddie.linux-mips.org with ESMTP id S23990773AbdIKFVuZu7sP (ORCPT ); Mon, 11 Sep 2017 07:21:50 +0200 Date: Mon, 11 Sep 2017 06:21:34 +0100 From: "Maciej W. Rozycki" Subject: Re: [PATCH] MIPS: Add basic R5900 support In-Reply-To: Message-ID: References: <20170827132309.GA32166@localhost.localdomain> <20170902102830.GA2602@localhost.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Return-Path: Sender: linux-mips-bounce@linux-mips.org Errors-to: linux-mips-bounce@linux-mips.org List-help: List-unsubscribe: List-software: Ecartis version 1.0.0 List-subscribe: List-owner: List-post: List-archive: To: Fredrik Noring Cc: linux-mips@linux-mips.org Message-ID: <20170911052134.IsOtfHVN_y3zMRQpE-DBohN0iGUmfcD1hdHnFq3bwEg@z> On Sat, 9 Sep 2017, Maciej W. Rozycki wrote: > Can you please try flipping the bits instead then, e.g.: > > uint32_t fcsr0, fcsr1; > asm volatile (" cfc1 %0,$31\n" > " lui %1,0xfffc\n" Actually can you please substitute: " li %1,0xfffc0003\n" here, so that we know how RM behaves? Again, it is odd to see it set to 1 (towards zero) by default and if it is hardwired, then `->fpu_csr31' and `->fpu_msk31' will have to be updated, AT_FPUCW exported and glibc adjusted. Maciej