3 * Makefile.in (m68k-opc.o, alpha-opc.o): Remove dis-asm.h dependency.
5 (tic80-dis.o, tic80-opc.o): Add rules per comment in Makefile.in.
10 * mips16-opc.c: Add "abs".
15 * Makefile.in (ALL_MACHINES): Add tic80-dis.o and tic80-opc.o.
16 * disassemble.c (ARCH_tic80): Define if ARCH_all is defined.
17 (disassembler): Add bfd_arch_tic80 support to set disassemble
19 * tic80-dis.c (print_insn_tic80): Add stub.
23 * configure.in (arch in $selarchs): Add bfd_tic80_arch entry.
24 * configure: Regenerate with autoconf.
25 * tic80-dis.c: Add file.
26 * tic80-opc.c: Add file.
32 * d10v-opc.c (pre_defined_registers): Add cr[0-15], dpc, dpsw, link.
37 * mn10200-opc.c (mn10200_operands): Add SIMM16N.
38 (mn10200_opcodes): Use it for some logicals and btst insns.
39 Add "break" and "trap" instructions.
41 * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
43 * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
47 * mips-dis.c (print_mips16_insn_arg): The base address of a PC
48 relative load or add now depends upon whether the instruction is
53 * mn10200-dis.c: Finish writing disassembler.
54 * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
55 Fix mask for "jmp (an)".
57 * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
58 handle endianness issues for mn10300.
60 * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
64 * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
65 instruction. Fix opcode field for "movb (imm24),dn".
67 * mn10200-opc.c (mn10200_operands): Fix insertion position
72 * mn10200-opc.c: Create mn10200 opcode table.
73 * mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
74 but moving along nicely.
78 * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
82 * m68k-opc.c (m68k_opcodes): Revert change to use < and >
83 specifiers for fmovem* instructions.
87 * mn10300-dis.c (disassemble): Remove '$' register prefixing.
91 * mips16-opc.c: Change opcode for entry/exit to avoid conflicting
96 * mn10300-opc.c: Add some comments explaining the various
99 * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
103 * m68k-dis.c (print_insn_arg): Handle new < and > operand
106 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
107 operand specifiers in fmovm* instructions.
111 * ppc-opc.c (insert_li): Give an error if the offset has the two
112 least significant bits set.
116 * mips-dis.c (print_insn_mips16): Separate the instruction from
117 the arguments with a tab, not a space.
121 * mn10300-dis.c (disasemble): Finish conversion to '$' as
124 * mn10300-opc.c (mn10300_opcodes): Fix mask field for
129 * configure: Rebuild with autoconf 2.12.
131 Add support for mips16 (16 bit MIPS implementation):
132 * mips16-opc.c: New file.
133 * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h".
134 (mips16_reg_names): New static array.
135 (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or
136 after seeing a 16 bit symbol.
137 (print_insn_little_mips): Likewise.
138 (print_insn_mips16): New static function.
139 (print_mips16_insn_arg): New static function.
140 * mips-opc.c: Add jalx instruction.
141 * Makefile.in (mips16-opc.o): New target.
142 * configure.in: Use mips16-opc.o for bfd_mips_arch.
143 * configure: Rebuild.
147 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
148 operand specifiers in *save, *restore and movem* instructions.
150 * m68k-opc.c (m68k_opcodes): Fix move and movem instructions for
153 * m68k-opc.c (m68k_opcodes): The coldfire (mcf5200) can only use
154 register operands for immediate arithmetic, not, neg, negx, and
155 set according to condition instructions.
157 * m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storage
158 specifier of the effective-address operand in immediate forms of
159 arithmetic instructions. The specifier for the immediate operand
160 notes how and where the constant will be stored.
164 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"
167 * mn10300-dis.c (disassemble): Use '$' instead of '%' for
170 * mn10300-dis.c (disassemble): Prefix registers with '%'.
174 * mn10300-dis.c (disassemble): Handle register lists.
176 * mn10300-opc.c: Fix handling of register list operand for
177 "call", "ret", and "rets" instructions.
179 * mn10300-dis.c (disassemble): Print PC-relative and memory
180 addresses symbolically if possible.
181 * mn10300-opc.c: Distinguish between absolute memory addresses,
182 pc-relative offsets & random immediates.
184 * mn10300-dis.c (print_insn_mn10300): Fix fetch of last byte
186 (disassemble): Handle SPLIT and EXTENDED operands.
190 * mn10300-dis.c: Rough cut at printing some operands.
192 * mn10300-dis.c: Start working on disassembler support.
193 * mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
195 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
197 (mn10300_opcodes): Use REGS for register list in "movm" instructions.
202 * d10v-opc.c (d10v_opcodes): Add3 sets the carry.
207 * mn10300-opc.c (mn10300_opcodes): Demand parens around
208 register argument is calls and jmp instructions.
212 * mn10300-opc.c (mn10300_opcodes): Use DN01 for putx and
213 getx operand. Fix opcode for mulqu imm,dn.
217 * mn10300-opc.c (mn10300_operands): Hijack "bits" field
218 in MN10300_OPERAND_SPLIT operands for how many bits
219 appear in the basic insn word. Add IMM32_HIGH24,
220 IMM32_HIGH24_LOWSHIFT8, IMM8E_SHIFT8.
221 (mn10300_opcodes): Use new operands as needed.
223 * mn10300-opc.c (mn10300_operands): Add IMM32_LOWSHIFT8
224 for bset, bclr, btst instructions.
225 (mn10300_opcodes): Use new IMM32_LOWSHIFT8 as needed.
227 * mn10300-opc.c (mn10300_operands): Remove many redundant
228 operands. Update opcode table as appropriate.
229 (IMM32): Add MN10300_OPERAND_SPLIT flag.
230 (mn10300_opcodes): Fix single bit error in mov imm32,dn insn.
234 * mn10300-opc.c (mn10300_operands): Add DN2, DM2, AN2, AM2
235 operands (for indexed load/stores). Fix bitpos for DI
236 operand. Add SN8N_SHIFT8, IMM8_SHIFT8, and D16_SHIFT for the
237 few instructions that insert immediates/displacements in the
238 middle of the instruction. Add IMM8E for 8 bit immediate in
239 the extended part of an instruction.
240 (mn10300_operands): Use new opcodes as appropriate.
245 * d10v-opc.c (d10v_opcodes): Declare the trap instruction
246 sequential so the assembler never parallelizes it with
252 * mn10300-opc.c (mn10300_operands): Add DN01 and AN01 for
253 a data/address register that appears in register field 0
254 and register field 1.
255 (mn10300_opcodes): Use DN01 and AN01 for mov/cmp imm8,DN/AN
259 * alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
260 standard disassembly.
262 * alpha-opc.c (alpha_operands): Rearrange flags slot.
263 (alpha_opcodes): Add new BWX, CIX, and MAX instructions.
264 Recategorize PALcode instructions.
269 * v850-opc.c (v850_opcodes): Add relaxing "jbr".
274 * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
275 there are no operand types.
280 * v850-opc.c (D9_RELAX): Renamed from D9, all references
282 (v850_operands): Make sure D22 immediately follows D9_RELAX.
287 * i386-dis.c (print_insn_x86): Set info->bytes_per_line to 5.
292 * v850-opc.c (insert_d8_6): Fix operand insertion for sld.w
293 and sst.w instructions.
295 * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
301 * mips-dis.c (_print_insn_mips): Use a tab between the instruction
306 * ppc-opc.c (PPCPWR2): Define.
307 (powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
312 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode
313 field for movhu instruction.
316 * v850-dis.c (disassemble): For V850_OPERAND_SIGNED operands,
317 cast value to "long" not "signed long" to keep hpux10
323 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode field
326 * mn10300-opc.c (FMT*): Remove definitions.
328 * mn10300-opc.c (mn10300_opcodes): Fix destination register
329 for shift-by-register opcodes.
331 * mn10300-opc.c (mn10300_operands): Break DN, DM, AN, AM
332 into [AD][MN][01] for encoding the position of the register
337 * mn10300-opc.c (mn10300_opcodes): Add "extended" instructions,
338 "putx", "getx", "mulq", "mulqu", "sat16", "sat24", "bsch".
342 * mn10300-opc.c (mn10300_operands): Remove "REGS" operand.
343 Fix various typos. Add "PAREN" operand.
345 (mn10300_opcodes): Surround all memory addresses with "PAREN"
346 operands. Fix several typos.
348 * mn10300-opc.c (mn10300_opcodes): Fix typos in yesterday's
353 * mn10300-opc.c (FMT_XX): Renumber starting at one.
354 (mn10300_operands): Rough cut. Enough to parse "mov" instructions
356 (mn10300_opcodes): Break opcode format out into its own field.
357 Update many operand fields to deal with signed vs unsigned
358 issues. Fix one or two typos in the "mov" instruction
359 opcode, mask and/or operand fields.
363 * m68k-opc.c (plusha): Prefer encoding for m68040up, in case
368 * mn10300-opc.c (mn10300_opcodes): Add opcode & masks for
369 all opcodes. Very rough cut at operands for all opcodes.
371 * mn10300-opc.c (mn10300_opcodes): Start fleshing out the
376 * mn10200-opc.c, mn10300-opc.c: New files.
377 * mn10200-dis.c, mn10300-dis.c: New files.
378 * mn10x00-opc.c, mn10x00-dis.c: Deleted.
379 * disassemble.c: Break mn10x00 support into 10200 and 10300
381 * configure.in: Likewise.
382 * configure: Rebuilt.
386 * Makefile.in (MOSTLYCLEAN): Move config.log to distclean.
390 * mn10x00-opc.c, mn10x00-dis.c: New files for Matsushita
392 * disassemble (ARCH_mn10x00): Define.
393 (disassembler): Handle bfd_arch_mn10x00.
394 * configure.in: Recognize bfd_mn10x00_arch.
395 * configure: Rebuilt.
399 * i386-dis.c (op_rtn): Change to be a pointer. Adjust uses
400 accordingly. Don't declare functions using op_rtn.
405 * v850-dis.c (disassemble): Add memaddr argument. Re-arrange
406 params to be more standard.
407 * (disassemble): Print absolute addresses and symbolic names for
408 branch and jump targets.
409 * v850-opc.c (v850_operand): Add displacement flag to 9 and 22
411 * (v850_opcodes): Add breakpoint insn.
416 * m68k-opc.c: Move the fmovemx data register cases before the
417 other cases, so that they get recognized before the data register
418 does gets treated as a degenerate register list.
422 * mips-opc.c: Add a case for "div" and "divu" with two registers
423 and a destination of $0.
427 * mips-dis.c (print_insn_arg): Add prototype.
428 (_print_insn_mips): Ditto.
432 * mips-dis.c (print_insn_arg): Print condition code registers as
437 * sparc-opc.c (sparc_opcodes): Add setuw, setsw, setx.
442 * v850-dis.c (disassemble): Make static. Provide prototype.
446 * v850-opc.c (insert_d9, insert_d22): Fix boundary case
451 * v850-dis.c (disassemble): Handle insertion of ',', '[' and
452 ']' characters into the output stream.
453 * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
454 Add "memop" field to all opcodes (for the disassembler).
455 Reorder opcodes so that "nop" comes before "mov" and "jr"
458 * v850-dis.c (print_insn_v850): Fix typo in last change.
460 * v850-dis.c (print_insn_v850): Properly handle disassembling
461 a two byte insn at the end of a memory region when the memory
462 region's size is only two byte aligned.
464 * v850-dis.c (v850_cc_names): Fix stupid thinkos.
466 * v850-dis.c (v850_reg_names): Define.
467 (v850_sreg_names, v850_cc_names): Likewise.
468 (disassemble): Very rough cut at printing operands (unformatted).
470 * v850-opc.c (BOP_MASK): Fix.
471 (v850_opcodes): Fix mask for jarl and jr.
473 * v850-dis.c: New file. Skeleton for disassembler support.
474 * Makefile.in Remove v850 references, they're not needed here
475 and they weren't being sanitized away.
476 * configure.in: Add v850-dis.o when building v850 toolchains.
477 * configure: Rebuilt.
478 * disassemble.c (disassembler): Call v850 disassembler.
480 * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
481 (insert_d8_6, extract_d8_6): New functions.
482 (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
483 Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
485 (IF4A, IF4B): Use "D7" instead of "D7S".
486 (IF4C, IF4D): Use "D8_7" instead of "D8".
487 (IF4E, IF4F): New. Use "D8_6".
488 (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b. Use IF4C/IF4D for
489 sld.h/sst.h. Use IF4E/IF4F for sld.w/sst.w.
491 * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
492 (v850_operands): Change D16 to D16_15, use special insert/extract
493 routines. New new D16 that uses the generic insert/extract code.
494 (IF7A, IF7B): Use D16_15.
495 (IF7C, IF7D): New. Use D16.
496 (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.
498 * v850-opc.c (insert_d9, insert_d22): Slightly improve error
499 message. Issue an error if the branch offset is odd.
501 * v850-opc.c: Add notes about needing special insert/extract
502 for all the load/store insns, except "ld.b" and "st.b".
504 * v850-opc.c (insert_d22, extract_d22): New functions.
505 (v850_operands): Use insert_d22 and extract_d22 for
507 (insert_d9): Fix range check.
511 * v850-opc.c (v850_operands): Add V850_OPERAND_SIGNED flag
512 and set bits field to D9 and D22 operands.
516 * v850-opc.c (v850_operands): Define SR2 operand.
517 (v850_opcodes): "ldsr" uses R1,SR2.
519 * v850-opc.c (v850_opcodes): Fix opcode specs for
520 sld.w, sst.b, sst.h, sst.w, and nop.
524 * v850-opc.c (v850_opcodes): Add null opcode to mark the
525 end of the opcode table.
531 * d10v-opc.c (pre_defined_registers): Added register pairs,
532 "r0-r1", "r2-r3", etc.
538 * v850-opc.c (v850_operands): Make I16 be a signed operand.
539 Create I16U for an unsigned 16bit mmediate operand.
540 (v850_opcodes): Use I16U for "ori", "andi" and "xori".
542 * v850-opc.c (v850_operands): Define EP operand.
543 (IF4A, IF4B, IF4C, IF4D): Use EP.
545 * v850-opc.c (v850_opcodes): Fix opcode numbers for "mov"
546 with immediate operand, "movhi". Tweak "ldsr".
548 * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
549 correct. Get sld.[bhw] and sst.[bhw] closer.
551 * v850-opc.c (v850_operands): "not" is a two byte insn
553 * v850-opc.c (v850_opcodes): Correct bit pattern for setf.
555 * v850-opc.c (v850_operands): D16 inserts at offset 16!
557 * v850-opc.c (two): Get order of words correct.
559 * v850-opc.c (v850_operands): I16 inserts at offset 16!
561 * v850-opc.c (v850_operands): Add "SR1" and "SR2" for system
562 register source and destination operands.
563 (v850_opcodes): Use SR1 and SR2 for "ldsr" and "stsr".
565 * v850-opc.c (v850_opcodes): Fix thinko in "jmp" opcode. Fix
566 same thinko in "trap" opcode.
568 * v850-opc.c (v850_opcodes): Add initializer for size field
571 * v850-opc.c (v850_operands): D6 -> DS7. References changed.
572 Add D8 for 8-bit unsigned field in short load/store insns.
573 (IF4A, IF4D): These both need two registers.
574 (IF4C, IF4D): Define. Use 8-bit unsigned field.
575 (v850_opcodes): For "sld.h", "sld.w", "sst.h", "sst.w", use
576 IF4C & IF4D. For "trap" use I5U, not I5. Add IF1 operand
577 for "ldsr" and "stsr".
578 * v850-opc.c (v850_operands): 3-bit immediate for bit insns
581 * v850-opc.c (v850_opcodes): Correct short store half (sst.h) and
582 short store word (sst.w).
586 * v850-opc.c (v850_operands): Added insert and extract fields,
587 pointers to functions that handle unusual operand encodings.
591 * v850-opc.c (v850_opcodes): Enable "trap".
593 * v850-opc.c (v850_opcodes): Fix order of displacement
594 and register for "set1", "clr1", "not1", and "tst1".
598 * v850-opc.c (v850_operands): Add "B3" support.
599 (v850_opcodes): Fix and enable "set1", "clr1", "not1"
602 * v850-opc.c (v850_opcodes): "jmp" has only an R1 operand.
604 * v850-opc.c: Close unterminated comment.
608 * v850-opc.c (v850_operands): Add flags field.
609 (v850_opcodes): add move opcodes.
613 * Makefile.in (ALL_MACHINES): Add v850-opc.o.
614 * configure: (bfd_v850v_arch) Add new case.
615 * configure.in: (bfd_v850_arch) Add new case.
616 * v850-opc.c: New file.
621 * sparc-dis.c (print_insn_sparc): Handle little endian sparcs.
626 * d10v-opc.c: Add additional information to the opcode
627 table to help determinine which instructions can be done
633 * mpw-make.sed: Update editing of include pathnames to be
638 * arm-opc.h: Added "bx" instruction definition.
642 * alpha-opc.c (EV4EXTHWINDEX): Field width should be 8 not 5.
647 * d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.
651 * d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.
656 * makefile.vms: Update for alpha-opc changes.
660 * i386-dis.c (print_insn_i386): Actually return the correct value.
661 (ONE, OP_ONE): #ifdef out; not used.
666 * d10v-opc.c (d10v_opcodes): Added 2 accumulator sub instructions.
667 Changed subi operand type to treat 0 as 16.
672 * m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
677 * arm-opc.h: (arm_opcodes): Added halfword and sign-extension
678 memory transfer instructions. Add new format string entries %h and %s.
679 * arm-dis.c: (print_insn_arm): Provide decoding of the new
685 * d10v-opc.c (d10v_operands): Added UNUM4S; a 4-bit accumulator shift.
686 (d10v_opcodes): Modified accumulator shift instructions to use UNUM4S.
691 * alpha-dis.c (print_insn_alpha_osf): Remove.
692 (print_insn_alpha_vms): Remove.
693 (print_insn_alpha): Make globally visible. Chose the register
694 names based on info->flavour.
695 * disassemble.c: Always return print_insn_alpha for the alpha.
700 * d10v-dis.c (dis_long): Handle unknown opcodes.
704 * d10v-opc.c: Changes to support signed and unsigned numbers.
705 All instructions with the same name that have long and short forms
706 now end in ".l" or ".s". Divs added.
707 * d10v-dis.c: Changes to support signed and unsigned numbers.
711 * d10v-dis.c: Change all functions to use info->print_address_func.
716 * m68k-opc.c (m68k_opcodes): Make opcode masks for the ColdFire
717 move ccr/sr insns more strict so that the disassembler only
718 selects them when the addressing mode is data register.
722 * d10v-opc.c (pre_defined_registers): Declare.
723 * d10v-dis.c (print_operand): Now uses pre_defined_registers
724 to pick a better name for the registers.
729 * sparc-opc.c: Fix opcode values for fpack16, and fpackfix. Fix
730 operands for fexpand and fpmerge. From Christian Kuehnke
735 * alpha-dis.c (print_insn_alpha): No longer the user-visible
736 print routine. Take new regnames and cpumask arguments.
737 Kill the environment variable nonsense.
738 (print_insn_alpha_osf): New function. Do OSF/1 style regnames.
739 (print_insn_alpha_vms): New function. Do VMS style regnames.
740 * disassemble.c (disassembler): Test bfd flavour to pick
741 between OSF and VMS routines. Default to OSF.
745 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
746 * configure: Rebuild.
747 * Makefile.in (install): Use @INSTALL_SHLIB@.
752 * configure: (bfd_d10v_arch) Add new case.
753 * configure.in: (bfd_d10v_arch) Add new case.
754 * d10v-dis.c: New file.
755 * d10v-opc.c: New file.
756 * disassemble.c (disassembler) Add entry for d10v.
761 * m68k-opc.c (m68k_opcodes): Fix bugs in coldfire insns relating
762 to bcc, trapfl, subxl, and wddata discovered by Andreas Schwab.
766 * i386-dis.c: Get rid of print_insn_i8086. Use info.mach to
767 distinguish between variants of the instruction set.
768 * sparc-dis.c: Get rid of print_insn_sparclite. Use info.mach to
769 distinguish between variants of the instruction set.
773 * i386-dis.c (print_insn_i8086): New routine to disassemble using
774 the 8086 instruction set.
775 * i386-dis.c: General cleanups. Make most things static. Add
776 prototypes. Get rid of static variables aflags and dflags. Pass
777 them as args (to almost everything).
781 * h8300-dis.c (bfd_h8_disassemble): Handle macregs in ldmac insns.
783 * h8300-dis.c (bfd_h8_disassemble): Handle "ldm.l" and "stm.l".
785 * h8300-dis.c (bfd_h8_disassemble): "abs" is implicitly two
786 if the next arg is marked with SRC_IN_DST. Gross.
788 * h8300-dis.c (bfd_h8_disassemble): Print "exr" when
789 we're looking for and find EXR.
791 * h8300-dis.c (bfd_h8_disassemble): We don't have a match
792 if we're looking for KBIT and we don't find it.
794 * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
797 * h8300-dis.c (bfd_h8_disassemble): Don't set plen for
798 3bit immediate operands.
802 * Released binutils 2.7.
804 * alpha-opc.c: Add new case of "mov". From Klaus Kaempf
809 * alpha-opc.c: Correct second case of "mov" to use OPRL.
813 * sparc-dis.c (print_insn_sparclite): New routine to print
814 sparclite instructions.
818 * m68k-opc.c (m68k_opcodes): Add coldfire support.
822 * sparc-opc.c (asi_table): Add #ASI_N, #ASI_N_L, #ASI_NUCLEUS,
823 #ASI_NUCLEUS_LITTLE. Rename #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_L
824 to #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
828 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
829 Use autoconf-set values.
830 (docdir, oldincludedir): Removed.
831 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
835 * alpha-opc.c: New file.
836 * alpha-opc.h: Remove.
837 * alpha-dis.c: Complete rewrite to use new opcode table.
838 * configure.in: For bfd_alpha_arch, use alpha-opc.o.
839 * configure: Rebuild with autoconf 2.10.
840 * Makefile.in (ALL_MACHINES): Add alpha-opc.o.
841 (alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
843 (alpha-opc.o): New target.
847 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
848 Set imm_added_to_rs1 even if the source and destination register
851 * sparc-opc.c: Add some two operand forms of the wr instruction.
855 * h8300-dis.c (bfd_h8_disassemble): Rename "hmode" argument
858 * disassemble.c (disassembler): Handle H8/S.
859 * h8300-dis.c (print_insn_h8300s): New function for H8/S.
863 * sparc-opc.c: Add beq/teq as aliases for be/te.
865 * ppc-opc.c: Fix fcmpo opcode. From Sergei Steshenko
870 * makefile.vms: New file.
872 * alpha-dis.c (print_insn_alpha): Print lda ra,lit(rz) as mov.
876 * h8300-dis.c (bfd_h8_disassemble): Always print ABS8MEM with :8,
881 * i386-dis.c (OP_OFF): Call append_prefix.
885 * ppc-opc.c (instruction encoding macros): Add explicit casts to
886 unsigned long to silence a warning from the Solaris PowerPC
891 * sparc-opc.c (sparc_opcodes): Add ultrasparc vis extensions.
895 * sparc-dis.c (X_IMM,X_SIMM): New macros.
897 (print_insn_sparc): Merge cases i,I,j together. New cases X,Y.
898 * sparc-opc.c (sparc_opcodes): Use X for 5 bit shift constants,
899 Y for 6 bit shift constants. Rewrite entries for crdcxt, cwrcxt,
900 cpush, cpusha, cpull sparclet insns.
904 * sparc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
908 * sparc-opc.c: Set F_FBR on floating point branch instructions.
909 Set F_FLOAT on other floating point instructions.
913 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
915 (powerpc_opcodes): Add 860/821 specific SPRs.
919 * configure.in: Permit --enable-shared to specify a list of
920 directories. Set and substitute BFD_PICLIST.
921 * configure: Rebuild.
922 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
923 uses. Set to @BFD_PICLIST@.
927 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
928 not "abs", which may be needed for the absolute in something
929 like btst #0,@10:8. Print L_3 immediates separately from other
930 immediates. Change ABSMOV reference to ABS8MEM.
934 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
935 (current_arch_mask): New static global.
936 (compute_arch_mask): New static function.
937 (print_insn_sparc): Delete sparc_v9_p. New static local
938 current_mach. Resort opcode table if current_mach changes.
939 Generalize "insn not supported" test.
940 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
941 Delete test for v9/!v9.
942 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
944 (brfc): Split into CBR and FBR for coprocessor/fp branches.
945 (brfcx): Renamed to FBRX.
946 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
947 coprocessor mnemonics are not supported on the sparclet).
948 (condf): Renamed to CONDF.
949 (SLCBCC2): Delete F_ALIAS flag.
953 * sparc-opc.c (sparc_opcodes): rd must be 0 for
954 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
958 * Makefile.in (config.status): Depend upon BFD VERSION file, so
959 that the shared library version number is set correctly.
963 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
965 * configure: Rebuild.
969 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
974 * configure: Rebuild with autoconf 2.8.
978 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
979 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
983 * configure.in: Don't set SHLIB or SHLINK to an empty string,
984 since they appear as targets in Makefile.in.
985 * configure: Rebuild.
989 * mpw-make.sed: Edit out shared library support bits.
993 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
994 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
995 (sparc_opcodes): Add sparclet insns.
996 (sparclet_cpreg_table): New static local.
997 (sparc_{encode,decode}_sparclet_cpreg): New functions.
998 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
1002 * i386-dis.c (index16): New static variable.
1003 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
1005 (OP_indirE): Return result of OP_E.
1006 (OP_E): Check for 16 bit addressing mode, and disassemble
1007 correctly. Optimised 32 bit case a little. Don't print
1008 "(base,index,scale)" when sib specifies only an offset.
1012 * configure.in: Set and substitute SHLIB_DEP.
1013 * configure: Rebuild.
1014 * Makefile.in (SHLIB_DEP): New variable.
1015 (LIBIBERTY_LISTS, BFD_LIST): New variables.
1016 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
1017 COMMON_SHLIB, add them to piclist with appropriate modifications.
1018 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
1019 here: just use piclist.
1023 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
1024 (print_insn_sparc): Rewrite v9/not-v9 tests.
1025 (compare_opcodes): Likewise.
1026 * sparc-opc.c (MASK_<ARCH>): Define.
1027 (v6,v7,v8,sparclite,v9,v9a): Redefine.
1028 (sparclet,v6notv9): Define.
1029 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
1030 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
1034 * configure.in: Call AC_PROG_CC before configure.host.
1035 * configure: Rebuild.
1037 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
1041 * i386-dis.c (onebyte_has_modrm): New static array.
1042 (twobyte_has_modrm): New static array.
1043 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
1047 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
1052 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
1057 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
1058 m68010up, not just m68020up | cpu32.
1060 * Makefile.in (SONAME): New variable.
1061 ($(SHLINK)): Make a link to the transformed name, as well.
1062 (stamp-tshlink): New target.
1063 (install): Skip stamp-tshlink during install.
1067 * configure.in: Call AC_ARG_PROGRAM.
1068 * configure: Rebuild.
1069 * Makefile.in (program_transform_name): New variable.
1070 (install): Transform library name before installing it.
1074 * i960-dis.c (mem): Add HX dcinva instruction.
1076 Support for building as a shared library, based on patches from
1078 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
1079 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
1080 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
1081 * configure: Rebuild.
1082 * Makefile.in (ALLLIBS): New variable.
1083 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
1084 (COMMON_SHLIB, SHLINK): New variables.
1085 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
1086 (STAGESTUFF): Remove variable.
1087 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
1088 (stamp-piclist, piclist): New targets.
1089 ($(SHLIB), $(SHLINK)): New targets.
1090 ($(OFILES)): Depend upon stamp-picdir.
1091 (disassemble.o): Build twice if PICFLAG is set.
1092 (MOSTLYCLEAN): Add pic/*.o.
1093 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
1094 (distclean): Remove pic and stamp-picdir.
1095 (install): Install shared libraries.
1096 (stamp-picdir): New target.
1100 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
1101 Print unknown instruction as "unknown", rather than in hex.
1105 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
1109 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
1113 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
1114 when necessary. From Ulrich Drepper
1119 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
1120 sparc_num_opcodes. Update architecture enum values.
1121 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
1122 (sparc_opcode_lookup_arch): New function.
1123 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
1124 (sparc_opcodes): Add v9a shutdown insn.
1128 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
1129 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
1131 (print_insn_sparc64): Deleted.
1132 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
1135 * sparc-opc.c (architecture_pname): Add v9a.
1139 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
1140 incorrectly defined as 0x16 when it should be 0x15.
1141 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
1142 (alpha_insn_set): added cvtst and cvttq float ops. Also added
1143 excb (exception barrier) which is defined in the Alpha
1144 Architecture Handbook version 2.
1145 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
1146 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
1147 disassembled as or, for example.
1151 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
1152 (_print_insn_mips): Change i from int to unsigned int.
1156 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
1157 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
1161 * i386-dis.c: Added Pentium Pro instructions.
1165 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
1170 * sh-opc.h (sh_nibble_type): Added REG_B.
1171 (sh_arg_type): Added A_REG_B.
1172 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
1174 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
1178 * disassemble.c (disassembler): Use new bfd_big_endian macro.
1182 * Makefile.in (distclean): Remove stamp-h. From Ronald
1188 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
1193 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
1194 (sh_table): Added many SH3 opcodes.
1195 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
1199 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
1200 (subco,subco.): Mark this PPC, not PPCCOM.
1204 * configure: Rebuild with autoconf 2.7.
1208 * configure: Rebuild with autoconf 2.6.
1212 * configure.in: Sort list of architectures. Accept but do nothing
1213 for alliant, convex, pyramid, romp, and tahoe.
1217 * a29k-dis.c (print_special): Change num to unsigned int.
1221 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
1226 * configure.in: Call AC_CHECK_PROG to find and cache AR.
1227 * configure: Rebuilt.
1231 * configure.in: Add case for bfd_i860_arch.
1232 * configure: Rebuild.
1236 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
1237 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
1238 (NEXTDOUBLE): Likewise.
1239 (print_insn_m68k): Don't match fmoveml if there is more than one
1240 register in the list.
1241 (print_insn_arg): Handle a place of '8' for a type of 'L'.
1245 * m68k-opc.c: Use #W rather than #w.
1246 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
1250 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
1251 and likewise for all the dbxx opcodes.
1255 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
1259 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
1260 the VR4100 specific instructions to the mips_opcodes structure.
1264 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
1265 ugly Metrowerks bug in CW6, is fixed in CW7.
1269 * ppc-opc.c (whole file): Add flags for common/any support.
1273 * Makefile.in (BISON): Remove macro.
1274 (FLAGS_TO_PASS): Remove BISON.
1280 * m68k-dis.c (print_insn_m68k): Recognize all two-word
1281 instructions that take no args by looking at the match mask.
1282 (print_insn_arg): Always print "%" before register names.
1283 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
1284 [case '_']: Don't print "@#" before address.
1285 [case 'J']: Use "%s" as format string, not register name.
1286 [case 'B']: Treat place == 'C' like 'l' and 'L'.
1290 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
1297 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
1298 (alpha_insn_set): added definitions for VAX floating point
1299 instructions (Unix compilers don't generate these, but handcoded
1300 assembly might still use them).
1302 * alpha-dis.c (print_insn_alpha): added support for disassembling
1303 the miscellaneous instructions in the Alpha instruction set.
1307 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
1308 no longer create sysdep.h, sed ppc-opc.c to work around a
1309 serious Metrowerks C bug.
1310 * mpw-make.in: Remove.
1311 * mpw-make.sed: New file, used by mpw-configure to edit
1312 Makefile.in into an MPW makefile.
1316 * Makefile.in (maintainer-clean): New synonym for realclean.
1320 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
1321 which use '0', '1', and '2' instead. Specify the proper size for
1322 a pmove immediate operand. Correct the pmovefd patterns to be
1323 moves to a register, not from a register.
1324 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
1328 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
1329 %psr, %wim, %tbr as F_NOTV9.
1333 * Makefile.in (Makefile): Just rebuild Makefile when running
1335 (config.h, stamp-h): New targets.
1336 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
1337 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
1338 rebuilding config.h.
1339 * configure: Rebuild.
1341 * mips-opc.c: Change unaligned loads and stores with "t,A"
1342 operands to use "t,A(b)".
1346 * sh-dis.c (print_insn_shx): Add F_FR0 support.
1350 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
1351 until 3 instead of until 2.
1355 * Makefile.in (ALL_CFLAGS): Define.
1356 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
1357 (MOSTLYCLEAN): Add config.log.
1358 (distclean): Don't remove config.log.
1359 * configure.in: Substitute HDEFINES.
1360 * configure: Rebuild.
1364 * sh-opc.h (sh_arg_type): Add F_FR0.
1365 (sh_table, case fmac): Add F_FR0 as first argument.
1369 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
1373 * sparc-dis.c: Remove all references to NO_V9.
1377 * aclocal.m4: Just include ../bfd/aclocal.m4.
1378 * configure: Rebuild.
1382 * sparc-dis.c (X_DISP19): Define.
1383 (print_insn, case 'G'): Use it.
1384 (print_insn, case 'L'): Sign extend displacement.
1388 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
1389 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
1390 host_makefile_frag or frags.
1391 * aclocal.m4: New file.
1392 * configure: Rebuild.
1393 * Makefile.in (INSTALL): Set to @INSTALL@.
1394 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
1395 (INSTALL_DATA): Set to @INSTALL_DATA@.
1397 (AR_FLAGS): Set to rc rather than qc.
1398 (CC): Define as @CC@.
1399 (CFLAGS): Set to @CFLAGS@.
1400 (@host_makefile_frag@): Remove.
1401 (config.status): Remove dependency upon @frags@.
1403 * configure.in: ../bfd/config.bfd now just sets shell variables.
1404 Use them rather than looking through target Makefile fragments.
1405 * configure: Rebuild.
1409 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
1413 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
1414 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
1417 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
1418 (lookup_{name,value}): New functions.
1419 (prefetch_table): New static local.
1420 (sparc_{encode,decode}_prefetch): New functions.
1421 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
1425 * sh-opc.h: Add blank lines to improve readabililty of sh3e
1430 * sh-dis.c: Correct comment on first line of file.
1434 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
1436 * sparc-opc.c (asi, membar): New static locals.
1437 (sparc_{encode,decode}_{asi,membar}): New functions.
1438 (sparc_opcodes, membar insn): Fix.
1439 * sparc-dis.c (print_insn): Call sparc_decode_asi.
1440 Support decoding of membar masks.
1445 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
1449 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
1450 and likewise for the other branches. Add bhs as an alias for bcc,
1451 and likewise for the size variants. Add dbhs as an alias for
1456 * sh-opc.h (FP sts instructions): Update to match reality.
1460 * m68k-dis.c: (fpcr_names): Add % before all register names.
1461 (reg_names): Likewise.
1462 (print_insn_arg): Don't explicitly print % before register names.
1463 Add % before register names in static array names. In case 'r',
1464 print data registers as `@(Dn)', not `Dn@'. When printing a
1465 memory address, don't print @# before it.
1466 (print_indexed): Change base_disp and outer_disp from int to
1467 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
1468 syntax. Sign extend 8 byte displacement correctly.
1469 (print_base): Print using MIT syntax. Print zpc when appropriate.
1470 Change parameter disp from int to bfd_vma.
1472 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
1477 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
1478 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
1479 * sh-opc.h (sh_arg_type): Add new operand types.
1480 (sh_table): Add new opcodes from SH3E Floating Point ISA.
1484 * Makefile.in (distclean): Remove generated file config.h.
1488 * Makefile.in (distclean): Remove generated file config.h.
1492 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
1494 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
1496 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
1497 rather than numopcodes. Use m68k_opcodes rather than removed
1498 opcode function. Don't check F_ALIAS.
1499 (print_insn_arg): Change first parameter to be const char *.
1500 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
1501 (m68k-opc.o): New target.
1502 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
1503 * configure: Rebuild.
1507 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
1508 (opcode_bits, opcode_hash_table): New variables.
1509 (opcodes_initialized): Renamed from opcodes_sorted.
1510 (build_hash_table): New function.
1511 (is_delayed_branch): Use hash table.
1512 (print_insn): Renamed from print_insn_sparc, made static.
1513 Build and use hash table. If !sparc64, ignore sparc64 insns,
1514 and vice-versa if sparc64.
1515 (print_insn_sparc, print_insn_sparc64): New functions.
1516 (compare_opcodes): Move sparc64 opcodes to end.
1517 Print commutative insns with constant second.
1518 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
1522 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
1523 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
1524 avoids printing a delay slot in a delay slot.
1525 * sh-opc.h (sh_table): Fully bracket last entry.
1529 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
1533 * configure.in: Get host_makefile_frag from ${srcdir}.
1535 * configure.in: Autoconfiscated. Check for string[s].h. Create
1536 config.h from config.in. Don't set up sysdep.h link.
1537 * sysdep.h: New file.
1538 * configure, config.in: New files, generated from configure.in.
1539 * Makefile.in: Updated to be processed autoconf-style.
1540 (distclean): Keep sysdep.h. Remove config.log and config.cache.
1541 (Makefile): Depend on config.status.
1542 (config.status): New rule.
1543 * configure.bat: Update Makefile substitutions.
1547 * mips-opc.c (L1): Define.
1548 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
1549 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
1554 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
1555 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
1556 have multiple add units but only a single logical unit.
1558 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
1559 shifted by 18, without any insertion or extraction function.
1560 (insert_cr, extract_cr): Remove.
1565 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
1570 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
1575 * mpw-config.in: Add sh and i386 configs, remove sparc config.
1576 * sh-opc.h: Add copyright.
1580 * Makefile.in (crunch-m68k): Delete extra target accidentally
1581 checked in a while ago.
1585 * sh-opc.h (sh_table): Add SH3 support.
1589 * sh-opc.h: Added bsrf and braf.
1593 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
1594 bogus [ls]fm{ea,fd} patterns.
1596 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
1597 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
1598 initialize it from memory. Make function static.
1599 (print_insn_{big,little}_arm): New functions.
1600 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
1601 the correct endianness.
1606 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
1607 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
1612 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
1617 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
1618 17th, so that it builds again using GCC as the compiler.
1622 * mips-dis.c (print_insn_little_mips): Cast return value from
1623 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
1624 expects an unsigned long, and that might be fewer words of
1625 argument storage (e.g., if bfd_vma is long long on a 32-bit
1627 (print_insn_big_mips): Likewise with bfd_getb32 value.
1628 (_print_insn_mips): Now static.
1632 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
1633 gcc memory hog problem with initializer is fixed.
1638 * arc-opc.c (NULL): Define.
1639 (arc_operands, insn fields u,s): Delete.
1640 (arc_operands, insn fields a,b,c): Mark as signed.
1641 (arc_opcodes): No longer const, links computed at run-time.
1642 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
1643 suffixes that affect the insn code.
1644 (arc_opcodes): Resort table to macros are first.
1645 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
1646 (arc_opcodes, st [b] entry): Likewise.
1647 (arc_opcodes, st [b,d] entry): Fix mask, value.
1648 (arc_reg_names): Add entries for r29, r30, r31, r60.
1649 (opcode_map, icode_map): New static globals.
1650 (arc_opcode_init_tables): Initialize them.
1651 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
1652 (insert_shimmoffset): Signal error if register present.
1654 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
1659 Merge in support for Mac MPW as a host.
1660 (Old change descriptions retained for informational value.)
1662 * mpw-config.in (archname): Compute from the config.
1663 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
1665 * mpw-config.in (target_arch): Compute from canonical target.
1666 (m68k, mips, powerpc, sparc): Add architectures.
1667 * mpw-make.in (disassemble.c.o): Add.
1668 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
1670 * mpw-config.in (BFD_MACHINES): Set to a default value.
1671 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
1673 * mpw-make.in (CSEARCH): Add extra-include to search path.
1675 * mpw-config.in (varargs.h): Don't create.
1676 (sysdep.h): Create using forward-include.
1677 * mpw-make.in (CSEARCH): Add include/mpw to search path.
1679 * mpw-config.in: New file, MPW version of configure.in.
1680 * mpw-make.in: New file, MPW version of Makefile.in.
1685 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
1686 Call arc_get_opcode_mach to map bfd mach number to opcode value.
1687 (print_insn_*): Pass bfd mach number, not opcode version.
1688 * arc-opc.c (arc_get_opcode_mach): New function.
1693 * alpha-dis.c (print_insn_alpha): Put empty statement after
1698 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
1699 (low_sign_extend): Likewise.
1700 (get_field): Delete unused function.
1701 (set_field, deposit_14, deposit_21): Likewise.
1705 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
1712 * alpha-opc.h (OSF_ASMCODE): define
1713 print pal-code names as defined in App C of the
1714 Alpha Architecture Reference Manual
1716 * alpha-dis.c: cleaned up output
1717 print stylized code forms as defined in App A.4.3 of the
1718 Alpha Architecture Reference Manual
1722 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
1724 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
1729 * m68k-dis.c (opcode): New function. Returns address of opcode
1730 table entry given index, even if the opcode table was split to
1731 work around gcc bugs.
1732 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
1734 (BREAK_UP_BIG_DECL): Make secondary array static and const.
1735 (reg_names): Now const.
1736 (print_insn_arg): Arrays cacheFieldName and names now const.
1737 (print_indexed): Array scales now const.
1742 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
1743 (print_insn_arc_{host,graphics,audio}): Likewise.
1744 (print_insn): Add prototype.
1745 (arc_get_disassembler): New arg `big_p'. Return little or big
1746 print fn accordingly.
1747 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
1748 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
1749 (arc_opval_supported): Likewise.
1750 * disassemble.c (disassembler): Pass big endian flag to
1751 arc_get_disassembler.
1756 * ppc-opc.c: Sort recently added instructions by minor opcode
1757 number within major opcode number.
1761 * hppa-dis.c: Include libhppa.h.
1765 * mips-opc.c: Change dli to use M_DLI, and add dla.
1769 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
1774 * arc-dis.c (arc_get_disassembler): Change argument to int,
1775 one of bfd_mach_arc_xxx. All callers updated.
1780 * mips-opc.c: Add r4650 mul instruction.
1784 * mips-opc.c: Add uld and usd macros for unaligned double load and
1789 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
1790 mfdcr, mtdcr, icbt, iccci.
1795 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
1796 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
1797 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
1798 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
1799 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
1800 (insert_absaddr): New function.
1804 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
1805 New argument `cpu', pass it to arc_opcode_init_tables.
1806 Document byte order dependencies. Ignore unsupported insns.
1807 (arc_get_disassembler): New function.
1808 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
1809 print_insn_arc_audio): New functions.
1810 * arc-opc.c (MULTSHIFT operand): Delete.
1811 (UNSIGNED, SATURATION): New operands.
1812 (mac, mul, mul64, mulu64): New insns.
1813 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
1814 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
1815 (host,graphics,audio extended and auxiliary regs): Define.
1816 (ss, sc, mh, ml): New suffixes.
1817 (arc_opcode_supported, arc_opval_supported): New functions.
1818 (insert_multshift, extract_multshift): Deleted.
1819 * disassemble.c (disassembler, case bfd_arch_arc): Call
1820 arc_get_disassembler to get disassembler routine.
1825 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
1826 signed char fields to shorts, more portable.
1830 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
1831 char fields as signed chars, since they may have negative values.
1835 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
1841 * ppc-opc.c (extract_bdm): Correct parenthezisation.
1842 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
1847 * ppc-opc.c: Changes based on patch from David Edelsohn
1849 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
1852 (insert_tbr): New static function.
1853 (extract_tbr): New static function.
1854 (XFXFXM_MASK, XFXM): Define.
1855 (XSPRBAT_MASK, XSPRG_MASK): Define.
1856 (powerpc_opcodes): Add instructions to access special registers by
1857 name. Add mtcr and mftbu.
1861 * mips-opc.c (P3): Define.
1862 (mips_opcodes): Add mad and madu.
1864 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
1866 * configure.in: Add W65 support.
1867 * disassemble.c: Likewise.
1868 * w65-opc.h, w65-dis.c: New files.
1872 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
1878 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
1880 * arc-opc.c (extract_reladdr): New function.
1881 (insert_reladdr): Store address right-shifted by 2.
1886 * mips-opc.c: Add dli as a synonym for li.
1891 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
1893 (extraction fns): Insn argument now array of two words. Return pointer
1894 to value's table entry. All uses changed.
1895 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
1896 (insert_multshift, extract_multshift): New fns.
1897 (arc_operands): Add support for cache bypass suffix. Add support for
1898 predefined aux regs. Modifier bits moved to flags field.
1899 (arc_opcodes): Likewise.
1900 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
1901 New insn rlc. Update to syntax in programmer's manual.
1902 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
1903 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
1905 (arc_opcode_init_tables): New argument to indicate cpu type.
1906 (insert_reg): Handle predefined aux regs.
1907 (extract_reg): Likewise.
1908 (lookup_register): New fn.
1909 * arc-dis.c (arc_condition_codes): Deleted.
1910 (print_insn_arc): Handle insns with 32 bit immediate constants better.
1911 Clean up modifier handling. Handle predefined aux regs.
1916 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
1917 print something for reserved opcode values, even if it won't
1920 * mips-dis.c (_print_insn_mips): When initializing, shift right
1921 and mask, to avoid sign extension problems on the Alpha.
1923 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
1929 * configure.in: Add ARC support.
1930 * disassemble.c: Likewise.
1931 * arc-dis.c, arc-opc.c: New files.
1936 * sh-opc.h (mov.l gbr): Get direction right.
1937 * sh-dis.c (print_insn_shx): New function.
1938 (print_insn_shl, print_insn_sh): Call print_insn_shx to
1939 print opcodes with right byte order.
1943 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
1944 to avoid conflicts with getopt.
1948 * hppa-dis.c (print_insn_hppa): Read the instruction using
1949 bfd_getb32, so that it works on a little endian or 64 bit host.
1950 Remove unused local variable op.
1954 * mips-opc.c: Use or instead of addu for pseudo-op move, since
1955 addu does not work correctly if -mips3.
1959 * a29k-dis.c (print_special): Add special register names defined
1960 on 29030, 29040 and 29050.
1961 (print_insn): Handle new operand type 'I'.
1965 * Makefile.in (INSTALL): Use top level install.sh script.
1969 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
1970 that it works on a little endian host.
1974 * configure.in: Use ${config_shell} when running config.bfd.
1978 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
1982 * a29k-dis.c (print_insn): Print the opcode.
1986 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
1990 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
1994 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
1995 which store a value into memory.
1999 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
2000 * arm-dis.c, arm-opc.h: New files.
2004 * Makefile.in (ns32k-dis.o): Add dependency.
2005 * ns32k-dis.c (print_insn_arg): Declare initialized local as
2006 string, not as array of chars.
2010 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
2012 * sparc-opc.c: Added sparclite extended FP operations, and
2013 versions of v9 impdep* instructions permitting specification of
2018 * i960-dis.c (reg_names): Now const.
2019 (struct sparse_tabent): New type, copied from array type in mem
2021 (ctrl): Local static array ctrl_tab now const.
2022 (cobr): Local static array cobr_tab now const.
2023 (mem): Local variables reg1, reg2, reg3 now point to const. Local
2024 static variable mem_tab no longer explicitly initialized. Changed
2025 mem_init to const array of struct sparse_tabent.
2026 (reg): Local static variable reg_tab no longer explicitly
2027 initialized. Changed reg_init to const array of struct
2029 (ea): Local static array scale_tab now const.
2031 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
2036 * configure.bat: the disassember needs to be enabled for
2037 "objdump -d" to work in djgpp.
2041 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
2042 (invalid_float): Enabled general version, doesn't require running
2043 on ns32k host. Changed to take char* argument, and test for
2044 explicitly specified sizes, instead of using sizeof() on host CPU
2046 (INVALID_FLOAT): Cast first argument.
2047 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
2048 list_P032, list_M032): Now const.
2049 (optlist, list_search): Made appropriate arguments now point to
2051 (print_insn_arg): Changed static array of one-character-string
2052 pointers into a static const array of characters; fixed sprintf
2053 statement accordingly.
2057 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
2058 from distribution. A ns32k-dis.c from a previous distribution has
2059 been brought up to date and supports the new interface.
2061 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
2063 * configure.in: add bfd_ns32k_arch target support.
2065 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
2066 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
2070 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
2075 * h8300-dis.c, mips-dis.c: Don't use true and false.
2079 * configure.in: Change --with-targets to --enable-targets.
2083 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
2084 opcodes to the first instruction with that opcode, to speed
2090 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
2094 * configure.bat: update to latest makefile.in
2098 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
2099 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
2100 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
2101 slot insn is in a delay slot.
2102 * z8k-opc.h: (resflg): Fix patterns.
2103 * h8500-opc.h Fix CR insn patterns.
2107 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
2108 "cmpl" before POWER versions, so that gas -many uses them.
2112 * disassemble.c: New file.
2113 * Makefile.in (OFILES): Add disassemble.o.
2114 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
2115 * configure.in: Define ARCHDEFS in Makefile. Code taken from
2116 binutils/configure.in.
2118 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
2119 opcode being examined.
2123 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
2124 (insert_ral, insert_ram, insert_ras): New functions.
2125 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
2126 RAS for store with update.
2130 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
2135 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
2140 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
2144 * ppc-opc.c (powerpc_operands): The signedp field has been
2145 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
2146 instead. Add new operand SISIGNOPT.
2147 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
2149 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
2154 * i386-dis.c (struct private): Renamed to dis_private. `private'
2155 is a reserved word for dynix cc.
2159 * configure.in: Change error message to refer to bfd/config.bfd
2160 rather than bfd/configure.in.
2164 * ppc-opc.c: Define POWER2 as short alias flag.
2165 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
2170 * i960-dis.c (print_insn_i960): Don't read a second word for
2171 opcodes 0, 1, 2 and 3.
2175 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
2179 * m68881-ext.c: Removed; no longer used.
2180 * Makefile.in: Changed accordingly.
2182 * m68k-dis.c (ext_format_68881): Don't declare.
2183 (print_insn_m68k): If an instruction uses place 'i', it uses at
2184 least four fixed bytes.
2185 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
2186 extended float, convert to double using floatformat_to_double, not
2187 ieee_extended_to_double, and fetch the data before converting it.
2191 * mips-opc.c: It's sqrt.s, not sqrt.w. From
2196 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
2197 PowerPC uses bdnz[l][a].
2201 * dis-buf.c, i386-dis.c: Include sysdep.h.
2205 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
2207 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
2208 by Motorola PowerPC 601 with PPC_OPCODE_601.
2209 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
2210 Disassemble Motorola PowerPC 601 instructions as well as normal
2211 PowerPC instructions.
2215 * i960-dis.c (reg, mem): Just use a static array instead of
2220 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
2221 condition name index if this is for a negated condition.
2223 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
2224 Floating point format for 'H' operand is backwards from normal
2225 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
2226 operands (fmpyadd and fmpysub), handle bizarre register
2227 translation correctly for single precision format.
2229 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
2230 or 'I' operands if the next format specifier is 'M' (fcmp
2231 condition completer).
2235 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
2236 single number giving a bitmask for the MB and ME fields of an M
2237 form instruction. Change NB to accept 32, and turn it into 0;
2238 also turn 0 into 32 when disassembling. Seperated SH from NB.
2239 (insert_mbe, extract_mbe): New functions.
2240 (insert_nb, extract_nb): New functions.
2241 (SC_MASK): Mask out SA and LK bits.
2242 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
2243 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
2244 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
2245 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
2246 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
2247 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
2248 (powerpc_macros): Define table of macro definitions.
2249 (powerpc_num_macros): Define.
2251 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
2252 if PPC_OPERAND_NEXT is set.
2256 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
2257 char. Retrieve contents using bfd_getl32 instead of shifting.
2261 * ppc-opc.c: New file. Opcode table for PowerPC, including
2262 opcodes for POWER (RS/6000).
2263 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
2264 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
2265 (CFILES): Add ppc-dis.c.
2266 (ppc-dis.o, ppc-opc.o): New targets.
2267 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
2271 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
2272 No space before 'u', 'f', or 'N'.
2276 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
2277 farther than we should.
2279 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
2283 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
2287 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
2288 needs it, to prevent reading past the end of a section.
2292 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
2293 Removed t,A case for la; always use t,A(b) case.
2298 * mips-dis.c (print_insn_arg): Handle 'k'.
2299 * mips-opc.c: Make cache use k, not t.
2303 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
2304 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
2305 FLOAT_FORMAT_CODE to put out floating point register names.
2309 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
2313 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
2317 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
2318 larger than 32. Moved dsxx32 variants first for disassembler.
2322 * z8kgen.c, z8k-opc.h: Add full lda information.
2326 * hppa-dis.c (print_insn_hppa): Do not emit a space after
2327 movb instructions. Any necessary space will be emitted by
2328 the code to handle nullification completers.
2332 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
2336 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
2337 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
2341 * mips-opc.c: Correct lwu opcode value (book had it wrong).
2345 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
2346 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
2350 * m88k-dis.c (m88kdis): comment change. Remove space after
2352 (printop): handle new arg types DEC and XREG for m88110.
2356 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
2357 type for absolute branch addresses. Delete special
2358 "ble" and "be" code in 'W' operand code.
2362 * mips-opc.c: Set hazard information correctly for branch
2363 likely instructions.
2367 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
2368 info->fprintf_func for printing and info->print_address_func for
2373 * mips-opc.c: Set INSN_TRAP for tXX instructions.
2378 Corrected second case of "b" for disassembler.
2382 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
2383 to BFD swapping routines to correspond to BFD name changes.
2387 * mips-opc.c: Change div machine instruction to be z,s,t rather
2388 than s,t. Change div macro to be d,v,t rather than d,s,t.
2389 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
2390 rem and remu which generates only the corresponding div
2391 instruction. This is for compatibility with the MIPS assembler,
2392 which only generates the simple machine instruction when an
2393 explicit destination of $0 is used.
2394 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
2399 WR_31 hazard for bal, bgezal, bltzal.
2403 * hppa-dis.c (print_insn_hppa): Use print function
2404 from within the disassemble_info, not fprintf_filtered.
2408 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
2413 * mips-opc.c ("absu"): Removed.
2418 * mips-opc.c: Added r6000 and r4000 instructions and macros.
2419 Changed hazard information to distinguish between memory load
2420 delays and coprocessor load delays.
2424 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
2428 * configure.in: Don't pass cpu to config.bfd.
2432 * m88k-dis.c (m88kdis): Make class unsigned.
2436 * alpha-dis.c (print_insn_alpha): One branch format case was
2437 missing the instruction name.
2441 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
2442 Add the arch-specific auxiliary files.
2443 (OFILES): Remove the arch-specific auxiliary files
2444 and use BFD_MACHINES instead of DIS_LIBS.
2445 * configure.in: Set BFD_MACHINES based on --with-targets option.
2449 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
2454 * sparc-opc.c: Change CONST to const to deal with gcc
2455 -Dconst=__const -traditional.
2460 coprocessor instructions out of #if 0, and made them use new
2465 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
2469 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
2470 instruction, for use by the disassembler.
2472 * sparc-dis.c (SEX): Add sign extension macro. Replace many
2473 hand-coded sign extensions that depended on 32-bit host ints.
2474 FIXME, we still depend on big-endian host bitfield ordering.
2475 (sparc_print_insn): Set the insn_info_valid field, and the
2476 other fields that describe the instruction being printed.
2480 * sparc-opc.c (call): Accept all 6 addressing modes valid for
2481 `jmp' instead of just one of them.
2485 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
2486 (fput_fp_reg_r): Renamed from fput_reg_r.
2487 (fput_fp_reg): New function.
2488 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
2490 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
2492 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
2496 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
2498 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
2499 don't output a space.
2501 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
2505 * mips-opc.c: New file, containing opcode table from
2506 ../include/opcode/mips.h.
2507 * Makefile.in: Add it.
2511 * m88k-dis.c: New file, moved in from gdb and changed to use the
2512 new dis-asm.h disassembler interface.
2513 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
2514 (m88k-dis.o): New target.
2518 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
2519 argument string const char * to correspond to opcode/mips.h.
2523 * mips-dis.c: Updated to account for name changes in new version
2525 * Makefile.in: Added header file dependencies.
2529 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
2533 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
2534 extend, rather than shifts.
2538 * Makefile.in: Undo 15 June change.
2542 * m68k-dis.c (print_insn_arg): Change return value to byte count
2544 * m68k-dis.c: Re-write to detect invalid operands before
2545 printing anything, so we can handle this the same way we
2546 handle invalid opcodes.
2550 * sh-dis.c, sh-opc.h: Understand some more opcodes.
2554 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
2559 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
2561 * configure.in: Do make sysdep.h link.
2562 * Makefile.in: Search ../include. Don't search ../bfd.
2567 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
2568 Do not print a space before the completers specified by
2573 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
2574 defined, since gdb has been fixed.
2577 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
2578 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
2579 be a *disassemble_info, not a *FILE.
2580 * hppa-dis.c: Support 'd', '!', and 'a'.
2581 * hppa-dis.c: Support 's' to extract a 2 bit space register.
2582 * hppa-dis.c: Delete cases which are no longer needed.
2586 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
2590 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
2595 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
2596 * configure.in: No longer need to configure to get sysdep.h.
2601 * hppa-dis.c: Support 'I', 'J', and 'K' in output
2602 templates for 1.1 FP computational instructions.
2606 * h8500-dis.c (print_insn_h8500): Address argument is type
2608 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
2611 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
2612 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
2614 * sparc-dis.c (compare_opcodes): Move static declaration to
2619 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
2620 instruction, remove unimp hack from 'l' argument.
2624 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
2630 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
2635 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
2636 arrays of string pointers to 2-d arrays of chars, to save
2641 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
2642 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
2646 * hppa-dis.c: New file from Utah, adapted to new disassembler
2648 * Makefile.in: Include it.
2652 * sh-dis.c, sh-opc.h: New files.
2656 * alpha-dis.c, alpha-opc.h: New files.
2660 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
2665 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
2669 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
2674 * sparc-dis.c: Use fprintf_func a few places where I forgot,
2675 and double percent signs a few places.
2677 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
2679 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
2680 Use info->print_address_func not print_address.
2682 * dis-buf.c (generic_print_address): New function.
2686 * Makefile.in: Add sparc-dis.c.
2687 sparc-dis.c: New file, merges binutils and gdb versions as follows:
2689 Add `add' instruction to the set that get checked
2690 for a preceding `sethi' in order to print an absolute address.
2691 * (print_insn): Disassembly prefers real instructions.
2692 (is_delayed_branch): Speed up.
2693 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
2694 Still missing some float ops, and needs testing.
2695 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
2696 F_ALIAS. Use printf, not fprintf, when not passing a file
2698 (compare_opcodes): Check that identical instructions have
2699 identical opcodes, complain otherwise.
2702 * Include reg_names.
2704 Use dis-asm.h/read_memory_func interface.
2708 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
2709 deliberately return non-zero to setjmp from longjmp. Otherwise
2710 this code fails to compile.
2714 * m68k-dis.c: Fix prototype for fetch_arg().
2718 * dis-buf.c: New file, for new read_memory_func interface.
2719 Makefile.in (OFILES): Include it.
2720 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
2721 Use new read_memory_func interface.
2725 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
2726 * h8500-opc.h: Fix couple of opcodes.
2728 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
2730 * Makefile.in: add dvi & installcheck targets
2734 * Makefile.in: Update for h8500-dis.c.
2738 * h8500-dis.c, h8500-opc.h: New files
2742 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
2743 ../include/dis-asm.h.
2744 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
2745 and ../gdb/m68k-pinsn.c).
2746 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
2747 and ../gdb/i386-pinsn.c).
2748 * m68881-ext.c: New file. Moved definition of
2749 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
2750 * Makefile.in: Adjust for new files.
2752 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
2753 can be dis-assembled.
2757 * mips-dis.c (print_insn_arg): Now returns void.
2761 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
2762 files that use the macros.
2766 * mips-dis.c: New file, from gdb/mips-pinsn.c.
2767 * Makefile.in (DIS_LIBS): Added mips-dis.o.
2768 (CFILES): Added mips-dis.c.
2772 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
2773 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
2777 * Makefile.in: Improve *clean rules.
2778 * configure.in: Allow a default host.
2780 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2782 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
2783 files include other sysdep files
2787 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
2791 * configure.in: For host support, use ../bfd/configure.host
2792 so it stays in sync with the ../bfd/hosts database.
2794 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2796 * configure.in: use cpu-vendor-os triple instead of nested cases
2800 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
2801 *always* the wrong one.
2805 * z8kgen.c: added copyright info
2809 * z8k-dis.c (unparse_instr): prettier tabs
2810 * z8kgen.c -> z8k-opc.h: bug fixes in tables
2812 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
2814 * configure.in: Add ncr* configuration.
2815 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
2816 picayune ANSI compilers happy.
2820 * configure.in (i386): Make i386 and i486 synonymous for now.
2821 * configure.in (i[34]86-*-sysv4): Add my_host definition.
2825 * Makefile.in (install): Fix typo.
2829 * Makefile.in (make): Remove obsolete crud.
2830 (sparc-opc.o): Avoid Sun Make VPATH bug.
2834 * Makefile.in: since there are no SUBDIRS, remove rule and
2835 references of subdir_do.
2839 * Makefile.in (install): Get the library name right here too.
2840 Don't install bfd.h, since it's unrelated to this library. No
2841 subdirs to recurse into, either.
2842 (CFILES): The source file has a .c suffix, not .o.
2844 * sparc-opc.c: New file, moved from BFD.
2845 * Makefile.in (OFILES): Build it.
2849 * z8k-dis.c: fixed forward refferences of some declarations.
2853 * Makefile.in: get the name of the library right
2857 * z8k-dis.c: knows how to disassemble z8k stuff
2858 * z8k-opc.h: new file full of z8000 opcodes
2862 version-control: never