From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17659 invoked by alias); 15 May 2003 00:15:26 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 17587 invoked from network); 15 May 2003 00:15:25 -0000 Received: from unknown (HELO crack.them.org) (146.82.138.56) by sources.redhat.com with SMTP; 15 May 2003 00:15:25 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 19G6PI-0001Tw-00; Wed, 14 May 2003 19:15:36 -0500 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 19G6Oo-0001G2-00; Wed, 14 May 2003 20:15:06 -0400 Date: Thu, 15 May 2003 00:15:00 -0000 From: Daniel Jacobowitz To: Kevin Buettner Cc: cgd@broadcom.com, Andrew Cagney , gdb-patches@sources.redhat.com Subject: Re: [WIP/RFC] MIPS registers overhaul Message-ID: <20030515001505.GA4815@nevyn.them.org> Mail-Followup-To: Kevin Buettner , cgd@broadcom.com, Andrew Cagney , gdb-patches@sources.redhat.com References: <1030510002453.ZM3880@localhost.localdomain> <3EBD6131.30209@redhat.com> <1030514220025.ZM10373@localhost.localdomain> <1030515000716.ZM10885@localhost.localdomain> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1030515000716.ZM10885@localhost.localdomain> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-05/txt/msg00234.txt.bz2 On Wed, May 14, 2003 at 05:07:16PM -0700, Kevin Buettner wrote: > On May 14, 4:34pm, cgd@broadcom.com wrote: > > > In other words, the real arbiter of the unpredictability of those bits > > is Status:FR, so you should probably display them consistently with > > what it says (if you have Status... I forget 8-). > > I see the following in mips2_fp_compat(): > > #if 0 > /* FIXME drow 2002-03-10: This is disabled until we can do it consistently, > in all the places we deal with FP registers. PR gdb/413. */ > /* Otherwise check the FR bit in the status register - it controls > the FP compatiblity mode. If it is clear we are in compatibility > mode. */ > if ((read_register (PS_REGNUM) & ST0_FR) == 0) > return 1; > #endif > > I don't know the details, but it appears that there may be problems > with consistently being able to fetch the status register. (Maybe > it's not available on all MIPS targets that GDB supports?) > > Anyone know? Hmm, I vaguely remember writing that. I don't think that's what I meant by consistent - I just meant that we needed to use that function everywhere appropriate. I believe Status is always available, so we could use it to choose which FP registers are exposed. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer