From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13534 invoked by alias); 8 Nov 2002 09:57:54 -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 13486 invoked from network); 8 Nov 2002 09:57:47 -0000 Received: from unknown (HELO fw-cam.cambridge.arm.com) (193.131.176.3) by sources.redhat.com with SMTP; 8 Nov 2002 09:57:47 -0000 Received: by fw-cam.cambridge.arm.com; id JAA00518; Fri, 8 Nov 2002 09:57:28 GMT Received: from unknown(172.16.1.2) by fw-cam.cambridge.arm.com via smap (V5.5) id xmaa00472; Fri, 8 Nov 02 09:57:25 GMT Received: from pc960.cambridge.arm.com (pc960.cambridge.arm.com [10.1.205.4]) by cam-admin0.cambridge.arm.com (8.9.3/8.9.3) with ESMTP id JAA12358; Fri, 8 Nov 2002 09:57:22 GMT Received: from pc960.cambridge.arm.com (rearnsha@localhost) by pc960.cambridge.arm.com (8.11.6/8.9.3) with ESMTP id gA89vMV18298; Fri, 8 Nov 2002 09:57:22 GMT Message-Id: <200211080957.gA89vMV18298@pc960.cambridge.arm.com> X-Authentication-Warning: pc960.cambridge.arm.com: rearnsha owned process doing -bs To: Michael Snyder cc: Richard.Earnshaw@arm.com, gdb-patches@sources.redhat.com, cagney@redhat.com, kevinb@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. Subject: Re: [RFA] arm_store_return_value, big-endian (take 2) In-reply-to: Your message of "Thu, 07 Nov 2002 19:19:47 PST." <3DCB2D53.E19B382A@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 08 Nov 2002 01:57:00 -0000 From: Richard Earnshaw X-SW-Source: 2002-11/txt/msg00217.txt.bz2 > Richard Earnshaw wrote: > > > > Leaving asside the issue of the correctness of write_register_bytes (note > > to self, must finish of my register patches), I don't think this is > > correct -- in fact, I think it's also wrong for little-endian as well. > > > > What should happen is that the smaller-than-word value should be > > zero/sign-extended to 32 bits and then the whole thing stored in A1_REGNUM. > > Ah, thanks. OK, how about this? > > 2002-11-06 Michael Snyder > > * arm-tdep.c (arm_store_return_value): Handle offset of > small types on big-endian machines. And for little-endian? R.