From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16140 invoked by alias); 8 Aug 2003 23:12:32 -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 16076 invoked from network); 8 Aug 2003 23:12:31 -0000 Received: from unknown (HELO localhost.redhat.com) (24.157.166.107) by sources.redhat.com with SMTP; 8 Aug 2003 23:12:31 -0000 Received: from redhat.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 939672B85; Fri, 8 Aug 2003 19:12:23 -0400 (EDT) Message-ID: <3F342E57.1040708@redhat.com> Date: Fri, 08 Aug 2003 23:12:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0.2) Gecko/20030223 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Stephane Carrez Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH]: Fix page register definition in HC11 simulator References: <3F340E26.7000302@nerim.fr> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2003-08/txt/msg00141.txt.bz2 Stephane, > Hi! > > This patch fixes the definition of page register in simulator so that > it matches gdb definition (ok, I could have used a gdb mapping but I prefer > to have the same numbers everywhere if possible). Add a file include/gdb/sim-m68hc11.h and then share that between GDB and the sim. enjoy, Andrew > Committed on 6_0 and mainline. > > Stephane > > 2003-08-08 Stephane Carrez > > * sim-main.h (PAGE_REGNUM, Z_REGNUM): Use same numbering as gdb. > > > > > Index: sim-main.h > =================================================================== > RCS file: /cvs/src/src/sim/m68hc11/sim-main.h,v > retrieving revision 1.9.44.1 > diff -u -p -r1.9.44.1 sim-main.h > --- sim-main.h 8 Aug 2003 20:26:28 -0000 1.9.44.1 > +++ sim-main.h 8 Aug 2003 20:30:19 -0000 > @@ -79,8 +79,8 @@ enum cpu_type > #define A_REGNUM 5 > #define B_REGNUM 6 > #define PSW_REGNUM 7 > -#define Z_REGNUM 8 > -#define PAGE_REGNUM 9 > +#define PAGE_REGNUM 8 > +#define Z_REGNUM 9 > > typedef struct m6811_regs { > unsigned short d;