From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18028 invoked by alias); 7 May 2002 15:50:59 -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 17998 invoked from network); 7 May 2002 15:50:56 -0000 Received: from unknown (HELO localhost.redhat.com) (216.138.202.10) by sources.redhat.com with SMTP; 7 May 2002 15:50:56 -0000 Received: from cygnus.com (localhost [127.0.0.1]) by localhost.redhat.com (Postfix) with ESMTP id 0499E3D0A; Tue, 7 May 2002 11:51:02 -0400 (EDT) Message-ID: <3CD7F7E5.8090207@cygnus.com> Date: Tue, 07 May 2002 08:50:00 -0000 From: Andrew Cagney User-Agent: Mozilla/5.0 (X11; U; NetBSD macppc; en-US; rv:1.0rc1) Gecko/20020429 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Richard.Earnshaw@arm.com Cc: gdb-patches@sources.redhat.com Subject: Re: [patch/rfc] default REGISTER_VIRTUAL_SIZE and REGISTER_RAW_SIZE to register_size References: <200205071020.LAA02712@cam-mail2.cambridge.arm.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2002-05/txt/msg00155.txt.bz2 > Hello, >> >> For most architectures. The relationship: >> >> REGISTER_VIRTUAL_SIZE(N) >> == REGISTER_RAW_SIZE(N) >> == TYPE_LENGTH(REGISTER_VIRTUAL_TYPE(N) >> >> (the exception is the @$(*&@(^$*&^!@ MIPS ...). Given this, the >> attached patch changes the architecture vector so that it defaults both >> to the register's type size. > > > The ARM has REGISTER_VIRTUAL_SIZE(FPA-reg) == 8, but > REGISTER_RAW_SIZE(FPA-reg) == 12. > > But that doesn't necessarily make the change wrong, provided we can > override the default. Hmm, remember that think-o bug I posted? ARM's register virtual type is: if (regnum >= ARM_F0_REGNUM && regnum < ARM_F0_REGNUM + NUM_FREGS) { if (TARGET_BYTE_ORDER == BFD_ENDIAN_BIG) return builtin_type_arm_ext_big; else return builtin_type_arm_ext_littlebyte_bigword; } (i.e. 12 bytes) yet virtual size for those registers returns: #define FP_REGISTER_VIRTUAL_SIZE 8 Outch! Having different raw and virtual sizes only does something(1) when register_convertible() is defined - the Arm doesn't define this. enjoy, Andrew (1) I'm not saying that what it does is useful though :-)