4 * tic80-opc.c (tic80_operands): Fix typo '+' -> '|'.
5 (tic80_opcodes): Sort entries so that long immediate forms
6 come after short immediate forms, making it easier for
7 assembler to select the right one for a given operand.
12 * mips-dis.c (_print_insn_mips): Set bytes_per_chunk and
14 (print_insn_mips16): Likewise.
19 * mips-opc.c: add r5900.
25 * tic80-opc.c (tic80_symbol_to_value): Changed to accept
26 a symbol class that restricts translation to just that
27 class (general register, condition code, etc).
31 * tic80-opc.c (tic80_operands): Add REG_0_E, REG_22_E,
32 and REG_DEST_E for register operands that have to be
33 an even numbered register. Add REG_FPA for operands that
34 are one of the floating point accumulator registers.
35 Add TIC80_OPERAND_MASK to flags for ENDMASK operand.
36 (tic80_opcodes): Change entries that need even numbered
37 register operands to use the new operand table entries.
38 Add "or" entries that are identical to "or.tt" entries.
43 * mips16-opc.c: Add new cases of exit instruction for
45 * mips-dis.c (print_mips16_insn_arg): Display floating point
46 registers in operands of exit instruction. Print `$' before
47 register names in operands of entry and exit instructions.
52 * tic80-opc.c (tic80_predefined_symbols): Table of name/value
53 pairs for all predefined symbols recognized by the assembler.
54 Also used by the disassembling routines.
55 (tic80_symbol_to_value): New function.
56 (tic80_value_to_symbol): New function.
57 * tic80-dis.c (print_operand_control_register,
58 print_operand_condition_code, print_operand_bitnum):
59 Remove private tables and use tic80_value_to_symbol function.
65 * d10v-dis.c (print_operand): Change address printing
66 to correctly handle PC wrapping. Fixes PR11490.
71 * mn10200-opc.c (mn10200_operands): Make 8 and 16 bit pc-relative
76 * mips-dis.c (print_insn_mips16): Set insn_info information.
77 (print_mips16_insn_arg): Likewise.
79 * mips-dis.c (print_insn_mips16): Better handling of an extend
80 opcode followed by an instruction which can not be extended.
84 * m68k-opc.c (m68k_opcodes): Changed operand specifier for the
85 coldfire moveb instruction to not allow an address register as
86 destination. Although the documentation does not indicate that
87 this is invalid, experiments uncovered unexpected behavior.
88 Added a comment explaining the situation. Thanks to Andreas
89 Schwab for pointing this out to me.
94 * tic80-opc.c (tic80_opcodes): Expand comment to note that the
95 entries are presorted so that entries with the same mnemonic are
96 adjacent to each other in the table. Sort the entries for each
97 instruction so that this is true.
102 * m68k-dis.c: Include <libiberty.h>.
103 (print_insn_m68k): Sort the opcode table on the most significant
104 nibble of the opcode.
109 * tic80-dis.c (tic80_opcodes): Add "wrcr", "vmpy", "vrnd",
110 "vsub", "vst", "xnor", and "xor" instructions.
111 (V_a1): Renamed from V_a, msb of accumulator reg number.
112 (V_a0): Add macro, lsb of accumulator reg number.
116 * tic80-dis.c (print_insn_tic80): Broke excessively long
117 function up into several smaller ones and arranged for
118 the instruction printing function to be callable recursively
119 to print vector instructions that have both a load and a
120 math instruction packed into a single opcode.
121 * tic80-opc.c (tic80_opcodes): Expand comment for vld opcode
122 to explain why it comes after the other vector opcodes.
127 * m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
128 move insns to handle immediate operands.
132 * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".
133 fix operand mask in the "moveml" entries for the coldfire.
138 * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
139 New macros for building vector instruction opcodes.
140 (tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
141 FMT_LI, which were unused. The field is now a flags field.
142 Remove some opcodes that are possible, but illegal, such
143 as long immediate instructions with doubles for immediate
144 values. Add "vadd" and "vld" instructions.
148 * tic80-opc.c (tic80_operands): Reorder some table entries to make
149 the order more logical. Move the shift alias instructions ("rotl",
150 "shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
151 interspersed with the regular sr.x and sl.x instructions. Add
152 and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
153 "sub", "subu", "swcr", and "trap".
157 * tic80-opc.c (OFF_SS_PC): Renamed from OFF_SS.
158 (OFF_SL_PC): Renamed from OFF_SL.
159 (OFF_SS_BR): New operand type for base relative operand.
160 (OFF_SL_BR): New operand type for base relative operand.
161 (REG_BASE): New operand type for base register operand.
162 (tic80_opcodes): Add and test "fmpy", "frndm", "frndn", "frndp",
163 "frndz", "fsqrt", "fsub", "illop0", "illopF", "ins", "jsr",
164 "ld", "ld.u", "lmo", "or", "rdcr", "rmo", "rotl", and "rotr"
166 * tic80-dis.c (print_insn_tic80): Print opcode name with fixed width
167 10 char field, padded with spaces on rhs, rather than a string
168 followed by a tab. Use renamed TIC80_OPERAND_PCREL flag bit rather
169 than old TIC80_OPERAND_RELATIVE. Add support for new
170 TIC80_OPERAND_BASEREL flag bit.
174 * tic80-dis.c (print_insn_tic80): Print floating point operands
176 * tic80-opc.c (SPFI): Add single precision floating point
177 immediate operand type.
178 (ROTATE): Add rotate operand type for shifts.
179 (ENDMASK): Add for shifts.
180 (n): Macro for the 'n' bit.
181 (i): Macro for the 'i' bit.
182 (PD): Macro for the 'PD' field.
183 (P2): Macro for the 'P2' field.
184 (P1): Macro for the 'P1' field.
185 (tic80_opcodes): Add entries for "exts", "extu", "fadd",
191 * mn10200-dis.c (disassemble): Mask off unwanted bits after
192 adding in current address for pc-relative operands.
197 * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
198 (print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
199 * tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
200 changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
201 (SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
202 REG_BASE_M_SI, REG_BASE_M_LI respectively.
203 (REG_SCALED, LSI_SCALED): New operand types.
204 (E): New macro for 'E' bit at bit 27.
205 (tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
206 opcodes, including the various size flavors (b,h,w,d) for
207 the direct load and store instructions.
211 * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
213 * tic80-dis.c (print_insn_tic80): Change comma and paren handling.
214 Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
215 * tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
216 (F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
217 (MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
218 masks with "MASK_* & ~M_*" to get the M bit reset.
219 (tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.
223 * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
224 correctly. Add support for printing TIC80_OPERAND_BITNUM and
225 TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
227 * tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
228 CC, SICR, and LICR table entries.
229 (tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
230 "bcnd", and "brcr" opcodes.
235 * ppc-opc.c (powerpc_operands): Make comment match the
236 actual fields (no shift field).
237 * sparc-opc.c (sparc_opcodes): Document why this cannot be "const".
239 * tic80-dis.c (print_insn_tic80): Replace abort stub with a
240 partial implementation, work in progress.
241 * tic80-opc.c (tic80_operands): Begin construction operands table.
242 (tic80_opcodes): Continue populating opcodes table and start
243 filling in the operand indices.
244 (tic80_num_opcodes): Add this.
249 * m68k-opc.c: Add #B case for moveq.
253 * mn10300-dis.c (disassemble): Make sure all variables are initialized
254 before they are used.
259 * v850-opc.c (v850_opcodes): Put curly-braces around operands
260 for "breakpoint" instruction.
265 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
266 (dep): Use ALL_CFLAGS rather than CFLAGS.
271 * v850-opc.c (D8_{6,7}): Set V850_OPERAND_ADJUST_SHORT_MEMORY
277 * Makefile.in (m68k-opc.o, alpha-opc.o): Remove dis-asm.h dependency.
279 (tic80-dis.o, tic80-opc.o): Add rules per comment in Makefile.in.
284 * mips16-opc.c: Add "abs".
289 * Makefile.in (ALL_MACHINES): Add tic80-dis.o and tic80-opc.o.
290 * disassemble.c (ARCH_tic80): Define if ARCH_all is defined.
291 (disassembler): Add bfd_arch_tic80 support to set disassemble
293 * tic80-dis.c (print_insn_tic80): Add stub.
297 * configure.in (arch in $selarchs): Add bfd_tic80_arch entry.
298 * configure: Regenerate with autoconf.
299 * tic80-dis.c: Add file.
300 * tic80-opc.c: Add file.
306 * d10v-opc.c (pre_defined_registers): Add cr[0-15], dpc, dpsw, link.
311 * mn10200-opc.c (mn10200_operands): Add SIMM16N.
312 (mn10200_opcodes): Use it for some logicals and btst insns.
313 Add "break" and "trap" instructions.
315 * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
317 * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
321 * mips-dis.c (print_mips16_insn_arg): The base address of a PC
322 relative load or add now depends upon whether the instruction is
327 * mn10200-dis.c: Finish writing disassembler.
328 * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
329 Fix mask for "jmp (an)".
331 * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
332 handle endianness issues for mn10300.
334 * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
338 * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
339 instruction. Fix opcode field for "movb (imm24),dn".
341 * mn10200-opc.c (mn10200_operands): Fix insertion position
346 * mn10200-opc.c: Create mn10200 opcode table.
347 * mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
348 but moving along nicely.
352 * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
356 * m68k-opc.c (m68k_opcodes): Revert change to use < and >
357 specifiers for fmovem* instructions.
361 * mn10300-dis.c (disassemble): Remove '$' register prefixing.
365 * mips16-opc.c: Change opcode for entry/exit to avoid conflicting
370 * mn10300-opc.c: Add some comments explaining the various
373 * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
377 * m68k-dis.c (print_insn_arg): Handle new < and > operand
380 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
381 operand specifiers in fmovm* instructions.
385 * ppc-opc.c (insert_li): Give an error if the offset has the two
386 least significant bits set.
390 * mips-dis.c (print_insn_mips16): Separate the instruction from
391 the arguments with a tab, not a space.
395 * mn10300-dis.c (disasemble): Finish conversion to '$' as
398 * mn10300-opc.c (mn10300_opcodes): Fix mask field for
403 * configure: Rebuild with autoconf 2.12.
405 Add support for mips16 (16 bit MIPS implementation):
406 * mips16-opc.c: New file.
407 * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h".
408 (mips16_reg_names): New static array.
409 (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or
410 after seeing a 16 bit symbol.
411 (print_insn_little_mips): Likewise.
412 (print_insn_mips16): New static function.
413 (print_mips16_insn_arg): New static function.
414 * mips-opc.c: Add jalx instruction.
415 * Makefile.in (mips16-opc.o): New target.
416 * configure.in: Use mips16-opc.o for bfd_mips_arch.
417 * configure: Rebuild.
421 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
422 operand specifiers in *save, *restore and movem* instructions.
424 * m68k-opc.c (m68k_opcodes): Fix move and movem instructions for
427 * m68k-opc.c (m68k_opcodes): The coldfire (mcf5200) can only use
428 register operands for immediate arithmetic, not, neg, negx, and
429 set according to condition instructions.
431 * m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storage
432 specifier of the effective-address operand in immediate forms of
433 arithmetic instructions. The specifier for the immediate operand
434 notes how and where the constant will be stored.
438 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"
441 * mn10300-dis.c (disassemble): Use '$' instead of '%' for
444 * mn10300-dis.c (disassemble): Prefix registers with '%'.
448 * mn10300-dis.c (disassemble): Handle register lists.
450 * mn10300-opc.c: Fix handling of register list operand for
451 "call", "ret", and "rets" instructions.
453 * mn10300-dis.c (disassemble): Print PC-relative and memory
454 addresses symbolically if possible.
455 * mn10300-opc.c: Distinguish between absolute memory addresses,
456 pc-relative offsets & random immediates.
458 * mn10300-dis.c (print_insn_mn10300): Fix fetch of last byte
460 (disassemble): Handle SPLIT and EXTENDED operands.
464 * mn10300-dis.c: Rough cut at printing some operands.
466 * mn10300-dis.c: Start working on disassembler support.
467 * mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
469 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
471 (mn10300_opcodes): Use REGS for register list in "movm" instructions.
476 * d10v-opc.c (d10v_opcodes): Add3 sets the carry.
481 * mn10300-opc.c (mn10300_opcodes): Demand parens around
482 register argument is calls and jmp instructions.
486 * mn10300-opc.c (mn10300_opcodes): Use DN01 for putx and
487 getx operand. Fix opcode for mulqu imm,dn.
491 * mn10300-opc.c (mn10300_operands): Hijack "bits" field
492 in MN10300_OPERAND_SPLIT operands for how many bits
493 appear in the basic insn word. Add IMM32_HIGH24,
494 IMM32_HIGH24_LOWSHIFT8, IMM8E_SHIFT8.
495 (mn10300_opcodes): Use new operands as needed.
497 * mn10300-opc.c (mn10300_operands): Add IMM32_LOWSHIFT8
498 for bset, bclr, btst instructions.
499 (mn10300_opcodes): Use new IMM32_LOWSHIFT8 as needed.
501 * mn10300-opc.c (mn10300_operands): Remove many redundant
502 operands. Update opcode table as appropriate.
503 (IMM32): Add MN10300_OPERAND_SPLIT flag.
504 (mn10300_opcodes): Fix single bit error in mov imm32,dn insn.
508 * mn10300-opc.c (mn10300_operands): Add DN2, DM2, AN2, AM2
509 operands (for indexed load/stores). Fix bitpos for DI
510 operand. Add SN8N_SHIFT8, IMM8_SHIFT8, and D16_SHIFT for the
511 few instructions that insert immediates/displacements in the
512 middle of the instruction. Add IMM8E for 8 bit immediate in
513 the extended part of an instruction.
514 (mn10300_operands): Use new opcodes as appropriate.
519 * d10v-opc.c (d10v_opcodes): Declare the trap instruction
520 sequential so the assembler never parallelizes it with
526 * mn10300-opc.c (mn10300_operands): Add DN01 and AN01 for
527 a data/address register that appears in register field 0
528 and register field 1.
529 (mn10300_opcodes): Use DN01 and AN01 for mov/cmp imm8,DN/AN
533 * alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
534 standard disassembly.
536 * alpha-opc.c (alpha_operands): Rearrange flags slot.
537 (alpha_opcodes): Add new BWX, CIX, and MAX instructions.
538 Recategorize PALcode instructions.
543 * v850-opc.c (v850_opcodes): Add relaxing "jbr".
548 * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
549 there are no operand types.
554 * v850-opc.c (D9_RELAX): Renamed from D9, all references
556 (v850_operands): Make sure D22 immediately follows D9_RELAX.
561 * i386-dis.c (print_insn_x86): Set info->bytes_per_line to 5.
566 * v850-opc.c (insert_d8_6): Fix operand insertion for sld.w
567 and sst.w instructions.
569 * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
575 * mips-dis.c (_print_insn_mips): Use a tab between the instruction
580 * ppc-opc.c (PPCPWR2): Define.
581 (powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
586 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode
587 field for movhu instruction.
590 * v850-dis.c (disassemble): For V850_OPERAND_SIGNED operands,
591 cast value to "long" not "signed long" to keep hpux10
597 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode field
600 * mn10300-opc.c (FMT*): Remove definitions.
602 * mn10300-opc.c (mn10300_opcodes): Fix destination register
603 for shift-by-register opcodes.
605 * mn10300-opc.c (mn10300_operands): Break DN, DM, AN, AM
606 into [AD][MN][01] for encoding the position of the register
611 * mn10300-opc.c (mn10300_opcodes): Add "extended" instructions,
612 "putx", "getx", "mulq", "mulqu", "sat16", "sat24", "bsch".
616 * mn10300-opc.c (mn10300_operands): Remove "REGS" operand.
617 Fix various typos. Add "PAREN" operand.
619 (mn10300_opcodes): Surround all memory addresses with "PAREN"
620 operands. Fix several typos.
622 * mn10300-opc.c (mn10300_opcodes): Fix typos in yesterday's
627 * mn10300-opc.c (FMT_XX): Renumber starting at one.
628 (mn10300_operands): Rough cut. Enough to parse "mov" instructions
630 (mn10300_opcodes): Break opcode format out into its own field.
631 Update many operand fields to deal with signed vs unsigned
632 issues. Fix one or two typos in the "mov" instruction
633 opcode, mask and/or operand fields.
637 * m68k-opc.c (plusha): Prefer encoding for m68040up, in case
642 * mn10300-opc.c (mn10300_opcodes): Add opcode & masks for
643 all opcodes. Very rough cut at operands for all opcodes.
645 * mn10300-opc.c (mn10300_opcodes): Start fleshing out the
650 * mn10200-opc.c, mn10300-opc.c: New files.
651 * mn10200-dis.c, mn10300-dis.c: New files.
652 * mn10x00-opc.c, mn10x00-dis.c: Deleted.
653 * disassemble.c: Break mn10x00 support into 10200 and 10300
655 * configure.in: Likewise.
656 * configure: Rebuilt.
660 * Makefile.in (MOSTLYCLEAN): Move config.log to distclean.
664 * mn10x00-opc.c, mn10x00-dis.c: New files for Matsushita
666 * disassemble (ARCH_mn10x00): Define.
667 (disassembler): Handle bfd_arch_mn10x00.
668 * configure.in: Recognize bfd_mn10x00_arch.
669 * configure: Rebuilt.
673 * i386-dis.c (op_rtn): Change to be a pointer. Adjust uses
674 accordingly. Don't declare functions using op_rtn.
679 * v850-dis.c (disassemble): Add memaddr argument. Re-arrange
680 params to be more standard.
681 * (disassemble): Print absolute addresses and symbolic names for
682 branch and jump targets.
683 * v850-opc.c (v850_operand): Add displacement flag to 9 and 22
685 * (v850_opcodes): Add breakpoint insn.
690 * m68k-opc.c: Move the fmovemx data register cases before the
691 other cases, so that they get recognized before the data register
692 does gets treated as a degenerate register list.
696 * mips-opc.c: Add a case for "div" and "divu" with two registers
697 and a destination of $0.
701 * mips-dis.c (print_insn_arg): Add prototype.
702 (_print_insn_mips): Ditto.
706 * mips-dis.c (print_insn_arg): Print condition code registers as
711 * sparc-opc.c (sparc_opcodes): Add setuw, setsw, setx.
716 * v850-dis.c (disassemble): Make static. Provide prototype.
720 * v850-opc.c (insert_d9, insert_d22): Fix boundary case
725 * v850-dis.c (disassemble): Handle insertion of ',', '[' and
726 ']' characters into the output stream.
727 * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
728 Add "memop" field to all opcodes (for the disassembler).
729 Reorder opcodes so that "nop" comes before "mov" and "jr"
732 * v850-dis.c (print_insn_v850): Fix typo in last change.
734 * v850-dis.c (print_insn_v850): Properly handle disassembling
735 a two byte insn at the end of a memory region when the memory
736 region's size is only two byte aligned.
738 * v850-dis.c (v850_cc_names): Fix stupid thinkos.
740 * v850-dis.c (v850_reg_names): Define.
741 (v850_sreg_names, v850_cc_names): Likewise.
742 (disassemble): Very rough cut at printing operands (unformatted).
744 * v850-opc.c (BOP_MASK): Fix.
745 (v850_opcodes): Fix mask for jarl and jr.
747 * v850-dis.c: New file. Skeleton for disassembler support.
748 * Makefile.in Remove v850 references, they're not needed here
749 and they weren't being sanitized away.
750 * configure.in: Add v850-dis.o when building v850 toolchains.
751 * configure: Rebuilt.
752 * disassemble.c (disassembler): Call v850 disassembler.
754 * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
755 (insert_d8_6, extract_d8_6): New functions.
756 (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
757 Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
759 (IF4A, IF4B): Use "D7" instead of "D7S".
760 (IF4C, IF4D): Use "D8_7" instead of "D8".
761 (IF4E, IF4F): New. Use "D8_6".
762 (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b. Use IF4C/IF4D for
763 sld.h/sst.h. Use IF4E/IF4F for sld.w/sst.w.
765 * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
766 (v850_operands): Change D16 to D16_15, use special insert/extract
767 routines. New new D16 that uses the generic insert/extract code.
768 (IF7A, IF7B): Use D16_15.
769 (IF7C, IF7D): New. Use D16.
770 (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.
772 * v850-opc.c (insert_d9, insert_d22): Slightly improve error
773 message. Issue an error if the branch offset is odd.
775 * v850-opc.c: Add notes about needing special insert/extract
776 for all the load/store insns, except "ld.b" and "st.b".
778 * v850-opc.c (insert_d22, extract_d22): New functions.
779 (v850_operands): Use insert_d22 and extract_d22 for
781 (insert_d9): Fix range check.
785 * v850-opc.c (v850_operands): Add V850_OPERAND_SIGNED flag
786 and set bits field to D9 and D22 operands.
790 * v850-opc.c (v850_operands): Define SR2 operand.
791 (v850_opcodes): "ldsr" uses R1,SR2.
793 * v850-opc.c (v850_opcodes): Fix opcode specs for
794 sld.w, sst.b, sst.h, sst.w, and nop.
798 * v850-opc.c (v850_opcodes): Add null opcode to mark the
799 end of the opcode table.
805 * d10v-opc.c (pre_defined_registers): Added register pairs,
806 "r0-r1", "r2-r3", etc.
812 * v850-opc.c (v850_operands): Make I16 be a signed operand.
813 Create I16U for an unsigned 16bit mmediate operand.
814 (v850_opcodes): Use I16U for "ori", "andi" and "xori".
816 * v850-opc.c (v850_operands): Define EP operand.
817 (IF4A, IF4B, IF4C, IF4D): Use EP.
819 * v850-opc.c (v850_opcodes): Fix opcode numbers for "mov"
820 with immediate operand, "movhi". Tweak "ldsr".
822 * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
823 correct. Get sld.[bhw] and sst.[bhw] closer.
825 * v850-opc.c (v850_operands): "not" is a two byte insn
827 * v850-opc.c (v850_opcodes): Correct bit pattern for setf.
829 * v850-opc.c (v850_operands): D16 inserts at offset 16!
831 * v850-opc.c (two): Get order of words correct.
833 * v850-opc.c (v850_operands): I16 inserts at offset 16!
835 * v850-opc.c (v850_operands): Add "SR1" and "SR2" for system
836 register source and destination operands.
837 (v850_opcodes): Use SR1 and SR2 for "ldsr" and "stsr".
839 * v850-opc.c (v850_opcodes): Fix thinko in "jmp" opcode. Fix
840 same thinko in "trap" opcode.
842 * v850-opc.c (v850_opcodes): Add initializer for size field
845 * v850-opc.c (v850_operands): D6 -> DS7. References changed.
846 Add D8 for 8-bit unsigned field in short load/store insns.
847 (IF4A, IF4D): These both need two registers.
848 (IF4C, IF4D): Define. Use 8-bit unsigned field.
849 (v850_opcodes): For "sld.h", "sld.w", "sst.h", "sst.w", use
850 IF4C & IF4D. For "trap" use I5U, not I5. Add IF1 operand
851 for "ldsr" and "stsr".
852 * v850-opc.c (v850_operands): 3-bit immediate for bit insns
855 * v850-opc.c (v850_opcodes): Correct short store half (sst.h) and
856 short store word (sst.w).
860 * v850-opc.c (v850_operands): Added insert and extract fields,
861 pointers to functions that handle unusual operand encodings.
865 * v850-opc.c (v850_opcodes): Enable "trap".
867 * v850-opc.c (v850_opcodes): Fix order of displacement
868 and register for "set1", "clr1", "not1", and "tst1".
872 * v850-opc.c (v850_operands): Add "B3" support.
873 (v850_opcodes): Fix and enable "set1", "clr1", "not1"
876 * v850-opc.c (v850_opcodes): "jmp" has only an R1 operand.
878 * v850-opc.c: Close unterminated comment.
882 * v850-opc.c (v850_operands): Add flags field.
883 (v850_opcodes): add move opcodes.
887 * Makefile.in (ALL_MACHINES): Add v850-opc.o.
888 * configure: (bfd_v850v_arch) Add new case.
889 * configure.in: (bfd_v850_arch) Add new case.
890 * v850-opc.c: New file.
895 * sparc-dis.c (print_insn_sparc): Handle little endian sparcs.
900 * d10v-opc.c: Add additional information to the opcode
901 table to help determinine which instructions can be done
907 * mpw-make.sed: Update editing of include pathnames to be
912 * arm-opc.h: Added "bx" instruction definition.
916 * alpha-opc.c (EV4EXTHWINDEX): Field width should be 8 not 5.
921 * d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.
925 * d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.
930 * makefile.vms: Update for alpha-opc changes.
934 * i386-dis.c (print_insn_i386): Actually return the correct value.
935 (ONE, OP_ONE): #ifdef out; not used.
940 * d10v-opc.c (d10v_opcodes): Added 2 accumulator sub instructions.
941 Changed subi operand type to treat 0 as 16.
946 * m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
951 * arm-opc.h: (arm_opcodes): Added halfword and sign-extension
952 memory transfer instructions. Add new format string entries %h and %s.
953 * arm-dis.c: (print_insn_arm): Provide decoding of the new
959 * d10v-opc.c (d10v_operands): Added UNUM4S; a 4-bit accumulator shift.
960 (d10v_opcodes): Modified accumulator shift instructions to use UNUM4S.
965 * alpha-dis.c (print_insn_alpha_osf): Remove.
966 (print_insn_alpha_vms): Remove.
967 (print_insn_alpha): Make globally visible. Chose the register
968 names based on info->flavour.
969 * disassemble.c: Always return print_insn_alpha for the alpha.
974 * d10v-dis.c (dis_long): Handle unknown opcodes.
978 * d10v-opc.c: Changes to support signed and unsigned numbers.
979 All instructions with the same name that have long and short forms
980 now end in ".l" or ".s". Divs added.
981 * d10v-dis.c: Changes to support signed and unsigned numbers.
985 * d10v-dis.c: Change all functions to use info->print_address_func.
990 * m68k-opc.c (m68k_opcodes): Make opcode masks for the ColdFire
991 move ccr/sr insns more strict so that the disassembler only
992 selects them when the addressing mode is data register.
996 * d10v-opc.c (pre_defined_registers): Declare.
997 * d10v-dis.c (print_operand): Now uses pre_defined_registers
998 to pick a better name for the registers.
1003 * sparc-opc.c: Fix opcode values for fpack16, and fpackfix. Fix
1004 operands for fexpand and fpmerge. From Christian Kuehnke
1009 * alpha-dis.c (print_insn_alpha): No longer the user-visible
1010 print routine. Take new regnames and cpumask arguments.
1011 Kill the environment variable nonsense.
1012 (print_insn_alpha_osf): New function. Do OSF/1 style regnames.
1013 (print_insn_alpha_vms): New function. Do VMS style regnames.
1014 * disassemble.c (disassembler): Test bfd flavour to pick
1015 between OSF and VMS routines. Default to OSF.
1019 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
1020 * configure: Rebuild.
1021 * Makefile.in (install): Use @INSTALL_SHLIB@.
1026 * configure: (bfd_d10v_arch) Add new case.
1027 * configure.in: (bfd_d10v_arch) Add new case.
1028 * d10v-dis.c: New file.
1029 * d10v-opc.c: New file.
1030 * disassemble.c (disassembler) Add entry for d10v.
1035 * m68k-opc.c (m68k_opcodes): Fix bugs in coldfire insns relating
1036 to bcc, trapfl, subxl, and wddata discovered by Andreas Schwab.
1040 * i386-dis.c: Get rid of print_insn_i8086. Use info.mach to
1041 distinguish between variants of the instruction set.
1042 * sparc-dis.c: Get rid of print_insn_sparclite. Use info.mach to
1043 distinguish between variants of the instruction set.
1047 * i386-dis.c (print_insn_i8086): New routine to disassemble using
1048 the 8086 instruction set.
1049 * i386-dis.c: General cleanups. Make most things static. Add
1050 prototypes. Get rid of static variables aflags and dflags. Pass
1051 them as args (to almost everything).
1055 * h8300-dis.c (bfd_h8_disassemble): Handle macregs in ldmac insns.
1057 * h8300-dis.c (bfd_h8_disassemble): Handle "ldm.l" and "stm.l".
1059 * h8300-dis.c (bfd_h8_disassemble): "abs" is implicitly two
1060 if the next arg is marked with SRC_IN_DST. Gross.
1062 * h8300-dis.c (bfd_h8_disassemble): Print "exr" when
1063 we're looking for and find EXR.
1065 * h8300-dis.c (bfd_h8_disassemble): We don't have a match
1066 if we're looking for KBIT and we don't find it.
1068 * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
1071 * h8300-dis.c (bfd_h8_disassemble): Don't set plen for
1072 3bit immediate operands.
1076 * Released binutils 2.7.
1078 * alpha-opc.c: Add new case of "mov". From Klaus Kaempf
1083 * alpha-opc.c: Correct second case of "mov" to use OPRL.
1087 * sparc-dis.c (print_insn_sparclite): New routine to print
1088 sparclite instructions.
1092 * m68k-opc.c (m68k_opcodes): Add coldfire support.
1096 * sparc-opc.c (asi_table): Add #ASI_N, #ASI_N_L, #ASI_NUCLEUS,
1097 #ASI_NUCLEUS_LITTLE. Rename #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_L
1098 to #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
1102 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
1103 Use autoconf-set values.
1104 (docdir, oldincludedir): Removed.
1105 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
1109 * alpha-opc.c: New file.
1110 * alpha-opc.h: Remove.
1111 * alpha-dis.c: Complete rewrite to use new opcode table.
1112 * configure.in: For bfd_alpha_arch, use alpha-opc.o.
1113 * configure: Rebuild with autoconf 2.10.
1114 * Makefile.in (ALL_MACHINES): Add alpha-opc.o.
1115 (alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
1117 (alpha-opc.o): New target.
1121 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
1122 Set imm_added_to_rs1 even if the source and destination register
1125 * sparc-opc.c: Add some two operand forms of the wr instruction.
1129 * h8300-dis.c (bfd_h8_disassemble): Rename "hmode" argument
1132 * disassemble.c (disassembler): Handle H8/S.
1133 * h8300-dis.c (print_insn_h8300s): New function for H8/S.
1137 * sparc-opc.c: Add beq/teq as aliases for be/te.
1139 * ppc-opc.c: Fix fcmpo opcode. From Sergei Steshenko
1144 * makefile.vms: New file.
1146 * alpha-dis.c (print_insn_alpha): Print lda ra,lit(rz) as mov.
1150 * h8300-dis.c (bfd_h8_disassemble): Always print ABS8MEM with :8,
1155 * i386-dis.c (OP_OFF): Call append_prefix.
1159 * ppc-opc.c (instruction encoding macros): Add explicit casts to
1160 unsigned long to silence a warning from the Solaris PowerPC
1165 * sparc-opc.c (sparc_opcodes): Add ultrasparc vis extensions.
1169 * sparc-dis.c (X_IMM,X_SIMM): New macros.
1171 (print_insn_sparc): Merge cases i,I,j together. New cases X,Y.
1172 * sparc-opc.c (sparc_opcodes): Use X for 5 bit shift constants,
1173 Y for 6 bit shift constants. Rewrite entries for crdcxt, cwrcxt,
1174 cpush, cpusha, cpull sparclet insns.
1178 * sparc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
1182 * sparc-opc.c: Set F_FBR on floating point branch instructions.
1183 Set F_FLOAT on other floating point instructions.
1187 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
1189 (powerpc_opcodes): Add 860/821 specific SPRs.
1193 * configure.in: Permit --enable-shared to specify a list of
1194 directories. Set and substitute BFD_PICLIST.
1195 * configure: Rebuild.
1196 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
1197 uses. Set to @BFD_PICLIST@.
1201 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
1202 not "abs", which may be needed for the absolute in something
1203 like btst #0,@10:8. Print L_3 immediates separately from other
1204 immediates. Change ABSMOV reference to ABS8MEM.
1208 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
1209 (current_arch_mask): New static global.
1210 (compute_arch_mask): New static function.
1211 (print_insn_sparc): Delete sparc_v9_p. New static local
1212 current_mach. Resort opcode table if current_mach changes.
1213 Generalize "insn not supported" test.
1214 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
1215 Delete test for v9/!v9.
1216 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
1218 (brfc): Split into CBR and FBR for coprocessor/fp branches.
1219 (brfcx): Renamed to FBRX.
1220 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
1221 coprocessor mnemonics are not supported on the sparclet).
1222 (condf): Renamed to CONDF.
1223 (SLCBCC2): Delete F_ALIAS flag.
1227 * sparc-opc.c (sparc_opcodes): rd must be 0 for
1228 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
1232 * Makefile.in (config.status): Depend upon BFD VERSION file, so
1233 that the shared library version number is set correctly.
1237 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
1239 * configure: Rebuild.
1243 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
1248 * configure: Rebuild with autoconf 2.8.
1252 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
1253 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
1257 * configure.in: Don't set SHLIB or SHLINK to an empty string,
1258 since they appear as targets in Makefile.in.
1259 * configure: Rebuild.
1263 * mpw-make.sed: Edit out shared library support bits.
1267 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
1268 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
1269 (sparc_opcodes): Add sparclet insns.
1270 (sparclet_cpreg_table): New static local.
1271 (sparc_{encode,decode}_sparclet_cpreg): New functions.
1272 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
1276 * i386-dis.c (index16): New static variable.
1277 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
1279 (OP_indirE): Return result of OP_E.
1280 (OP_E): Check for 16 bit addressing mode, and disassemble
1281 correctly. Optimised 32 bit case a little. Don't print
1282 "(base,index,scale)" when sib specifies only an offset.
1286 * configure.in: Set and substitute SHLIB_DEP.
1287 * configure: Rebuild.
1288 * Makefile.in (SHLIB_DEP): New variable.
1289 (LIBIBERTY_LISTS, BFD_LIST): New variables.
1290 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
1291 COMMON_SHLIB, add them to piclist with appropriate modifications.
1292 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
1293 here: just use piclist.
1297 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
1298 (print_insn_sparc): Rewrite v9/not-v9 tests.
1299 (compare_opcodes): Likewise.
1300 * sparc-opc.c (MASK_<ARCH>): Define.
1301 (v6,v7,v8,sparclite,v9,v9a): Redefine.
1302 (sparclet,v6notv9): Define.
1303 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
1304 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
1308 * configure.in: Call AC_PROG_CC before configure.host.
1309 * configure: Rebuild.
1311 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
1315 * i386-dis.c (onebyte_has_modrm): New static array.
1316 (twobyte_has_modrm): New static array.
1317 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
1321 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
1326 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
1331 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
1332 m68010up, not just m68020up | cpu32.
1334 * Makefile.in (SONAME): New variable.
1335 ($(SHLINK)): Make a link to the transformed name, as well.
1336 (stamp-tshlink): New target.
1337 (install): Skip stamp-tshlink during install.
1341 * configure.in: Call AC_ARG_PROGRAM.
1342 * configure: Rebuild.
1343 * Makefile.in (program_transform_name): New variable.
1344 (install): Transform library name before installing it.
1348 * i960-dis.c (mem): Add HX dcinva instruction.
1350 Support for building as a shared library, based on patches from
1352 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
1353 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
1354 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
1355 * configure: Rebuild.
1356 * Makefile.in (ALLLIBS): New variable.
1357 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
1358 (COMMON_SHLIB, SHLINK): New variables.
1359 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
1360 (STAGESTUFF): Remove variable.
1361 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
1362 (stamp-piclist, piclist): New targets.
1363 ($(SHLIB), $(SHLINK)): New targets.
1364 ($(OFILES)): Depend upon stamp-picdir.
1365 (disassemble.o): Build twice if PICFLAG is set.
1366 (MOSTLYCLEAN): Add pic/*.o.
1367 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
1368 (distclean): Remove pic and stamp-picdir.
1369 (install): Install shared libraries.
1370 (stamp-picdir): New target.
1374 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
1375 Print unknown instruction as "unknown", rather than in hex.
1379 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
1383 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
1387 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
1388 when necessary. From Ulrich Drepper
1393 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
1394 sparc_num_opcodes. Update architecture enum values.
1395 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
1396 (sparc_opcode_lookup_arch): New function.
1397 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
1398 (sparc_opcodes): Add v9a shutdown insn.
1402 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
1403 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
1405 (print_insn_sparc64): Deleted.
1406 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
1409 * sparc-opc.c (architecture_pname): Add v9a.
1413 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
1414 incorrectly defined as 0x16 when it should be 0x15.
1415 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
1416 (alpha_insn_set): added cvtst and cvttq float ops. Also added
1417 excb (exception barrier) which is defined in the Alpha
1418 Architecture Handbook version 2.
1419 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
1420 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
1421 disassembled as or, for example.
1425 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
1426 (_print_insn_mips): Change i from int to unsigned int.
1430 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
1431 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
1435 * i386-dis.c: Added Pentium Pro instructions.
1439 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
1444 * sh-opc.h (sh_nibble_type): Added REG_B.
1445 (sh_arg_type): Added A_REG_B.
1446 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
1448 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
1452 * disassemble.c (disassembler): Use new bfd_big_endian macro.
1456 * Makefile.in (distclean): Remove stamp-h. From Ronald
1462 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
1467 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
1468 (sh_table): Added many SH3 opcodes.
1469 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
1473 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
1474 (subco,subco.): Mark this PPC, not PPCCOM.
1478 * configure: Rebuild with autoconf 2.7.
1482 * configure: Rebuild with autoconf 2.6.
1486 * configure.in: Sort list of architectures. Accept but do nothing
1487 for alliant, convex, pyramid, romp, and tahoe.
1491 * a29k-dis.c (print_special): Change num to unsigned int.
1495 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
1500 * configure.in: Call AC_CHECK_PROG to find and cache AR.
1501 * configure: Rebuilt.
1505 * configure.in: Add case for bfd_i860_arch.
1506 * configure: Rebuild.
1510 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
1511 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
1512 (NEXTDOUBLE): Likewise.
1513 (print_insn_m68k): Don't match fmoveml if there is more than one
1514 register in the list.
1515 (print_insn_arg): Handle a place of '8' for a type of 'L'.
1519 * m68k-opc.c: Use #W rather than #w.
1520 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
1524 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
1525 and likewise for all the dbxx opcodes.
1529 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
1533 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
1534 the VR4100 specific instructions to the mips_opcodes structure.
1538 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
1539 ugly Metrowerks bug in CW6, is fixed in CW7.
1543 * ppc-opc.c (whole file): Add flags for common/any support.
1547 * Makefile.in (BISON): Remove macro.
1548 (FLAGS_TO_PASS): Remove BISON.
1554 * m68k-dis.c (print_insn_m68k): Recognize all two-word
1555 instructions that take no args by looking at the match mask.
1556 (print_insn_arg): Always print "%" before register names.
1557 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
1558 [case '_']: Don't print "@#" before address.
1559 [case 'J']: Use "%s" as format string, not register name.
1560 [case 'B']: Treat place == 'C' like 'l' and 'L'.
1564 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
1571 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
1572 (alpha_insn_set): added definitions for VAX floating point
1573 instructions (Unix compilers don't generate these, but handcoded
1574 assembly might still use them).
1576 * alpha-dis.c (print_insn_alpha): added support for disassembling
1577 the miscellaneous instructions in the Alpha instruction set.
1581 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
1582 no longer create sysdep.h, sed ppc-opc.c to work around a
1583 serious Metrowerks C bug.
1584 * mpw-make.in: Remove.
1585 * mpw-make.sed: New file, used by mpw-configure to edit
1586 Makefile.in into an MPW makefile.
1590 * Makefile.in (maintainer-clean): New synonym for realclean.
1594 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
1595 which use '0', '1', and '2' instead. Specify the proper size for
1596 a pmove immediate operand. Correct the pmovefd patterns to be
1597 moves to a register, not from a register.
1598 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
1602 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
1603 %psr, %wim, %tbr as F_NOTV9.
1607 * Makefile.in (Makefile): Just rebuild Makefile when running
1609 (config.h, stamp-h): New targets.
1610 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
1611 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
1612 rebuilding config.h.
1613 * configure: Rebuild.
1615 * mips-opc.c: Change unaligned loads and stores with "t,A"
1616 operands to use "t,A(b)".
1620 * sh-dis.c (print_insn_shx): Add F_FR0 support.
1624 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
1625 until 3 instead of until 2.
1629 * Makefile.in (ALL_CFLAGS): Define.
1630 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
1631 (MOSTLYCLEAN): Add config.log.
1632 (distclean): Don't remove config.log.
1633 * configure.in: Substitute HDEFINES.
1634 * configure: Rebuild.
1638 * sh-opc.h (sh_arg_type): Add F_FR0.
1639 (sh_table, case fmac): Add F_FR0 as first argument.
1643 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
1647 * sparc-dis.c: Remove all references to NO_V9.
1651 * aclocal.m4: Just include ../bfd/aclocal.m4.
1652 * configure: Rebuild.
1656 * sparc-dis.c (X_DISP19): Define.
1657 (print_insn, case 'G'): Use it.
1658 (print_insn, case 'L'): Sign extend displacement.
1662 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
1663 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
1664 host_makefile_frag or frags.
1665 * aclocal.m4: New file.
1666 * configure: Rebuild.
1667 * Makefile.in (INSTALL): Set to @INSTALL@.
1668 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
1669 (INSTALL_DATA): Set to @INSTALL_DATA@.
1671 (AR_FLAGS): Set to rc rather than qc.
1672 (CC): Define as @CC@.
1673 (CFLAGS): Set to @CFLAGS@.
1674 (@host_makefile_frag@): Remove.
1675 (config.status): Remove dependency upon @frags@.
1677 * configure.in: ../bfd/config.bfd now just sets shell variables.
1678 Use them rather than looking through target Makefile fragments.
1679 * configure: Rebuild.
1683 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
1687 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
1688 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
1691 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
1692 (lookup_{name,value}): New functions.
1693 (prefetch_table): New static local.
1694 (sparc_{encode,decode}_prefetch): New functions.
1695 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
1699 * sh-opc.h: Add blank lines to improve readabililty of sh3e
1704 * sh-dis.c: Correct comment on first line of file.
1708 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
1710 * sparc-opc.c (asi, membar): New static locals.
1711 (sparc_{encode,decode}_{asi,membar}): New functions.
1712 (sparc_opcodes, membar insn): Fix.
1713 * sparc-dis.c (print_insn): Call sparc_decode_asi.
1714 Support decoding of membar masks.
1719 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
1723 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
1724 and likewise for the other branches. Add bhs as an alias for bcc,
1725 and likewise for the size variants. Add dbhs as an alias for
1730 * sh-opc.h (FP sts instructions): Update to match reality.
1734 * m68k-dis.c: (fpcr_names): Add % before all register names.
1735 (reg_names): Likewise.
1736 (print_insn_arg): Don't explicitly print % before register names.
1737 Add % before register names in static array names. In case 'r',
1738 print data registers as `@(Dn)', not `Dn@'. When printing a
1739 memory address, don't print @# before it.
1740 (print_indexed): Change base_disp and outer_disp from int to
1741 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
1742 syntax. Sign extend 8 byte displacement correctly.
1743 (print_base): Print using MIT syntax. Print zpc when appropriate.
1744 Change parameter disp from int to bfd_vma.
1746 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
1751 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
1752 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
1753 * sh-opc.h (sh_arg_type): Add new operand types.
1754 (sh_table): Add new opcodes from SH3E Floating Point ISA.
1758 * Makefile.in (distclean): Remove generated file config.h.
1762 * Makefile.in (distclean): Remove generated file config.h.
1766 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
1768 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
1770 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
1771 rather than numopcodes. Use m68k_opcodes rather than removed
1772 opcode function. Don't check F_ALIAS.
1773 (print_insn_arg): Change first parameter to be const char *.
1774 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
1775 (m68k-opc.o): New target.
1776 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
1777 * configure: Rebuild.
1781 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
1782 (opcode_bits, opcode_hash_table): New variables.
1783 (opcodes_initialized): Renamed from opcodes_sorted.
1784 (build_hash_table): New function.
1785 (is_delayed_branch): Use hash table.
1786 (print_insn): Renamed from print_insn_sparc, made static.
1787 Build and use hash table. If !sparc64, ignore sparc64 insns,
1788 and vice-versa if sparc64.
1789 (print_insn_sparc, print_insn_sparc64): New functions.
1790 (compare_opcodes): Move sparc64 opcodes to end.
1791 Print commutative insns with constant second.
1792 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
1796 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
1797 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
1798 avoids printing a delay slot in a delay slot.
1799 * sh-opc.h (sh_table): Fully bracket last entry.
1803 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
1807 * configure.in: Get host_makefile_frag from ${srcdir}.
1809 * configure.in: Autoconfiscated. Check for string[s].h. Create
1810 config.h from config.in. Don't set up sysdep.h link.
1811 * sysdep.h: New file.
1812 * configure, config.in: New files, generated from configure.in.
1813 * Makefile.in: Updated to be processed autoconf-style.
1814 (distclean): Keep sysdep.h. Remove config.log and config.cache.
1815 (Makefile): Depend on config.status.
1816 (config.status): New rule.
1817 * configure.bat: Update Makefile substitutions.
1821 * mips-opc.c (L1): Define.
1822 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
1823 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
1828 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
1829 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
1830 have multiple add units but only a single logical unit.
1832 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
1833 shifted by 18, without any insertion or extraction function.
1834 (insert_cr, extract_cr): Remove.
1839 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
1844 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
1849 * mpw-config.in: Add sh and i386 configs, remove sparc config.
1850 * sh-opc.h: Add copyright.
1854 * Makefile.in (crunch-m68k): Delete extra target accidentally
1855 checked in a while ago.
1859 * sh-opc.h (sh_table): Add SH3 support.
1863 * sh-opc.h: Added bsrf and braf.
1867 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
1868 bogus [ls]fm{ea,fd} patterns.
1870 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
1871 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
1872 initialize it from memory. Make function static.
1873 (print_insn_{big,little}_arm): New functions.
1874 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
1875 the correct endianness.
1880 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
1881 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
1886 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
1891 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
1892 17th, so that it builds again using GCC as the compiler.
1896 * mips-dis.c (print_insn_little_mips): Cast return value from
1897 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
1898 expects an unsigned long, and that might be fewer words of
1899 argument storage (e.g., if bfd_vma is long long on a 32-bit
1901 (print_insn_big_mips): Likewise with bfd_getb32 value.
1902 (_print_insn_mips): Now static.
1906 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
1907 gcc memory hog problem with initializer is fixed.
1912 * arc-opc.c (NULL): Define.
1913 (arc_operands, insn fields u,s): Delete.
1914 (arc_operands, insn fields a,b,c): Mark as signed.
1915 (arc_opcodes): No longer const, links computed at run-time.
1916 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
1917 suffixes that affect the insn code.
1918 (arc_opcodes): Resort table to macros are first.
1919 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
1920 (arc_opcodes, st [b] entry): Likewise.
1921 (arc_opcodes, st [b,d] entry): Fix mask, value.
1922 (arc_reg_names): Add entries for r29, r30, r31, r60.
1923 (opcode_map, icode_map): New static globals.
1924 (arc_opcode_init_tables): Initialize them.
1925 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
1926 (insert_shimmoffset): Signal error if register present.
1928 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
1933 Merge in support for Mac MPW as a host.
1934 (Old change descriptions retained for informational value.)
1936 * mpw-config.in (archname): Compute from the config.
1937 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
1939 * mpw-config.in (target_arch): Compute from canonical target.
1940 (m68k, mips, powerpc, sparc): Add architectures.
1941 * mpw-make.in (disassemble.c.o): Add.
1942 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
1944 * mpw-config.in (BFD_MACHINES): Set to a default value.
1945 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
1947 * mpw-make.in (CSEARCH): Add extra-include to search path.
1949 * mpw-config.in (varargs.h): Don't create.
1950 (sysdep.h): Create using forward-include.
1951 * mpw-make.in (CSEARCH): Add include/mpw to search path.
1953 * mpw-config.in: New file, MPW version of configure.in.
1954 * mpw-make.in: New file, MPW version of Makefile.in.
1959 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
1960 Call arc_get_opcode_mach to map bfd mach number to opcode value.
1961 (print_insn_*): Pass bfd mach number, not opcode version.
1962 * arc-opc.c (arc_get_opcode_mach): New function.
1967 * alpha-dis.c (print_insn_alpha): Put empty statement after
1972 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
1973 (low_sign_extend): Likewise.
1974 (get_field): Delete unused function.
1975 (set_field, deposit_14, deposit_21): Likewise.
1979 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
1986 * alpha-opc.h (OSF_ASMCODE): define
1987 print pal-code names as defined in App C of the
1988 Alpha Architecture Reference Manual
1990 * alpha-dis.c: cleaned up output
1991 print stylized code forms as defined in App A.4.3 of the
1992 Alpha Architecture Reference Manual
1996 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
1998 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
2003 * m68k-dis.c (opcode): New function. Returns address of opcode
2004 table entry given index, even if the opcode table was split to
2005 work around gcc bugs.
2006 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
2008 (BREAK_UP_BIG_DECL): Make secondary array static and const.
2009 (reg_names): Now const.
2010 (print_insn_arg): Arrays cacheFieldName and names now const.
2011 (print_indexed): Array scales now const.
2016 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
2017 (print_insn_arc_{host,graphics,audio}): Likewise.
2018 (print_insn): Add prototype.
2019 (arc_get_disassembler): New arg `big_p'. Return little or big
2020 print fn accordingly.
2021 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
2022 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
2023 (arc_opval_supported): Likewise.
2024 * disassemble.c (disassembler): Pass big endian flag to
2025 arc_get_disassembler.
2030 * ppc-opc.c: Sort recently added instructions by minor opcode
2031 number within major opcode number.
2035 * hppa-dis.c: Include libhppa.h.
2039 * mips-opc.c: Change dli to use M_DLI, and add dla.
2043 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
2048 * arc-dis.c (arc_get_disassembler): Change argument to int,
2049 one of bfd_mach_arc_xxx. All callers updated.
2054 * mips-opc.c: Add r4650 mul instruction.
2058 * mips-opc.c: Add uld and usd macros for unaligned double load and
2063 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
2064 mfdcr, mtdcr, icbt, iccci.
2069 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
2070 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
2071 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
2072 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
2073 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
2074 (insert_absaddr): New function.
2078 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
2079 New argument `cpu', pass it to arc_opcode_init_tables.
2080 Document byte order dependencies. Ignore unsupported insns.
2081 (arc_get_disassembler): New function.
2082 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
2083 print_insn_arc_audio): New functions.
2084 * arc-opc.c (MULTSHIFT operand): Delete.
2085 (UNSIGNED, SATURATION): New operands.
2086 (mac, mul, mul64, mulu64): New insns.
2087 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
2088 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
2089 (host,graphics,audio extended and auxiliary regs): Define.
2090 (ss, sc, mh, ml): New suffixes.
2091 (arc_opcode_supported, arc_opval_supported): New functions.
2092 (insert_multshift, extract_multshift): Deleted.
2093 * disassemble.c (disassembler, case bfd_arch_arc): Call
2094 arc_get_disassembler to get disassembler routine.
2099 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
2100 signed char fields to shorts, more portable.
2104 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
2105 char fields as signed chars, since they may have negative values.
2109 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
2115 * ppc-opc.c (extract_bdm): Correct parenthezisation.
2116 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
2121 * ppc-opc.c: Changes based on patch from David Edelsohn
2123 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
2126 (insert_tbr): New static function.
2127 (extract_tbr): New static function.
2128 (XFXFXM_MASK, XFXM): Define.
2129 (XSPRBAT_MASK, XSPRG_MASK): Define.
2130 (powerpc_opcodes): Add instructions to access special registers by
2131 name. Add mtcr and mftbu.
2135 * mips-opc.c (P3): Define.
2136 (mips_opcodes): Add mad and madu.
2138 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
2140 * configure.in: Add W65 support.
2141 * disassemble.c: Likewise.
2142 * w65-opc.h, w65-dis.c: New files.
2146 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
2152 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
2154 * arc-opc.c (extract_reladdr): New function.
2155 (insert_reladdr): Store address right-shifted by 2.
2160 * mips-opc.c: Add dli as a synonym for li.
2165 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
2167 (extraction fns): Insn argument now array of two words. Return pointer
2168 to value's table entry. All uses changed.
2169 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
2170 (insert_multshift, extract_multshift): New fns.
2171 (arc_operands): Add support for cache bypass suffix. Add support for
2172 predefined aux regs. Modifier bits moved to flags field.
2173 (arc_opcodes): Likewise.
2174 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
2175 New insn rlc. Update to syntax in programmer's manual.
2176 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
2177 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
2179 (arc_opcode_init_tables): New argument to indicate cpu type.
2180 (insert_reg): Handle predefined aux regs.
2181 (extract_reg): Likewise.
2182 (lookup_register): New fn.
2183 * arc-dis.c (arc_condition_codes): Deleted.
2184 (print_insn_arc): Handle insns with 32 bit immediate constants better.
2185 Clean up modifier handling. Handle predefined aux regs.
2190 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
2191 print something for reserved opcode values, even if it won't
2194 * mips-dis.c (_print_insn_mips): When initializing, shift right
2195 and mask, to avoid sign extension problems on the Alpha.
2197 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
2203 * configure.in: Add ARC support.
2204 * disassemble.c: Likewise.
2205 * arc-dis.c, arc-opc.c: New files.
2210 * sh-opc.h (mov.l gbr): Get direction right.
2211 * sh-dis.c (print_insn_shx): New function.
2212 (print_insn_shl, print_insn_sh): Call print_insn_shx to
2213 print opcodes with right byte order.
2217 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
2218 to avoid conflicts with getopt.
2222 * hppa-dis.c (print_insn_hppa): Read the instruction using
2223 bfd_getb32, so that it works on a little endian or 64 bit host.
2224 Remove unused local variable op.
2228 * mips-opc.c: Use or instead of addu for pseudo-op move, since
2229 addu does not work correctly if -mips3.
2233 * a29k-dis.c (print_special): Add special register names defined
2234 on 29030, 29040 and 29050.
2235 (print_insn): Handle new operand type 'I'.
2239 * Makefile.in (INSTALL): Use top level install.sh script.
2243 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
2244 that it works on a little endian host.
2248 * configure.in: Use ${config_shell} when running config.bfd.
2252 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
2256 * a29k-dis.c (print_insn): Print the opcode.
2260 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
2264 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
2268 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
2269 which store a value into memory.
2273 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
2274 * arm-dis.c, arm-opc.h: New files.
2278 * Makefile.in (ns32k-dis.o): Add dependency.
2279 * ns32k-dis.c (print_insn_arg): Declare initialized local as
2280 string, not as array of chars.
2284 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
2286 * sparc-opc.c: Added sparclite extended FP operations, and
2287 versions of v9 impdep* instructions permitting specification of
2292 * i960-dis.c (reg_names): Now const.
2293 (struct sparse_tabent): New type, copied from array type in mem
2295 (ctrl): Local static array ctrl_tab now const.
2296 (cobr): Local static array cobr_tab now const.
2297 (mem): Local variables reg1, reg2, reg3 now point to const. Local
2298 static variable mem_tab no longer explicitly initialized. Changed
2299 mem_init to const array of struct sparse_tabent.
2300 (reg): Local static variable reg_tab no longer explicitly
2301 initialized. Changed reg_init to const array of struct
2303 (ea): Local static array scale_tab now const.
2305 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
2310 * configure.bat: the disassember needs to be enabled for
2311 "objdump -d" to work in djgpp.
2315 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
2316 (invalid_float): Enabled general version, doesn't require running
2317 on ns32k host. Changed to take char* argument, and test for
2318 explicitly specified sizes, instead of using sizeof() on host CPU
2320 (INVALID_FLOAT): Cast first argument.
2321 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
2322 list_P032, list_M032): Now const.
2323 (optlist, list_search): Made appropriate arguments now point to
2325 (print_insn_arg): Changed static array of one-character-string
2326 pointers into a static const array of characters; fixed sprintf
2327 statement accordingly.
2331 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
2332 from distribution. A ns32k-dis.c from a previous distribution has
2333 been brought up to date and supports the new interface.
2335 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
2337 * configure.in: add bfd_ns32k_arch target support.
2339 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
2340 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
2344 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
2349 * h8300-dis.c, mips-dis.c: Don't use true and false.
2353 * configure.in: Change --with-targets to --enable-targets.
2357 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
2358 opcodes to the first instruction with that opcode, to speed
2364 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
2368 * configure.bat: update to latest makefile.in
2372 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
2373 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
2374 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
2375 slot insn is in a delay slot.
2376 * z8k-opc.h: (resflg): Fix patterns.
2377 * h8500-opc.h Fix CR insn patterns.
2381 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
2382 "cmpl" before POWER versions, so that gas -many uses them.
2386 * disassemble.c: New file.
2387 * Makefile.in (OFILES): Add disassemble.o.
2388 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
2389 * configure.in: Define ARCHDEFS in Makefile. Code taken from
2390 binutils/configure.in.
2392 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
2393 opcode being examined.
2397 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
2398 (insert_ral, insert_ram, insert_ras): New functions.
2399 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
2400 RAS for store with update.
2404 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
2409 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
2414 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
2418 * ppc-opc.c (powerpc_operands): The signedp field has been
2419 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
2420 instead. Add new operand SISIGNOPT.
2421 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
2423 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
2428 * i386-dis.c (struct private): Renamed to dis_private. `private'
2429 is a reserved word for dynix cc.
2433 * configure.in: Change error message to refer to bfd/config.bfd
2434 rather than bfd/configure.in.
2438 * ppc-opc.c: Define POWER2 as short alias flag.
2439 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
2444 * i960-dis.c (print_insn_i960): Don't read a second word for
2445 opcodes 0, 1, 2 and 3.
2449 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
2453 * m68881-ext.c: Removed; no longer used.
2454 * Makefile.in: Changed accordingly.
2456 * m68k-dis.c (ext_format_68881): Don't declare.
2457 (print_insn_m68k): If an instruction uses place 'i', it uses at
2458 least four fixed bytes.
2459 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
2460 extended float, convert to double using floatformat_to_double, not
2461 ieee_extended_to_double, and fetch the data before converting it.
2465 * mips-opc.c: It's sqrt.s, not sqrt.w. From
2470 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
2471 PowerPC uses bdnz[l][a].
2475 * dis-buf.c, i386-dis.c: Include sysdep.h.
2479 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
2481 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
2482 by Motorola PowerPC 601 with PPC_OPCODE_601.
2483 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
2484 Disassemble Motorola PowerPC 601 instructions as well as normal
2485 PowerPC instructions.
2489 * i960-dis.c (reg, mem): Just use a static array instead of
2494 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
2495 condition name index if this is for a negated condition.
2497 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
2498 Floating point format for 'H' operand is backwards from normal
2499 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
2500 operands (fmpyadd and fmpysub), handle bizarre register
2501 translation correctly for single precision format.
2503 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
2504 or 'I' operands if the next format specifier is 'M' (fcmp
2505 condition completer).
2509 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
2510 single number giving a bitmask for the MB and ME fields of an M
2511 form instruction. Change NB to accept 32, and turn it into 0;
2512 also turn 0 into 32 when disassembling. Seperated SH from NB.
2513 (insert_mbe, extract_mbe): New functions.
2514 (insert_nb, extract_nb): New functions.
2515 (SC_MASK): Mask out SA and LK bits.
2516 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
2517 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
2518 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
2519 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
2520 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
2521 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
2522 (powerpc_macros): Define table of macro definitions.
2523 (powerpc_num_macros): Define.
2525 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
2526 if PPC_OPERAND_NEXT is set.
2530 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
2531 char. Retrieve contents using bfd_getl32 instead of shifting.
2535 * ppc-opc.c: New file. Opcode table for PowerPC, including
2536 opcodes for POWER (RS/6000).
2537 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
2538 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
2539 (CFILES): Add ppc-dis.c.
2540 (ppc-dis.o, ppc-opc.o): New targets.
2541 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
2545 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
2546 No space before 'u', 'f', or 'N'.
2550 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
2551 farther than we should.
2553 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
2557 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
2561 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
2562 needs it, to prevent reading past the end of a section.
2566 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
2567 Removed t,A case for la; always use t,A(b) case.
2572 * mips-dis.c (print_insn_arg): Handle 'k'.
2573 * mips-opc.c: Make cache use k, not t.
2577 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
2578 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
2579 FLOAT_FORMAT_CODE to put out floating point register names.
2583 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
2587 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
2591 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
2592 larger than 32. Moved dsxx32 variants first for disassembler.
2596 * z8kgen.c, z8k-opc.h: Add full lda information.
2600 * hppa-dis.c (print_insn_hppa): Do not emit a space after
2601 movb instructions. Any necessary space will be emitted by
2602 the code to handle nullification completers.
2606 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
2610 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
2611 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
2615 * mips-opc.c: Correct lwu opcode value (book had it wrong).
2619 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
2620 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
2624 * m88k-dis.c (m88kdis): comment change. Remove space after
2626 (printop): handle new arg types DEC and XREG for m88110.
2630 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
2631 type for absolute branch addresses. Delete special
2632 "ble" and "be" code in 'W' operand code.
2636 * mips-opc.c: Set hazard information correctly for branch
2637 likely instructions.
2641 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
2642 info->fprintf_func for printing and info->print_address_func for
2647 * mips-opc.c: Set INSN_TRAP for tXX instructions.
2652 Corrected second case of "b" for disassembler.
2656 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
2657 to BFD swapping routines to correspond to BFD name changes.
2661 * mips-opc.c: Change div machine instruction to be z,s,t rather
2662 than s,t. Change div macro to be d,v,t rather than d,s,t.
2663 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
2664 rem and remu which generates only the corresponding div
2665 instruction. This is for compatibility with the MIPS assembler,
2666 which only generates the simple machine instruction when an
2667 explicit destination of $0 is used.
2668 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
2673 WR_31 hazard for bal, bgezal, bltzal.
2677 * hppa-dis.c (print_insn_hppa): Use print function
2678 from within the disassemble_info, not fprintf_filtered.
2682 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
2687 * mips-opc.c ("absu"): Removed.
2692 * mips-opc.c: Added r6000 and r4000 instructions and macros.
2693 Changed hazard information to distinguish between memory load
2694 delays and coprocessor load delays.
2698 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
2702 * configure.in: Don't pass cpu to config.bfd.
2706 * m88k-dis.c (m88kdis): Make class unsigned.
2710 * alpha-dis.c (print_insn_alpha): One branch format case was
2711 missing the instruction name.
2715 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
2716 Add the arch-specific auxiliary files.
2717 (OFILES): Remove the arch-specific auxiliary files
2718 and use BFD_MACHINES instead of DIS_LIBS.
2719 * configure.in: Set BFD_MACHINES based on --with-targets option.
2723 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
2728 * sparc-opc.c: Change CONST to const to deal with gcc
2729 -Dconst=__const -traditional.
2734 coprocessor instructions out of #if 0, and made them use new
2739 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
2743 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
2744 instruction, for use by the disassembler.
2746 * sparc-dis.c (SEX): Add sign extension macro. Replace many
2747 hand-coded sign extensions that depended on 32-bit host ints.
2748 FIXME, we still depend on big-endian host bitfield ordering.
2749 (sparc_print_insn): Set the insn_info_valid field, and the
2750 other fields that describe the instruction being printed.
2754 * sparc-opc.c (call): Accept all 6 addressing modes valid for
2755 `jmp' instead of just one of them.
2759 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
2760 (fput_fp_reg_r): Renamed from fput_reg_r.
2761 (fput_fp_reg): New function.
2762 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
2764 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
2766 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
2770 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
2772 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
2773 don't output a space.
2775 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
2779 * mips-opc.c: New file, containing opcode table from
2780 ../include/opcode/mips.h.
2781 * Makefile.in: Add it.
2785 * m88k-dis.c: New file, moved in from gdb and changed to use the
2786 new dis-asm.h disassembler interface.
2787 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
2788 (m88k-dis.o): New target.
2792 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
2793 argument string const char * to correspond to opcode/mips.h.
2797 * mips-dis.c: Updated to account for name changes in new version
2799 * Makefile.in: Added header file dependencies.
2803 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
2807 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
2808 extend, rather than shifts.
2812 * Makefile.in: Undo 15 June change.
2816 * m68k-dis.c (print_insn_arg): Change return value to byte count
2818 * m68k-dis.c: Re-write to detect invalid operands before
2819 printing anything, so we can handle this the same way we
2820 handle invalid opcodes.
2824 * sh-dis.c, sh-opc.h: Understand some more opcodes.
2828 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
2833 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
2835 * configure.in: Do make sysdep.h link.
2836 * Makefile.in: Search ../include. Don't search ../bfd.
2841 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
2842 Do not print a space before the completers specified by
2847 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
2848 defined, since gdb has been fixed.
2851 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
2852 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
2853 be a *disassemble_info, not a *FILE.
2854 * hppa-dis.c: Support 'd', '!', and 'a'.
2855 * hppa-dis.c: Support 's' to extract a 2 bit space register.
2856 * hppa-dis.c: Delete cases which are no longer needed.
2860 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
2864 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
2869 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
2870 * configure.in: No longer need to configure to get sysdep.h.
2875 * hppa-dis.c: Support 'I', 'J', and 'K' in output
2876 templates for 1.1 FP computational instructions.
2880 * h8500-dis.c (print_insn_h8500): Address argument is type
2882 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
2885 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
2886 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
2888 * sparc-dis.c (compare_opcodes): Move static declaration to
2893 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
2894 instruction, remove unimp hack from 'l' argument.
2898 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
2904 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
2909 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
2910 arrays of string pointers to 2-d arrays of chars, to save
2915 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
2916 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
2920 * hppa-dis.c: New file from Utah, adapted to new disassembler
2922 * Makefile.in: Include it.
2926 * sh-dis.c, sh-opc.h: New files.
2930 * alpha-dis.c, alpha-opc.h: New files.
2934 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
2939 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
2943 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
2948 * sparc-dis.c: Use fprintf_func a few places where I forgot,
2949 and double percent signs a few places.
2951 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
2953 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
2954 Use info->print_address_func not print_address.
2956 * dis-buf.c (generic_print_address): New function.
2960 * Makefile.in: Add sparc-dis.c.
2961 sparc-dis.c: New file, merges binutils and gdb versions as follows:
2963 Add `add' instruction to the set that get checked
2964 for a preceding `sethi' in order to print an absolute address.
2965 * (print_insn): Disassembly prefers real instructions.
2966 (is_delayed_branch): Speed up.
2967 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
2968 Still missing some float ops, and needs testing.
2969 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
2970 F_ALIAS. Use printf, not fprintf, when not passing a file
2972 (compare_opcodes): Check that identical instructions have
2973 identical opcodes, complain otherwise.
2976 * Include reg_names.
2978 Use dis-asm.h/read_memory_func interface.
2982 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
2983 deliberately return non-zero to setjmp from longjmp. Otherwise
2984 this code fails to compile.
2988 * m68k-dis.c: Fix prototype for fetch_arg().
2992 * dis-buf.c: New file, for new read_memory_func interface.
2993 Makefile.in (OFILES): Include it.
2994 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
2995 Use new read_memory_func interface.
2999 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
3000 * h8500-opc.h: Fix couple of opcodes.
3002 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
3004 * Makefile.in: add dvi & installcheck targets
3008 * Makefile.in: Update for h8500-dis.c.
3012 * h8500-dis.c, h8500-opc.h: New files
3016 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
3017 ../include/dis-asm.h.
3018 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
3019 and ../gdb/m68k-pinsn.c).
3020 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
3021 and ../gdb/i386-pinsn.c).
3022 * m68881-ext.c: New file. Moved definition of
3023 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
3024 * Makefile.in: Adjust for new files.
3026 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
3027 can be dis-assembled.
3031 * mips-dis.c (print_insn_arg): Now returns void.
3035 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
3036 files that use the macros.
3040 * mips-dis.c: New file, from gdb/mips-pinsn.c.
3041 * Makefile.in (DIS_LIBS): Added mips-dis.o.
3042 (CFILES): Added mips-dis.c.
3046 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
3047 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
3051 * Makefile.in: Improve *clean rules.
3052 * configure.in: Allow a default host.
3054 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3056 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
3057 files include other sysdep files
3061 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
3065 * configure.in: For host support, use ../bfd/configure.host
3066 so it stays in sync with the ../bfd/hosts database.
3068 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
3070 * configure.in: use cpu-vendor-os triple instead of nested cases
3074 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
3075 *always* the wrong one.
3079 * z8kgen.c: added copyright info
3083 * z8k-dis.c (unparse_instr): prettier tabs
3084 * z8kgen.c -> z8k-opc.h: bug fixes in tables
3086 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
3088 * configure.in: Add ncr* configuration.
3089 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
3090 picayune ANSI compilers happy.
3094 * configure.in (i386): Make i386 and i486 synonymous for now.
3095 * configure.in (i[34]86-*-sysv4): Add my_host definition.
3099 * Makefile.in (install): Fix typo.
3103 * Makefile.in (make): Remove obsolete crud.
3104 (sparc-opc.o): Avoid Sun Make VPATH bug.
3108 * Makefile.in: since there are no SUBDIRS, remove rule and
3109 references of subdir_do.
3113 * Makefile.in (install): Get the library name right here too.
3114 Don't install bfd.h, since it's unrelated to this library. No
3115 subdirs to recurse into, either.
3116 (CFILES): The source file has a .c suffix, not .o.
3118 * sparc-opc.c: New file, moved from BFD.
3119 * Makefile.in (OFILES): Build it.
3123 * z8k-dis.c: fixed forward refferences of some declarations.
3127 * Makefile.in: get the name of the library right
3131 * z8k-dis.c: knows how to disassemble z8k stuff
3132 * z8k-opc.h: new file full of z8000 opcodes
3136 version-control: never