This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Add v850e3v5 and RH850 ABI support to v850-tdep.c


On Sat, 27 Apr 2013 00:55:20 -0700
Kevin Buettner <kevinb@redhat.com> wrote:

> 	* v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
> 	(R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
> 	(E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
> 	(E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
> 	(E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
> 	(E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
> 	(E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
> 	(v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
> 	(gdbarch_tdep): New struct.
> 	(v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
> 	E_NUM_REGS.
> 	(v850e3v5_register_name): New function.
> 	(v850_register_type): v850e3v5 vector registers are 64-bits wide.
> 	(v850_use_struct_convention): Add `gdbarch' parameter.  Add new
> 	code handling the struct return conventions for the RH850 ABI.
> 	Update all callers.
> 	(v850_eight_byte_align_p): New function.
> 	(v850_push_call_dummy): Push structs by value, not by reference
> 	for the RH850 ABI.  Add support for eight byte alignment.
> 	(v850_dbtrap_breakpoint_from_pc): New function.
> 	(v850_gdbarch_init): Add ABI detection code.  Register
> 	v850e3v5_register_name for the v850e3v5 architecture.  Set the
> 	number of registers for v850e3v5.  Register
> 	v850_dbtrap_breakpoint_from_pc as appropriate.
> 	(_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.

I've checked this in.

Kevin


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]