From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 25896 invoked by alias); 2 Jan 2002 16:58:00 -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 25827 invoked from network); 2 Jan 2002 16:57:56 -0000 Received: from unknown (HELO cygnus.com) (205.180.230.5) by sources.redhat.com with SMTP; 2 Jan 2002 16:57:56 -0000 Received: from rtl.cygnus.com (cse.cygnus.com [205.180.230.236]) by runyon.cygnus.com (8.8.7-cygnus/8.8.7) with ESMTP id IAA03357; Wed, 2 Jan 2002 08:57:52 -0800 (PST) Received: (from ezannoni@localhost) by rtl.cygnus.com (8.11.2/8.11.0) id g02GAgA01517; Wed, 2 Jan 2002 11:10:42 -0500 X-Authentication-Warning: localhost.localdomain: ezannoni set sender to ezannoni@cygnus.com using -f From: Elena Zannoni MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15411.12546.359568.836560@localhost.localdomain> Date: Wed, 02 Jan 2002 08:58:00 -0000 To: Andrew Volkov Cc: Elena Zannoni , gdb-patches@sources.redhat.com, kazu@hxi.com Subject: Re: [RFC/patch 5.1] change NUM_REALREGS to NUM_REGS In-Reply-To: <2E74F312D6980D459F3A05492BA40F8D61DB38@clue.transas.com> References: <2E74F312D6980D459F3A05492BA40F8D61DB38@clue.transas.com> X-Mailer: VM 7.00 under Emacs 20.7.1 X-SW-Source: 2002-01/txt/msg00001.txt.bz2 Andrew Volkov writes: > The attached patch replace NUM_REALREGS macro to NUM_REGS, > and NUM_REGS to NUM_REGS + NUM_PSEUDO_REGS. > > I need this for H8300 maltiarching. > > Any suggestions/comments ? > > Andrey Volkov > Andrey, You should also eliminate the definitions of the NUM_REALREGS macro. One definition of that macro is in config/h8300/tm-h8300.h (defined to 10). Hmm, h8300-tdep.c defines NUM_REGS to 11, instead. Oh, and look(!) config/tm-h8300.h defines NUM_REGS to 13. You also compile remote-e7000.c when the target triplet is one of sh-*-hms, sh-*-coff*, sh-*-elf*, sh-*-linux*. The definition of NUM_REALREGS then comes from config/sh/tm-sh.h (in this case is 59). Pretty messy. Maybe Kazu has some more insights on the h8300 definitions of NUM_REGS. Elena