Commit Graph

176 Commits

Author SHA1 Message Date
Joern Rennecke d4845d5762 bfd:
Reinstate bits of sh4 support that got accidentally deleted.
Add sh-dsp support.

bfd:

	* archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
	(bfd_mach_sh3_dsp): Likewise.
	(bfd_mach_sh4): Reinstate.
	(bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
	* bfd-in2.h: Regenerate.
	* coff-sh.c (struct sh_opcode): flags is no longer short.
	(USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
	(sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
	(sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
	(sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
	(sh_opcodes): No longer const.
	(sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
	(sh_insn_uses_reg): Check for USESAS and USESR8.
	(sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
	(_bfd_sh_align_load_span): Return early for SH4.
	Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
	Take into account that field b of a parallel processing insn
	could be mistaken for a separate insn.
	* cpu-sh.c (arch_info_struct): New array elements for
	sh2, sh-dsp and sh3-dsp.
	Reinstate element for sh4.
	(SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
	(SH4_NEXT): Reinstate.
	(SH3_NEXT, SH3E_NEXT): Adjust.
	* elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
	* elf32-sh.c (sh_elf_set_private_flags): New function.
	(sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
	(sh_elf_merge_private_data): New function.
	(elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
	(bfd_elf32_bfd_copy_private_bfd_data): Define.
	(bfd_elf32_bfd_merge_private_bfd_data): Change to
	sh_elf_merge_private_data.

gas:

	* config/tc-sh.c ("elf/sh.h"): Include.
	(sh_dsp, valid_arch, reg_x, reg_y, reg_efg): New static variables.
	(md.begin): Initialize target_arch.
	Only include opcodes in has table that match selected architecture.
	(parse_reg): Recognize register names for sh-dsp.
	(parse_at): Recognize post-modify addressing.
	(get_operands): The leading space is now optional.
	(get_specific): Remove FDREG_N support.  Add support for sh-dsp
	arguments.  Update valid_arch.
	(build_Mytes): Add support for SDT_REG_N.
	(find_cooked_opcode): New function, broken out of md_assemble.
	(assemble_ppi, sh_elf_final_processing): New functions.
	(md_assemble): Use find_cooked_opcode and assemble_ppi.
	(md_longopts, md_parse_option): New option: -dsp.
	* config/tc-sh.h (elf_tc_final_processing): Define.
	(sh_elf_final_processing): Declare.

include/elf:

	* sh.h: (EF_SH_MACH_MASK, EF_SH_UNKNOWN, EF_SH1, EF_SH2): New macros.
	(EF_SH3, EF_SH_HAS_DSP, EF_SH_DSP, EF_SH3_DSP): Likewise.
	(EF_SH_HAS_FP, EF_SH3E, EF_SH4, EF_SH_MERGE_MACH): Likewise.

opcodes:

	* sh-dis.c (print_movxy, print_insn_ddt, print_dsp_reg): New functions.
	(print_insn_ppi): Likewise.
	(print_insn_shx): Use info->mach to select appropriate insn set.
	Add support for sh-dsp.  Remove FD_REG_N support.
	* sh-opc.h (sh_nibble_type): Add new values for sh-dsp support.
	(sh_arg_type): Likewise.  Remove FD_REG_N.
	(sh_dsp_reg_nums): New enum.
	(arch_sh1, arch_sh2, arch_sh3, arch_sh3e, arch_sh4): New macros.
	(arch_sh_dsp, arch_sh3_dsp, arch_sh1_up, arch_sh2_up): Likewise.
	(arch_sh3_up, arch_sh3e_up, arch_sh4_up, arch_sh_dsp_up): Likewise.
	(arch_sh3_dsp_up): Likewise.
	(sh_opcode_info): New field: arch.
	(sh_table): Split up insn with FD_REG_N into ones with F_REG_N and
	D_REG_N.  Fill in arch field.  Add sh-dsp insns.
2000-02-17 00:33:36 +00:00
Nick Clifton a4f419971f Add prototypes for ARM register name functions. 2000-02-16 18:20:10 +00:00
Andrew Cagney 4bd6cdc521 wait.h was replaced by gdb/gdb_wait.h. 2000-02-10 04:37:34 +00:00
Andrew Cagney c1a8de50ed (sim_resume): Clarify use of SIGGNAL.
(sim_stop_reason): Clarify meaning of sim_signalled.
2000-02-09 07:44:03 +00:00
Jeff Law 08ccce3206 Reinstate the following lost patches:
Wed Dec 15 11:22:56 1999  Jeffrey A Law  (law@cygnus.com)

        * hp-symtab.h (HP_LANGUAGE_FORTRAN): New enumeration constant.
        (HP_LANGUAGE_F77): Define using HP_LANGUAGE_FORTRAN.

1999-11-04      Jimmy Guo       <guo@cup.hp.com>

        * hp-symtab.h (dntt_type_fparam): Add doc_ranges, misc_kind
        fields, change location type to CORE_ADDR from int.
        (dntt_type_const): Name the 5th field location_type.
2000-02-08 06:39:54 +00:00
Jason Molenda fd6848f679 2000-02-06 Jason Molenda (jsm@bugshack.cygnus.com)
* ChangeLog: Whitespace change to test logging.
	* bfd/ChangeLog, dejagnu/ChangeLog, include/ChangeLog, tcl/ChangeLog: Same.
2000-02-07 02:22:31 +00:00
Nick Clifton 789cba25dd Apply H>J's patch to propogate changes made by Thomas de Lellis to arm.h 2000-02-03 19:20:37 +00:00
Timothy Wall 940b2b788c octets vs bytes changes for binutils 2000-02-03 18:12:55 +00:00
Nick Clifton 0d42b144ba Add prototype for parse_arm_diassembler_option 2000-01-28 01:54:05 +00:00
Nick Clifton 58efb6c0fd Add ATPCS support to ARM disassembler.
Document ARM disassembler options.
2000-01-27 22:17:12 +00:00
Nick Clifton 94470b237b Add support for documenting target specific disassembler options 2000-01-27 21:44:26 +00:00
Nick Clifton 2f0ca46a49 Apply Thoams de Lellis's patch to fic disassembly of Thumb instructions when
bounded by non-function labels.
2000-01-27 20:05:32 +00:00
Nick Clifton 3442f30943 fix spelling of Motorola 2000-01-20 19:08:43 +00:00
Alan Modra add0c67765 Cosmetic changes to tc-i386.[ch] + extend x86 gas testsuite jmp and
call tests + tweak intel mode far call and jmp.
2000-01-15 12:06:03 +00:00
Nick Clifton 0752138902 fix comments on some EM numbers. 2000-01-13 20:13:13 +00:00
Nick Clifton 2d0e6f43d3 Fix mistakes made about interpretation of ELF ABI spec 2000-01-11 17:53:33 +00:00
Nick Clifton 879b0f76a9 Add definition of NT_WIN32PSTATUS 2000-01-10 18:51:33 +00:00
Nick Clifton cbaede9cbb add missing definitions 2000-01-05 23:42:56 +00:00
Nick Clifton 4fbca4530b Redefine STO_* value sin terms of STV_* values 1999-12-28 18:41:47 +00:00
Nick Clifton 0fc731e447 Add new constants specified in Oct 4 1999 Draft of ELF ABI spec 1999-12-28 18:40:48 +00:00
Alan Modra 3138f287b1 x86 indirect jump/call syntax fixes. Disassembly fix for lcall. 1999-12-27 16:10:31 +00:00
Ian Lance Taylor 7d7a673645 1999-12-15 Doug Evans <dje@transmeta.com>
* dis-asm.h: Enclose in extern "C" ifdef __cplusplus.
1999-12-16 01:23:39 +00:00
Nick Clifton c7d85a8d92 Fix include paths 1999-12-09 18:23:45 +00:00
Jim Blandy 6fe6a46127 *** empty log message *** 1999-12-07 23:56:53 +00:00
Jim Blandy e50c1b6cb2 * common.h (NT_PRXFPREG): New definition. 1999-12-07 23:51:14 +00:00
Jeff Law 0ed4f623e6 * mn10300.h (E_MN10300_MACH_AM33): Define. 1999-12-01 10:06:15 +00:00
Jeff Law ccecd07b7e * mn10300.h: Add new operand types. Add new instruction formats. 1999-12-01 10:05:24 +00:00
Jeff Law b37e19e99a * hppa.h (pa_opcodes): Correctly handle immediate for PA2.0 "bb"
instruction.
1999-11-25 03:28:22 +00:00
Gavin Romig-Koch 5fce5ddfd3 For include/opcode:
* mips.h (INSN_ISA5): New.

For opcodes:

	* mips-opc.c (I5): New.
	(abs.ps,add.ps,alnv.ps,c.COND.ps,cvt.s.pl,cvt.s.pu,cvt.ps.s
	madd.ps,movf.ps,movt.ps,mul.ps,net.ps,nmadd.ps,nmsub.ps,
	pll.ps,plu.ps,pul.ps,puu.ps,sub.ps,suxc1,luxc1): New.
1999-11-18 19:53:48 +00:00
Michael Meissner 26f59a9e6b Add sim-d10v.h 1999-11-11 12:57:11 +00:00
Gavin Romig-Koch 2bd7f1f332 For include/opcode:
* mips.h (OPCODE_IS_MEMBER): New.

For gas:

	* config/tc-mips.c (macro_build): Use OPCODE_IS_MEMBER.
	(mips_ip): Use OPCODE_IS_MEMBER.

For opcodes:

	* mips-dis.c (_print_insn_mips): Use OPCODE_IS_MEMBER.
1999-11-01 19:29:55 +00:00
Nick Clifton 4df2b5c55e Define SHORT_AR (fix for CR: 101340) 1999-10-29 09:49:04 +00:00
Michael Meissner 446a06c9b8 Add md expression support; Cleanup alpha warnings 1999-10-18 22:29:15 +00:00
Jeff Law cf911c2a82 * hppa.h (PF_HP_PAGE_SIZE): Define.
(PF_HP_FAR_SHARED, PF_HP_NEAR_SHARED, PF_HP_CODE): Likewise.
        (PF_HP_MODIFY, PF_HP_LAZYSWAP, PF_HP_SBP): Likewise.
1999-10-12 04:48:23 +00:00
Jeff Law eca04c6a4a * hppa.h (pa_opcodes): Add load and store cache control to
instructions.  Add ordered access load and store.

        * hppa.h (pa_opcode): Add new entries for addb and addib.

        * hppa.h (pa_opcodes): Fix cmpb and cmpib entries.

        * hppa.h (pa_opcodes):  Add entries for cmpb and cmpib.
1999-10-10 07:55:25 +00:00
Diego Novillo c43185deeb Added seven new instructions ld, ld2w, sac, sachi, slae, st and
st2w for d10v. Created new testsuite for d10v to verify new
instructions.
1999-10-07 06:17:04 +00:00
Doug Evans 44ce095e1d * m32r.h (E_M32RX_ARCH): Define. 1999-10-05 00:43:14 +00:00
Ulrich Drepper 3fce499807 1999-09-15 Ulrich Drepper <drepper@cygnus.com>
* hppa.h: Add DT_HP_GST_SIZE, DT_HP_GST_VERSION, and DT_HP_GST_HASHVAL.
1999-10-04 18:58:41 +00:00
Jeff Law 146e763ae3 Add missing initializer lost in last change. 1999-09-23 15:46:33 +00:00
Jeff Law 390f858d11 * hppa.h (pa_opcodes): Add "call" and "ret". Clean up "b", "bve"
and "be" using completer prefixes.
1999-09-23 14:29:10 +00:00
Jeff Law 8c47ebd96b * hppa.h (pa_opcodes): Add initializers to silence compiler. 1999-09-23 13:14:33 +00:00
Jeff Law ec3533da58 * hppa.h: Update comments about character usage. 1999-09-23 13:10:07 +00:00
Jeff Law 18369bea46 * hppa.h (pa_opcodes): Fix minor thinkos introduced while cleaning
up the new fstw & bve instructions.
1999-09-20 09:57:19 +00:00
Alan Modra 2664272934 Delete bogus R_PCLONG. Tidy R_*. 1999-09-20 08:45:53 +00:00
Jeff Law d3ffb03249 * hppa.h (pa_opcodes): Add remaining PA2.0 integer load/store
instructions.
1999-09-19 20:05:00 +00:00
Jeff Law c49ec3da04 * hppa.h (pa_opcodes): Add remaining PA2.0 FP load/store instructions. 1999-09-19 19:43:06 +00:00
Jeff Law 5d2e7eccb2 * hppa.h (pa_opcodes): Add long offset double word load/store
instructions.
1999-09-19 19:19:50 +00:00
Jeff Law 6397d1a2e8 * hppa.h (pa_opcodes): Add FLAG_STRICT variants of FP loads and
stores.
1999-09-19 18:54:23 +00:00
Jeff Law 142f0fe0fb * hppa.h (pa_opcodes): Handle PA2.0 fcnv, fcmp and ftest insns. 1999-09-19 18:44:13 +00:00
Jeff Law f5a68b4510 * hppa.h (pa_opcodes): Finish support for PA2.0 "b" instructions. 1999-09-19 18:10:28 +00:00
Jeff Law 8235801e55 * hppa.h (pa_opcodes): Handle PA2.0 "bve" instructions. 1999-09-19 17:39:17 +00:00
Jeff Law 35184366b0 * hppa.h (pa_opcodes): Add new syntax "be" instructions. 1999-09-19 17:16:08 +00:00
Jeff Law f0bfde5ebf * hppa.h (pa_opcodes): Note use of 'M' and 'L'. 1999-09-19 17:12:55 +00:00
Jeff Law 27bbbb582a * hppa.h (pa_opcodes): Add support for "b,l". 1999-09-19 16:55:09 +00:00
Jeff Law c36efdd208 * hppa.h (pa_opcodes): Add support for "b,gate". 1999-09-19 16:41:51 +00:00
Jeff Law 9392fb1136 * hppa.h (pa_opcodes): Use 'fX' for first register operand
in xmpyu.
1999-09-18 18:08:34 +00:00
Jeff Law e0c52e9997 * hppa.h (pa_opcodes): Fix mask for probe and probei. 1999-09-18 17:49:43 +00:00
Jeff Law f2727d047c * hppa.h (pa_opcodes): Fix mask for depwi. 1999-09-18 17:43:47 +00:00
Jeff Law 52d836e28f * hppa.h (pa_opcodes): Add "addil" variant which has the %r1 as
an explicit output argument.
1999-09-07 19:46:47 +00:00
Ian Lance Taylor 25bcc51d8f 1999-09-06 Donn Terry <donn@interix.com>
* internal.h (DTYPE): Define.
	* pe.h (struct external_PEI_filehdr): Rename from
	external_PE_filehdr.  Define even if COFF_IMAGE_WITH_PE is not
	defined.
1999-09-07 03:28:54 +00:00
Jeff Law 90765e3a9e * hppa.h: Add strict variants of PA1.0/PA1.1 loads and stores.
Add a few PA2.0 loads and store variants.
1999-09-06 10:42:11 +00:00
Ian Lance Taylor 5bb59d6527 1999-09-04 Steve Chamberlain <sac@pobox.com>
* dis-asm.h (print_insn_pj): Declare.
1999-09-04 17:17:37 +00:00
Ian Lance Taylor 8340b17f41 1999-09-04 Steve Chamberlain <sac@pobox.com>
* pj.h: New file.
1999-09-04 17:16:21 +00:00
Ian Lance Taylor c6a40e00bc 1999-09-04 Steve Chamberlain <sac@pobox.com>
* pj.h: New file.
	* common.h (EM_PJ): Define.
1999-09-04 17:15:44 +00:00
Jeff Law 97578bb047 * hppa.h: Add HPUX specific symbol type definitions. 1999-09-03 02:23:08 +00:00
Jeff Law 70fa6ef568 * hppa.h: Add HPUX specific dynamic and program header table
specific definitions.
1999-09-02 20:17:33 +00:00
Nick Clifton 893e10f9bb oops - omitted from previous delta 1999-08-31 16:57:03 +00:00
Nick Clifton 7e3c779ac6 Patch from Scott Bambrough <scottb@netwinder.org> to define NT_TASKSTRUCT. 1999-08-31 16:56:26 +00:00
Alan Modra 5f47d35be1 Allow spaces in i386 FP reg names, eg. %st ( 1 ). 1999-08-29 23:44:27 +00:00
Jeff Law 7d8fdb64f6 * hppa.h (pa_opcodes): Replace 'f' by 'v'. Prefix float register args
by 'f'.
1999-08-29 07:51:43 +00:00
Jeff Law 90927b9c0e * hppa.h (pa_opcodes): Add extrd, extrw, depd, depdi, depw, depwi.
Add supporting args.
1999-08-28 10:58:26 +00:00
Jeff Law 1d16bf9c3b * hppa.h: Document new completers and args.
* hppa.h (pa_opcodes):  Add 64 bit patterns and pa2.0 syntax for uxor,
        uaddcm, dcor, addi, add, sub, subi, shladd, rfi, and probe.  Add pa2.0
        extensions for ssm, rsm, pdtlb, pitlb.  Add performance instructions
        pmenb and pmdis.
1999-08-28 10:16:15 +00:00
Jeff Law 5e6ca42117 Fix minor bug in last change. 1999-08-28 09:28:31 +00:00
Jeff Law 96226a686f * hppa.h (pa_opcodes): Add pa2.0 instructions hadd, hshl,
hshr, hsub, mixh, mixw, permh.
1999-08-28 08:46:57 +00:00
Jeff Law 5d4ba527e1 * hppa.h (pa_opcodes): Change completers in instructions to
use 'c' prefix.
1999-08-28 08:16:55 +00:00
Jeff Law e9fc28c6b6 * hppa.h (pa_opcodes): Add popbts, new forms of bb, havg,
hshladd, hshradd, shrpd, and shrpw instructions.  Update arg comments.
1999-08-28 06:41:11 +00:00
Jeff Law 1c1432026f * hppa.h (pa_opcodes): Change fmpyfadd, fmpynfadd, fneg,
fnegabs to use 'I' instead of 'F'.
1999-08-28 06:27:12 +00:00
Alan Modra 9e525108fe Add AMD athlon support to x86 assembler and disassembler. 1999-08-21 12:40:39 +00:00
Doug Evans e8da1bf1bd * cgen.h (CGEN_INSN_MACH_HAS_P): New macro. 1999-08-19 05:45:30 +00:00
Jeff Law 5696871a98 * hppa.h (pa_opcodes): Add 64 bit versions of or, xor, and,
and andcm.  Add 32 and 64 bit version of cmpclr, cmpiclr.
1999-08-06 16:03:53 +00:00
Jeff Law 7d62725820 * hppa.h: Document 64 bit condition completers. 1999-08-06 15:49:29 +00:00
Jeff Law c5e5291642 * hppa.h (pa_opcodes): Change condition args to use '?' prefix. 1999-08-05 22:58:08 +00:00
Alan Modra eecb386cd7 Support for gcc to generate 16-bit i386 code. (.code16gcc) 1999-08-04 10:07:41 +00:00
Jeff Law 88a380f31e * hppa.h (pa_opcodes): Add "pushnom" and "pushbts".
* hppa.h (pa_opcodes): Mark all PA2.0 opcodes with FLAG_STRICT.
1999-07-28 10:31:15 +00:00
Jeff Law d60e8dcabe * hppa.h (pa_opcodes): Change xmpyu, fmpyfadd,
and fmpynfadd to use 'J' and 'K' instead of 'E' and 'X'.
1999-07-28 08:06:30 +00:00
Nick Clifton c2c594b87d Rename F_SOFTFLOAt to F_SOFT_FLOAT for compatability with include/elf/arm.h 1999-07-17 15:40:17 +00:00
Richard Henderson 97272b323d Jakub Jelinek <jj@ultra.linux.cz>
* sparc.h (EF_SPARC_SUN_US3): Define in Cheetah extensions
        flag (as per SCD2.4.1).
1999-07-16 21:36:38 +00:00
Richard Henderson 437d5cf011 Jakub Jelinek <jj@ultra.linux.cz>
* sparc.h (ELF64_R_TYPE_DATA): Only use ELF64_R_TYPE bits, not
        ELF64_R_SYM bits.
1999-07-16 21:26:39 +00:00
Nick Clifton ab02a59986 1999-06-21 Philip Blundell <pb@nexus.co.uk>
* arm.h (EF_SOFT_FLOAT, F_SOFT_FLOAT): Define.
1999-07-15 01:35:40 +00:00
Nick Clifton db688e87e2 1999-06-21 Philip Blundell <pb@nexus.co.uk>
* arm.h (F_SOFTFLOAT): Define.
1999-07-15 01:34:30 +00:00
Alan Modra b09389bd97 8
include/opcode/i386.h: Add "undocumented" AMD 3DNow! pf2iw, pi2fw, pswapw
1999-07-13 07:41:47 +00:00
Alan Modra 145cf1f06b o
include/opcode/i386.h: Add "undocumented" AMD 3DNow! pf2iw, pi2fw, pswapw
1999-07-13 07:41:46 +00:00
Andreas Schwab 4b3aff1a3b * m68k.h (EF_CPU32): Move definition inside multiple inclusion
guard.
1999-07-13 00:50:47 +00:00
Ian Lance Taylor edac9bffc1 * aout64.h (N_SHARED_LIB): Define as 0 if TEXT_START_ADDR is
defined as 0.
1999-07-12 11:12:37 +00:00
Ian Lance Taylor 893e959397 * ansidecl.h: Copy attribute support macros from egcs. 1999-07-11 19:15:01 +00:00
Richard Henderson feb90132a0 * sparc.h (ELF64_R_TYPE_DATA): Sign extend the value.
(ELF64_R_TYPE_INFO): Mask out all but low 24 bits of data.
        (DT_SPARC_PLTFMT): Delete.
1999-07-08 16:01:06 +00:00
Nick Clifton 849a0ebfb7 Define F_ARM_5 1999-07-05 07:29:04 +00:00
Jeff Law 7382664060 * hppa.h (struct pa_opcode): Add new field "flags".
(FLAGS_STRICT): Define.
1999-06-30 23:20:56 +00:00
Jeff Law f7fc668b8e * hppa.h (pa_opcodes): Add pa2.0 clrbts instruction. 1999-06-25 03:29:45 +00:00
Jeff Law b65db25218 * hppa.h (pa_opcodes): Add entries for mfia and mtsarcm instructions. 1999-06-25 03:23:12 +00:00