From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21497 invoked by alias); 17 Mar 2003 17:45:50 -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 21431 invoked from network); 17 Mar 2003 17:45:50 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 17 Mar 2003 17:45:50 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id h2HHjoQ08743 for ; Mon, 17 Mar 2003 12:45:50 -0500 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h2HHjnV29440; Mon, 17 Mar 2003 12:45:49 -0500 Received: from localhost.localdomain (vpn50-21.rdu.redhat.com [172.16.50.21]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id h2HHjmL18548; Mon, 17 Mar 2003 12:45:48 -0500 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h2HHjhJ18779; Mon, 17 Mar 2003 10:45:43 -0700 Date: Mon, 17 Mar 2003 17:45:00 -0000 From: Kevin Buettner Message-Id: <1030317174542.ZM18778@localhost.localdomain> In-Reply-To: Andrew Cagney "Re: [rfa] Add e500 function call support to PPC" (Mar 17, 11:59am) References: <3E6A4068.9000506@redhat.com> <1030309005725.ZM21224@localhost.localdomain> <3E6CAB16.10607@redhat.com> <1030310175404.ZM3626@localhost.localdomain> <3E6CEE02.10005@redhat.com> <1030310214650.ZM4443@localhost.localdomain> <3E75FF08.5020906@redhat.com> To: Andrew Cagney , Kevin Buettner Subject: Re: [rfa] Add e500 function call support to PPC Cc: gdb-patches@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-03/txt/msg00368.txt.bz2 On Mar 17, 11:59am, Andrew Cagney wrote: > How about the attached? > > 2003-03-17 Andrew Cagney > > * rs6000-tdep.c (ppc_floating_point_unit_p): New function. > * ppc-tdep.h (ppc_floating_point_unit_p): Declare. > > From Elena Zannoni > * ppc-sysv-tdep.c (ppc_sysv_abi_push_arguments): Handle e500 > vector and floating-point parameters. > (ppc_sysv_abi_use_struct_convention): Handle e500 struct return > convention. > (ppc_sysv_abi_broken_use_struct_convention): Ditto. > > Index: ppc-sysv-tdep.c > =================================================================== > RCS file: /cvs/src/src/gdb/ppc-sysv-tdep.c,v > retrieving revision 1.3 > diff -u -r1.3 ppc-sysv-tdep.c > --- ppc-sysv-tdep.c 14 Nov 2002 20:37:28 -0000 1.3 > +++ ppc-sysv-tdep.c 17 Mar 2003 16:43:36 -0000 > @@ -61,11 +61,12 @@ > int structstkspace; > int argoffset; > int structoffset; > - struct value *arg; > struct type *type; > int len; > char old_sp_buf[4]; > CORE_ADDR saved_sp; > + struct gdbarch_tdep *tdep = gdbarch_tdep (current_gdbarch); > + const struct bfd_arch_info *arch_info = gdbarch_bfd_arch_info (current_gdbarch); Now that you've introduced ppc_floating_point_unit_p(), I don't think that arch_info is needed any longer. Otherwise, okay. Kevin