From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22431 invoked by alias); 11 Apr 2002 20:08:42 -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 22420 invoked from network); 11 Apr 2002 20:08:41 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 11 Apr 2002 20:08:41 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id D8ECF3CD0; Thu, 11 Apr 2002 16:08:45 -0400 (EDT) Message-ID: <3CB5ED4D.8030603@cygnus.com> Date: Thu, 11 Apr 2002 13:08:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:0.9.9) Gecko/20020328 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH] Add support for fpscr for Power / PowerPC targets References: <1020411191706.ZM3109@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-04/txt/msg00427.txt.bz2 > tdep->ppc_xer_regnum = 69; > if (v->mach == bfd_mach_ppc_601) > tdep->ppc_mq_regnum = 124; > - else > + else if (power) > tdep->ppc_mq_regnum = 70; > + else > + tdep->ppc_mq_regnum = -1; > + tdep->ppc_fpscr_regnum = power ? 71 : 70; > > For PowerPC, the fpscr regnum is 70, which was an unused slot. For > Power, I chose to use the first available slot (71). The other change > that this patch makes is to make MQ unavailable for all PowerPC > targets except for the 601 processors (which is as it should be). Kevin, is there any reason to not just use the same slot for both POWER and PowerPC? Andrew