This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [rfa] Add e500 function call support to PPC
On Mar 17, 11:59am, Andrew Cagney wrote:
> How about the attached?
>
> 2003-03-17 Andrew Cagney <cagney at redhat dot com>
>
> * rs6000-tdep.c (ppc_floating_point_unit_p): New function.
> * ppc-tdep.h (ppc_floating_point_unit_p): Declare.
>
> From Elena Zannoni <ezannoni at redhat dot com>
> * 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