From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7439 invoked by alias); 13 May 2002 12:35:11 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7432 invoked from network); 13 May 2002 12:35:08 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 13 May 2002 12:35:08 -0000 Received: by fw-cam.cambridge.arm.com; id NAA12298; Mon, 13 May 2002 13:35:06 +0100 (BST) Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xma011641; Mon, 13 May 02 13:34:38 +0100 Received: from cam-mail2.cambridge.arm.com (cam-mail2.cambridge.arm.com [172.16.1.91]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id NAA28968; Mon, 13 May 2002 13:34:38 +0100 (BST) Received: from sun18.cambridge.arm.com (sun18.cambridge.arm.com [172.16.2.18]) by cam-mail2.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id NAA27740; Mon, 13 May 2002 13:34:37 +0100 (BST) Message-Id: <200205131234.NAA27740@cam-mail2.cambridge.arm.com> To: Andrew Cagney cc: Richard.Earnshaw@arm.com, gdb@sources.redhat.com Reply-To: Richard.Earnshaw@arm.com Organization: ARM Ltd. X-Telephone: +44 1223 400569 (direct+voicemail), +44 1223 400400 (switchbd) X-Fax: +44 1223 400410 X-Address: ARM Ltd., 110 Fulbourn Road, Cherry Hinton, Cambridge CB1 9NJ. X-Url: http://www.arm.com/ Subject: Re: ARM and virtual/raw registers In-reply-to: Your message of "Sun, 12 May 2002 11:07:18 EDT." <3CDE8526.5080302@cygnus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Mon, 13 May 2002 05:35:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-05/txt/msg00139.txt.bz2 > Even more ruthless. Try a register layout of: > > -- > raw normal r0..r15 > raw someothers > raw floats > raw bank r0..r15 > raw still more > -- > pseudo r0..r15 > mapped onto either normal or banked > pseudo floats > mapped onto floats > and so on, for instance, explict register names to identify normal and > banked r0. > -- > > which completly separates the raw and pseudo registers. The function > register_name() becomes: > > if regnum < NUM_REGS > return ""; > else > return yourtable[regnum - NUM_REGS]; OK, I'm trying this general approach. One major failure, unfortunately. The remote-sim code has: else if (REGISTER_NAME (regno) != NULL && *REGISTER_NAME (regno) != '\0') { char buf[MAX_REGISTER_RAW_SIZE]; int nr_bytes; if (REGISTER_SIM_REGNO (regno) >= 0) nr_bytes = sim_fetch_register (gdbsim_desc, REGISTER_SIM_REGNO (regno), buf, REGISTER_RAW_SIZE (regno)); ... supply_register (regno, buf); Which is precisely the opposite of what I want: sim_fetch_register needs to fetch the raw (uncooked) registers, which is precisely the set that don't have names :-( REGISTER_SIM_REGNO doesn't help, because we never get to the code for the registers I need. R.