3 * m68k-opc.c (m68k_opcodes): add b, w, or l specifier to coldfire
4 move insns to handle immediate operands.
8 * m68k-opc.c (m68k_opcodes): Delete duplicate entry for "cmpil".
13 * tic80-opc.c (V_a, V_m, V_S, V_Z, V_p, OP_V, MASK_V):
14 New macros for building vector instruction opcodes.
15 (tic80_opcodes): Remove all uses of FMT_SI, FMT_REG, and
16 FMT_LI, which were unused. The field is now a flags field.
17 Remove some opcodes that are possible, but illegal, such
18 as long immediate instructions with doubles for immediate
19 values. Add "vadd" and "vld" instructions.
23 * tic80-opc.c (tic80_operands): Reorder some table entries to make
24 the order more logical. Move the shift alias instructions ("rotl",
25 "shl", "ins", "rotr", "extu", "exts", "srl", and "sra" to be
26 interspersed with the regular sr.x and sl.x instructions. Add
27 and test new instruction opcodes for "sl", "sli", "sr", "sri", "st",
28 "sub", "subu", "swcr", and "trap".
32 * tic80-opc.c (OFF_SS_PC): Renamed from OFF_SS.
33 (OFF_SL_PC): Renamed from OFF_SL.
34 (OFF_SS_BR): New operand type for base relative operand.
35 (OFF_SL_BR): New operand type for base relative operand.
36 (REG_BASE): New operand type for base register operand.
37 (tic80_opcodes): Add and test "fmpy", "frndm", "frndn", "frndp",
38 "frndz", "fsqrt", "fsub", "illop0", "illopF", "ins", "jsr",
39 "ld", "ld.u", "lmo", "or", "rdcr", "rmo", "rotl", and "rotr"
41 * tic80-dis.c (print_insn_tic80): Print opcode name with fixed width
42 10 char field, padded with spaces on rhs, rather than a string
43 followed by a tab. Use renamed TIC80_OPERAND_PCREL flag bit rather
44 than old TIC80_OPERAND_RELATIVE. Add support for new
45 TIC80_OPERAND_BASEREL flag bit.
49 * tic80-dis.c (print_insn_tic80): Print floating point operands
51 * tic80-opc.c (SPFI): Add single precision floating point
52 immediate operand type.
53 (ROTATE): Add rotate operand type for shifts.
54 (ENDMASK): Add for shifts.
55 (n): Macro for the 'n' bit.
56 (i): Macro for the 'i' bit.
57 (PD): Macro for the 'PD' field.
58 (P2): Macro for the 'P2' field.
59 (P1): Macro for the 'P1' field.
60 (tic80_opcodes): Add entries for "exts", "extu", "fadd",
66 * mn10200-dis.c (disassemble): Mask off unwanted bits after
67 adding in current address for pc-relative operands.
72 * tic80-dis.c (R_SCALED): Add macro to test for ":s" modifier bit.
73 (print_insn_tic80): If R_SCALED then print ":s" modifier for operand.
74 * tic80-opc.c (REG0, REG22, REG27, SSOFF, LSOFF): Names
75 changed to REG_0, REG_22, REG_DEST, OFF_SS, OFF_SL respectively.
76 (SICR, LICR, REGM_SI, REGM_LI): Names changed to CR_SI, CR_LI,
77 REG_BASE_M_SI, REG_BASE_M_LI respectively.
78 (REG_SCALED, LSI_SCALED): New operand types.
79 (E): New macro for 'E' bit at bit 27.
80 (tic80_opcodes): Add and test dld, dld.u, dst, estop, and etrap
81 opcodes, including the various size flavors (b,h,w,d) for
82 the direct load and store instructions.
86 * tic80-dis.c (M_SI, M_LI): Add macros to test for ":m" modifier bit
88 * tic80-dis.c (print_insn_tic80): Change comma and paren handling.
89 Use M_SI and M_LI macros to check for ":m" modifier for GPR operands.
90 * tic80-opc.c (tic80_operands): Add REGM_SI and REGM_LI operands.
91 (F, M_REG, M_LI, M_SI, SZ_REG, SZ_LI, SZ_SI, D, S): New bit-twiddlers.
92 (MASK_LI_M, MASK_SI_M, MASK_REG_M): Remove and replace in opcode
93 masks with "MASK_* & ~M_*" to get the M bit reset.
94 (tic80_opcodes): Add bsr, bsr.a, cmnd, cmp, dcachec, and dcachef.
98 * tic80-dis.c (print_insn_tic80): Print TIC80_OPERAND_RELATIVE
99 correctly. Add support for printing TIC80_OPERAND_BITNUM and
100 TIC80_OPERAND_CC, and TIC80_OPERAND_CR operands in symbolic
102 * tic80-opc.c (tic80_operands): Add SSOFF, LSOFF, BITNUM,
103 CC, SICR, and LICR table entries.
104 (tic80_opcodes): Add and test "nop", "br", "bbo", "bbz",
105 "bcnd", and "brcr" opcodes.
110 * ppc-opc.c (powerpc_operands): Make comment match the
111 actual fields (no shift field).
112 * sparc-opc.c (sparc_opcodes): Document why this cannot be "const".
114 * tic80-dis.c (print_insn_tic80): Replace abort stub with a
115 partial implementation, work in progress.
116 * tic80-opc.c (tic80_operands): Begin construction operands table.
117 (tic80_opcodes): Continue populating opcodes table and start
118 filling in the operand indices.
119 (tic80_num_opcodes): Add this.
124 * m68k-opc.c: Add #B case for moveq.
128 * mn10300-dis.c (disassemble): Make sure all variables are initialized
129 before they are used.
134 * v850-opc.c (v850_opcodes): Put curly-braces around operands
135 for "breakpoint" instruction.
140 * Makefile.in (ALL_CFLAGS): Add -D_GNU_SOURCE.
141 (dep): Use ALL_CFLAGS rather than CFLAGS.
146 * v850-opc.c (D8_{6,7}): Set V850_OPERAND_ADJUST_SHORT_MEMORY
152 * Makefile.in (m68k-opc.o, alpha-opc.o): Remove dis-asm.h dependency.
154 (tic80-dis.o, tic80-opc.o): Add rules per comment in Makefile.in.
159 * mips16-opc.c: Add "abs".
164 * Makefile.in (ALL_MACHINES): Add tic80-dis.o and tic80-opc.o.
165 * disassemble.c (ARCH_tic80): Define if ARCH_all is defined.
166 (disassembler): Add bfd_arch_tic80 support to set disassemble
168 * tic80-dis.c (print_insn_tic80): Add stub.
172 * configure.in (arch in $selarchs): Add bfd_tic80_arch entry.
173 * configure: Regenerate with autoconf.
174 * tic80-dis.c: Add file.
175 * tic80-opc.c: Add file.
181 * d10v-opc.c (pre_defined_registers): Add cr[0-15], dpc, dpsw, link.
186 * mn10200-opc.c (mn10200_operands): Add SIMM16N.
187 (mn10200_opcodes): Use it for some logicals and btst insns.
188 Add "break" and "trap" instructions.
190 * mn10300-opc.c (mn10300_opcodes): Add "break" instruction.
192 * mn10200-opc.c: Add pseudo-ops for "mov (an),am" and "mov an,(am)".
196 * mips-dis.c (print_mips16_insn_arg): The base address of a PC
197 relative load or add now depends upon whether the instruction is
202 * mn10200-dis.c: Finish writing disassembler.
203 * mn10200-opc.c (mn10200_opcodes): Fix mask for "mov imm8,dn".
204 Fix mask for "jmp (an)".
206 * mn10300-dis.c (disassemble, print_insn_mn10300): Corrently
207 handle endianness issues for mn10300.
209 * mn10200-opc.c (mn10200_opcodes): Fix operands for "movb dm,(an)".
213 * mn10200-opc.c (mn10200_opcodes): "mov imm8,d0" is a format 2
214 instruction. Fix opcode field for "movb (imm24),dn".
216 * mn10200-opc.c (mn10200_operands): Fix insertion position
221 * mn10200-opc.c: Create mn10200 opcode table.
222 * mn10200-dis.c: Flesh out mn10200 disassembler. Not ready,
223 but moving along nicely.
227 * Makefile.in (ALL_MACHINES): Add mips16-opc.o.
231 * m68k-opc.c (m68k_opcodes): Revert change to use < and >
232 specifiers for fmovem* instructions.
236 * mn10300-dis.c (disassemble): Remove '$' register prefixing.
240 * mips16-opc.c: Change opcode for entry/exit to avoid conflicting
245 * mn10300-opc.c: Add some comments explaining the various
248 * mn10300-dis.c (disassemble): Fix minor gcc -Wall warnings.
252 * m68k-dis.c (print_insn_arg): Handle new < and > operand
255 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
256 operand specifiers in fmovm* instructions.
260 * ppc-opc.c (insert_li): Give an error if the offset has the two
261 least significant bits set.
265 * mips-dis.c (print_insn_mips16): Separate the instruction from
266 the arguments with a tab, not a space.
270 * mn10300-dis.c (disasemble): Finish conversion to '$' as
273 * mn10300-opc.c (mn10300_opcodes): Fix mask field for
278 * configure: Rebuild with autoconf 2.12.
280 Add support for mips16 (16 bit MIPS implementation):
281 * mips16-opc.c: New file.
282 * mips-dis.c: Include "elf-bfd.h" and "elf/mips.h".
283 (mips16_reg_names): New static array.
284 (print_insn_big_mips): Use print_insn_mips16 in 16 bit mode or
285 after seeing a 16 bit symbol.
286 (print_insn_little_mips): Likewise.
287 (print_insn_mips16): New static function.
288 (print_mips16_insn_arg): New static function.
289 * mips-opc.c: Add jalx instruction.
290 * Makefile.in (mips16-opc.o): New target.
291 * configure.in: Use mips16-opc.o for bfd_mips_arch.
292 * configure: Rebuild.
296 * m68k-opc.c (m68k_opcodes): Simplify table by using < and >
297 operand specifiers in *save, *restore and movem* instructions.
299 * m68k-opc.c (m68k_opcodes): Fix move and movem instructions for
302 * m68k-opc.c (m68k_opcodes): The coldfire (mcf5200) can only use
303 register operands for immediate arithmetic, not, neg, negx, and
304 set according to condition instructions.
306 * m68k-opc.c (m68k_opcodes): Consistantly Use "s" as the storage
307 specifier of the effective-address operand in immediate forms of
308 arithmetic instructions. The specifier for the immediate operand
309 notes how and where the constant will be stored.
313 * mn10300-opc.c (mn10300_opcodes): Remove redundant "lcc"
316 * mn10300-dis.c (disassemble): Use '$' instead of '%' for
319 * mn10300-dis.c (disassemble): Prefix registers with '%'.
323 * mn10300-dis.c (disassemble): Handle register lists.
325 * mn10300-opc.c: Fix handling of register list operand for
326 "call", "ret", and "rets" instructions.
328 * mn10300-dis.c (disassemble): Print PC-relative and memory
329 addresses symbolically if possible.
330 * mn10300-opc.c: Distinguish between absolute memory addresses,
331 pc-relative offsets & random immediates.
333 * mn10300-dis.c (print_insn_mn10300): Fix fetch of last byte
335 (disassemble): Handle SPLIT and EXTENDED operands.
339 * mn10300-dis.c: Rough cut at printing some operands.
341 * mn10300-dis.c: Start working on disassembler support.
342 * mn10300-opc.c (mn10300_opcodes): Fix masks on several insns.
344 * mn10300-opc.c (mn10300_operands): Add "REGS" for a register
346 (mn10300_opcodes): Use REGS for register list in "movm" instructions.
351 * d10v-opc.c (d10v_opcodes): Add3 sets the carry.
356 * mn10300-opc.c (mn10300_opcodes): Demand parens around
357 register argument is calls and jmp instructions.
361 * mn10300-opc.c (mn10300_opcodes): Use DN01 for putx and
362 getx operand. Fix opcode for mulqu imm,dn.
366 * mn10300-opc.c (mn10300_operands): Hijack "bits" field
367 in MN10300_OPERAND_SPLIT operands for how many bits
368 appear in the basic insn word. Add IMM32_HIGH24,
369 IMM32_HIGH24_LOWSHIFT8, IMM8E_SHIFT8.
370 (mn10300_opcodes): Use new operands as needed.
372 * mn10300-opc.c (mn10300_operands): Add IMM32_LOWSHIFT8
373 for bset, bclr, btst instructions.
374 (mn10300_opcodes): Use new IMM32_LOWSHIFT8 as needed.
376 * mn10300-opc.c (mn10300_operands): Remove many redundant
377 operands. Update opcode table as appropriate.
378 (IMM32): Add MN10300_OPERAND_SPLIT flag.
379 (mn10300_opcodes): Fix single bit error in mov imm32,dn insn.
383 * mn10300-opc.c (mn10300_operands): Add DN2, DM2, AN2, AM2
384 operands (for indexed load/stores). Fix bitpos for DI
385 operand. Add SN8N_SHIFT8, IMM8_SHIFT8, and D16_SHIFT for the
386 few instructions that insert immediates/displacements in the
387 middle of the instruction. Add IMM8E for 8 bit immediate in
388 the extended part of an instruction.
389 (mn10300_operands): Use new opcodes as appropriate.
394 * d10v-opc.c (d10v_opcodes): Declare the trap instruction
395 sequential so the assembler never parallelizes it with
401 * mn10300-opc.c (mn10300_operands): Add DN01 and AN01 for
402 a data/address register that appears in register field 0
403 and register field 1.
404 (mn10300_opcodes): Use DN01 and AN01 for mov/cmp imm8,DN/AN
408 * alpha-dis.c (print_insn_alpha): Use new NOPAL mask for
409 standard disassembly.
411 * alpha-opc.c (alpha_operands): Rearrange flags slot.
412 (alpha_opcodes): Add new BWX, CIX, and MAX instructions.
413 Recategorize PALcode instructions.
418 * v850-opc.c (v850_opcodes): Add relaxing "jbr".
423 * mips-dis.c (_print_insn_mips): Don't print a trailing tab if
424 there are no operand types.
429 * v850-opc.c (D9_RELAX): Renamed from D9, all references
431 (v850_operands): Make sure D22 immediately follows D9_RELAX.
436 * i386-dis.c (print_insn_x86): Set info->bytes_per_line to 5.
441 * v850-opc.c (insert_d8_6): Fix operand insertion for sld.w
442 and sst.w instructions.
444 * v850-opc.c (v850_opcodes): Add "jCC" instructions (aliases for
450 * mips-dis.c (_print_insn_mips): Use a tab between the instruction
455 * ppc-opc.c (PPCPWR2): Define.
456 (powerpc_opcodes): Use PPCPWR2 for fsqrt, rather than duplicating
461 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode
462 field for movhu instruction.
465 * v850-dis.c (disassemble): For V850_OPERAND_SIGNED operands,
466 cast value to "long" not "signed long" to keep hpux10
472 * mn10300-opc.c (mn10300_opcodes): Fix typo in opcode field
475 * mn10300-opc.c (FMT*): Remove definitions.
477 * mn10300-opc.c (mn10300_opcodes): Fix destination register
478 for shift-by-register opcodes.
480 * mn10300-opc.c (mn10300_operands): Break DN, DM, AN, AM
481 into [AD][MN][01] for encoding the position of the register
486 * mn10300-opc.c (mn10300_opcodes): Add "extended" instructions,
487 "putx", "getx", "mulq", "mulqu", "sat16", "sat24", "bsch".
491 * mn10300-opc.c (mn10300_operands): Remove "REGS" operand.
492 Fix various typos. Add "PAREN" operand.
494 (mn10300_opcodes): Surround all memory addresses with "PAREN"
495 operands. Fix several typos.
497 * mn10300-opc.c (mn10300_opcodes): Fix typos in yesterday's
502 * mn10300-opc.c (FMT_XX): Renumber starting at one.
503 (mn10300_operands): Rough cut. Enough to parse "mov" instructions
505 (mn10300_opcodes): Break opcode format out into its own field.
506 Update many operand fields to deal with signed vs unsigned
507 issues. Fix one or two typos in the "mov" instruction
508 opcode, mask and/or operand fields.
512 * m68k-opc.c (plusha): Prefer encoding for m68040up, in case
517 * mn10300-opc.c (mn10300_opcodes): Add opcode & masks for
518 all opcodes. Very rough cut at operands for all opcodes.
520 * mn10300-opc.c (mn10300_opcodes): Start fleshing out the
525 * mn10200-opc.c, mn10300-opc.c: New files.
526 * mn10200-dis.c, mn10300-dis.c: New files.
527 * mn10x00-opc.c, mn10x00-dis.c: Deleted.
528 * disassemble.c: Break mn10x00 support into 10200 and 10300
530 * configure.in: Likewise.
531 * configure: Rebuilt.
535 * Makefile.in (MOSTLYCLEAN): Move config.log to distclean.
539 * mn10x00-opc.c, mn10x00-dis.c: New files for Matsushita
541 * disassemble (ARCH_mn10x00): Define.
542 (disassembler): Handle bfd_arch_mn10x00.
543 * configure.in: Recognize bfd_mn10x00_arch.
544 * configure: Rebuilt.
548 * i386-dis.c (op_rtn): Change to be a pointer. Adjust uses
549 accordingly. Don't declare functions using op_rtn.
554 * v850-dis.c (disassemble): Add memaddr argument. Re-arrange
555 params to be more standard.
556 * (disassemble): Print absolute addresses and symbolic names for
557 branch and jump targets.
558 * v850-opc.c (v850_operand): Add displacement flag to 9 and 22
560 * (v850_opcodes): Add breakpoint insn.
565 * m68k-opc.c: Move the fmovemx data register cases before the
566 other cases, so that they get recognized before the data register
567 does gets treated as a degenerate register list.
571 * mips-opc.c: Add a case for "div" and "divu" with two registers
572 and a destination of $0.
576 * mips-dis.c (print_insn_arg): Add prototype.
577 (_print_insn_mips): Ditto.
581 * mips-dis.c (print_insn_arg): Print condition code registers as
586 * sparc-opc.c (sparc_opcodes): Add setuw, setsw, setx.
591 * v850-dis.c (disassemble): Make static. Provide prototype.
595 * v850-opc.c (insert_d9, insert_d22): Fix boundary case
600 * v850-dis.c (disassemble): Handle insertion of ',', '[' and
601 ']' characters into the output stream.
602 * v850-opc.c (v850_opcodes: Remove size field from all opcodes.
603 Add "memop" field to all opcodes (for the disassembler).
604 Reorder opcodes so that "nop" comes before "mov" and "jr"
607 * v850-dis.c (print_insn_v850): Fix typo in last change.
609 * v850-dis.c (print_insn_v850): Properly handle disassembling
610 a two byte insn at the end of a memory region when the memory
611 region's size is only two byte aligned.
613 * v850-dis.c (v850_cc_names): Fix stupid thinkos.
615 * v850-dis.c (v850_reg_names): Define.
616 (v850_sreg_names, v850_cc_names): Likewise.
617 (disassemble): Very rough cut at printing operands (unformatted).
619 * v850-opc.c (BOP_MASK): Fix.
620 (v850_opcodes): Fix mask for jarl and jr.
622 * v850-dis.c: New file. Skeleton for disassembler support.
623 * Makefile.in Remove v850 references, they're not needed here
624 and they weren't being sanitized away.
625 * configure.in: Add v850-dis.o when building v850 toolchains.
626 * configure: Rebuilt.
627 * disassemble.c (disassembler): Call v850 disassembler.
629 * v850-opc.c (insert_d8_7, extract_d8_7): New functions.
630 (insert_d8_6, extract_d8_6): New functions.
631 (v850_operands): Rename D7S to D7; operand for D7 is unsigned.
632 Rename D8 to D8_7, use {insert,extract}_d8_7 routines.
634 (IF4A, IF4B): Use "D7" instead of "D7S".
635 (IF4C, IF4D): Use "D8_7" instead of "D8".
636 (IF4E, IF4F): New. Use "D8_6".
637 (v850_opcodes): Use IF4A/IF4B for sld.b/sst.b. Use IF4C/IF4D for
638 sld.h/sst.h. Use IF4E/IF4F for sld.w/sst.w.
640 * v850-opc.c (insert_d16_15, extract_d16_15): New functions.
641 (v850_operands): Change D16 to D16_15, use special insert/extract
642 routines. New new D16 that uses the generic insert/extract code.
643 (IF7A, IF7B): Use D16_15.
644 (IF7C, IF7D): New. Use D16.
645 (v850_opcodes): Use IF7C and IF7D for ld.b and st.b.
647 * v850-opc.c (insert_d9, insert_d22): Slightly improve error
648 message. Issue an error if the branch offset is odd.
650 * v850-opc.c: Add notes about needing special insert/extract
651 for all the load/store insns, except "ld.b" and "st.b".
653 * v850-opc.c (insert_d22, extract_d22): New functions.
654 (v850_operands): Use insert_d22 and extract_d22 for
656 (insert_d9): Fix range check.
660 * v850-opc.c (v850_operands): Add V850_OPERAND_SIGNED flag
661 and set bits field to D9 and D22 operands.
665 * v850-opc.c (v850_operands): Define SR2 operand.
666 (v850_opcodes): "ldsr" uses R1,SR2.
668 * v850-opc.c (v850_opcodes): Fix opcode specs for
669 sld.w, sst.b, sst.h, sst.w, and nop.
673 * v850-opc.c (v850_opcodes): Add null opcode to mark the
674 end of the opcode table.
680 * d10v-opc.c (pre_defined_registers): Added register pairs,
681 "r0-r1", "r2-r3", etc.
687 * v850-opc.c (v850_operands): Make I16 be a signed operand.
688 Create I16U for an unsigned 16bit mmediate operand.
689 (v850_opcodes): Use I16U for "ori", "andi" and "xori".
691 * v850-opc.c (v850_operands): Define EP operand.
692 (IF4A, IF4B, IF4C, IF4D): Use EP.
694 * v850-opc.c (v850_opcodes): Fix opcode numbers for "mov"
695 with immediate operand, "movhi". Tweak "ldsr".
697 * v850-opc.c (v850_opcodes): Get ld.[bhw] and st.[bhw]
698 correct. Get sld.[bhw] and sst.[bhw] closer.
700 * v850-opc.c (v850_operands): "not" is a two byte insn
702 * v850-opc.c (v850_opcodes): Correct bit pattern for setf.
704 * v850-opc.c (v850_operands): D16 inserts at offset 16!
706 * v850-opc.c (two): Get order of words correct.
708 * v850-opc.c (v850_operands): I16 inserts at offset 16!
710 * v850-opc.c (v850_operands): Add "SR1" and "SR2" for system
711 register source and destination operands.
712 (v850_opcodes): Use SR1 and SR2 for "ldsr" and "stsr".
714 * v850-opc.c (v850_opcodes): Fix thinko in "jmp" opcode. Fix
715 same thinko in "trap" opcode.
717 * v850-opc.c (v850_opcodes): Add initializer for size field
720 * v850-opc.c (v850_operands): D6 -> DS7. References changed.
721 Add D8 for 8-bit unsigned field in short load/store insns.
722 (IF4A, IF4D): These both need two registers.
723 (IF4C, IF4D): Define. Use 8-bit unsigned field.
724 (v850_opcodes): For "sld.h", "sld.w", "sst.h", "sst.w", use
725 IF4C & IF4D. For "trap" use I5U, not I5. Add IF1 operand
726 for "ldsr" and "stsr".
727 * v850-opc.c (v850_operands): 3-bit immediate for bit insns
730 * v850-opc.c (v850_opcodes): Correct short store half (sst.h) and
731 short store word (sst.w).
735 * v850-opc.c (v850_operands): Added insert and extract fields,
736 pointers to functions that handle unusual operand encodings.
740 * v850-opc.c (v850_opcodes): Enable "trap".
742 * v850-opc.c (v850_opcodes): Fix order of displacement
743 and register for "set1", "clr1", "not1", and "tst1".
747 * v850-opc.c (v850_operands): Add "B3" support.
748 (v850_opcodes): Fix and enable "set1", "clr1", "not1"
751 * v850-opc.c (v850_opcodes): "jmp" has only an R1 operand.
753 * v850-opc.c: Close unterminated comment.
757 * v850-opc.c (v850_operands): Add flags field.
758 (v850_opcodes): add move opcodes.
762 * Makefile.in (ALL_MACHINES): Add v850-opc.o.
763 * configure: (bfd_v850v_arch) Add new case.
764 * configure.in: (bfd_v850_arch) Add new case.
765 * v850-opc.c: New file.
770 * sparc-dis.c (print_insn_sparc): Handle little endian sparcs.
775 * d10v-opc.c: Add additional information to the opcode
776 table to help determinine which instructions can be done
782 * mpw-make.sed: Update editing of include pathnames to be
787 * arm-opc.h: Added "bx" instruction definition.
791 * alpha-opc.c (EV4EXTHWINDEX): Field width should be 8 not 5.
796 * d10v-opc.c (d10v_opcodes): Minor fixes to addi and bl.l.
800 * d10v-opc.c (d10v_opcodes): Correct 'mv' unit entry to EITHER.
805 * makefile.vms: Update for alpha-opc changes.
809 * i386-dis.c (print_insn_i386): Actually return the correct value.
810 (ONE, OP_ONE): #ifdef out; not used.
815 * d10v-opc.c (d10v_opcodes): Added 2 accumulator sub instructions.
816 Changed subi operand type to treat 0 as 16.
821 * m68k-opc.c: Add cpushl for the mcf5200. From Ken Rose
826 * arm-opc.h: (arm_opcodes): Added halfword and sign-extension
827 memory transfer instructions. Add new format string entries %h and %s.
828 * arm-dis.c: (print_insn_arm): Provide decoding of the new
834 * d10v-opc.c (d10v_operands): Added UNUM4S; a 4-bit accumulator shift.
835 (d10v_opcodes): Modified accumulator shift instructions to use UNUM4S.
840 * alpha-dis.c (print_insn_alpha_osf): Remove.
841 (print_insn_alpha_vms): Remove.
842 (print_insn_alpha): Make globally visible. Chose the register
843 names based on info->flavour.
844 * disassemble.c: Always return print_insn_alpha for the alpha.
849 * d10v-dis.c (dis_long): Handle unknown opcodes.
853 * d10v-opc.c: Changes to support signed and unsigned numbers.
854 All instructions with the same name that have long and short forms
855 now end in ".l" or ".s". Divs added.
856 * d10v-dis.c: Changes to support signed and unsigned numbers.
860 * d10v-dis.c: Change all functions to use info->print_address_func.
865 * m68k-opc.c (m68k_opcodes): Make opcode masks for the ColdFire
866 move ccr/sr insns more strict so that the disassembler only
867 selects them when the addressing mode is data register.
871 * d10v-opc.c (pre_defined_registers): Declare.
872 * d10v-dis.c (print_operand): Now uses pre_defined_registers
873 to pick a better name for the registers.
878 * sparc-opc.c: Fix opcode values for fpack16, and fpackfix. Fix
879 operands for fexpand and fpmerge. From Christian Kuehnke
884 * alpha-dis.c (print_insn_alpha): No longer the user-visible
885 print routine. Take new regnames and cpumask arguments.
886 Kill the environment variable nonsense.
887 (print_insn_alpha_osf): New function. Do OSF/1 style regnames.
888 (print_insn_alpha_vms): New function. Do VMS style regnames.
889 * disassemble.c (disassembler): Test bfd flavour to pick
890 between OSF and VMS routines. Default to OSF.
894 * configure.in: Call AC_SUBST (INSTALL_SHLIB).
895 * configure: Rebuild.
896 * Makefile.in (install): Use @INSTALL_SHLIB@.
901 * configure: (bfd_d10v_arch) Add new case.
902 * configure.in: (bfd_d10v_arch) Add new case.
903 * d10v-dis.c: New file.
904 * d10v-opc.c: New file.
905 * disassemble.c (disassembler) Add entry for d10v.
910 * m68k-opc.c (m68k_opcodes): Fix bugs in coldfire insns relating
911 to bcc, trapfl, subxl, and wddata discovered by Andreas Schwab.
915 * i386-dis.c: Get rid of print_insn_i8086. Use info.mach to
916 distinguish between variants of the instruction set.
917 * sparc-dis.c: Get rid of print_insn_sparclite. Use info.mach to
918 distinguish between variants of the instruction set.
922 * i386-dis.c (print_insn_i8086): New routine to disassemble using
923 the 8086 instruction set.
924 * i386-dis.c: General cleanups. Make most things static. Add
925 prototypes. Get rid of static variables aflags and dflags. Pass
926 them as args (to almost everything).
930 * h8300-dis.c (bfd_h8_disassemble): Handle macregs in ldmac insns.
932 * h8300-dis.c (bfd_h8_disassemble): Handle "ldm.l" and "stm.l".
934 * h8300-dis.c (bfd_h8_disassemble): "abs" is implicitly two
935 if the next arg is marked with SRC_IN_DST. Gross.
937 * h8300-dis.c (bfd_h8_disassemble): Print "exr" when
938 we're looking for and find EXR.
940 * h8300-dis.c (bfd_h8_disassemble): We don't have a match
941 if we're looking for KBIT and we don't find it.
943 * h8300-dis.c (bfd_h8_disassemble): Mask off unwanted bits
946 * h8300-dis.c (bfd_h8_disassemble): Don't set plen for
947 3bit immediate operands.
951 * Released binutils 2.7.
953 * alpha-opc.c: Add new case of "mov". From Klaus Kaempf
958 * alpha-opc.c: Correct second case of "mov" to use OPRL.
962 * sparc-dis.c (print_insn_sparclite): New routine to print
963 sparclite instructions.
967 * m68k-opc.c (m68k_opcodes): Add coldfire support.
971 * sparc-opc.c (asi_table): Add #ASI_N, #ASI_N_L, #ASI_NUCLEUS,
972 #ASI_NUCLEUS_LITTLE. Rename #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_L
973 to #ASI_AS_IF_USER_{PRIMARY,SECONDARY}_LITTLE.
977 * Makefile.in (bindir, libdir, datadir, mandir, infodir, includedir):
978 Use autoconf-set values.
979 (docdir, oldincludedir): Removed.
980 * configure.in (AC_PREREQ): autoconf 2.5 or higher.
984 * alpha-opc.c: New file.
985 * alpha-opc.h: Remove.
986 * alpha-dis.c: Complete rewrite to use new opcode table.
987 * configure.in: For bfd_alpha_arch, use alpha-opc.o.
988 * configure: Rebuild with autoconf 2.10.
989 * Makefile.in (ALL_MACHINES): Add alpha-opc.o.
990 (alpha-dis.o): Depend upon $(INCDIR)/opcode/alpha.h, not
992 (alpha-opc.o): New target.
996 * sparc-dis.c (print_insn_sparc): Remove unused local variable i.
997 Set imm_added_to_rs1 even if the source and destination register
1000 * sparc-opc.c: Add some two operand forms of the wr instruction.
1004 * h8300-dis.c (bfd_h8_disassemble): Rename "hmode" argument
1007 * disassemble.c (disassembler): Handle H8/S.
1008 * h8300-dis.c (print_insn_h8300s): New function for H8/S.
1012 * sparc-opc.c: Add beq/teq as aliases for be/te.
1014 * ppc-opc.c: Fix fcmpo opcode. From Sergei Steshenko
1019 * makefile.vms: New file.
1021 * alpha-dis.c (print_insn_alpha): Print lda ra,lit(rz) as mov.
1025 * h8300-dis.c (bfd_h8_disassemble): Always print ABS8MEM with :8,
1030 * i386-dis.c (OP_OFF): Call append_prefix.
1034 * ppc-opc.c (instruction encoding macros): Add explicit casts to
1035 unsigned long to silence a warning from the Solaris PowerPC
1040 * sparc-opc.c (sparc_opcodes): Add ultrasparc vis extensions.
1044 * sparc-dis.c (X_IMM,X_SIMM): New macros.
1046 (print_insn_sparc): Merge cases i,I,j together. New cases X,Y.
1047 * sparc-opc.c (sparc_opcodes): Use X for 5 bit shift constants,
1048 Y for 6 bit shift constants. Rewrite entries for crdcxt, cwrcxt,
1049 cpush, cpusha, cpull sparclet insns.
1053 * sparc-dis.c (compute_arch_mask): Replace ANSI style def with K&R.
1057 * sparc-opc.c: Set F_FBR on floating point branch instructions.
1058 Set F_FLOAT on other floating point instructions.
1062 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
1064 (powerpc_opcodes): Add 860/821 specific SPRs.
1068 * configure.in: Permit --enable-shared to specify a list of
1069 directories. Set and substitute BFD_PICLIST.
1070 * configure: Rebuild.
1071 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
1072 uses. Set to @BFD_PICLIST@.
1076 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
1077 not "abs", which may be needed for the absolute in something
1078 like btst #0,@10:8. Print L_3 immediates separately from other
1079 immediates. Change ABSMOV reference to ABS8MEM.
1083 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
1084 (current_arch_mask): New static global.
1085 (compute_arch_mask): New static function.
1086 (print_insn_sparc): Delete sparc_v9_p. New static local
1087 current_mach. Resort opcode table if current_mach changes.
1088 Generalize "insn not supported" test.
1089 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
1090 Delete test for v9/!v9.
1091 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
1093 (brfc): Split into CBR and FBR for coprocessor/fp branches.
1094 (brfcx): Renamed to FBRX.
1095 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
1096 coprocessor mnemonics are not supported on the sparclet).
1097 (condf): Renamed to CONDF.
1098 (SLCBCC2): Delete F_ALIAS flag.
1102 * sparc-opc.c (sparc_opcodes): rd must be 0 for
1103 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
1107 * Makefile.in (config.status): Depend upon BFD VERSION file, so
1108 that the shared library version number is set correctly.
1112 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
1114 * configure: Rebuild.
1118 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
1123 * configure: Rebuild with autoconf 2.8.
1127 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
1128 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
1132 * configure.in: Don't set SHLIB or SHLINK to an empty string,
1133 since they appear as targets in Makefile.in.
1134 * configure: Rebuild.
1138 * mpw-make.sed: Edit out shared library support bits.
1142 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
1143 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
1144 (sparc_opcodes): Add sparclet insns.
1145 (sparclet_cpreg_table): New static local.
1146 (sparc_{encode,decode}_sparclet_cpreg): New functions.
1147 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
1151 * i386-dis.c (index16): New static variable.
1152 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
1154 (OP_indirE): Return result of OP_E.
1155 (OP_E): Check for 16 bit addressing mode, and disassemble
1156 correctly. Optimised 32 bit case a little. Don't print
1157 "(base,index,scale)" when sib specifies only an offset.
1161 * configure.in: Set and substitute SHLIB_DEP.
1162 * configure: Rebuild.
1163 * Makefile.in (SHLIB_DEP): New variable.
1164 (LIBIBERTY_LISTS, BFD_LIST): New variables.
1165 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
1166 COMMON_SHLIB, add them to piclist with appropriate modifications.
1167 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
1168 here: just use piclist.
1172 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
1173 (print_insn_sparc): Rewrite v9/not-v9 tests.
1174 (compare_opcodes): Likewise.
1175 * sparc-opc.c (MASK_<ARCH>): Define.
1176 (v6,v7,v8,sparclite,v9,v9a): Redefine.
1177 (sparclet,v6notv9): Define.
1178 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
1179 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
1183 * configure.in: Call AC_PROG_CC before configure.host.
1184 * configure: Rebuild.
1186 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
1190 * i386-dis.c (onebyte_has_modrm): New static array.
1191 (twobyte_has_modrm): New static array.
1192 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
1196 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
1201 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
1206 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
1207 m68010up, not just m68020up | cpu32.
1209 * Makefile.in (SONAME): New variable.
1210 ($(SHLINK)): Make a link to the transformed name, as well.
1211 (stamp-tshlink): New target.
1212 (install): Skip stamp-tshlink during install.
1216 * configure.in: Call AC_ARG_PROGRAM.
1217 * configure: Rebuild.
1218 * Makefile.in (program_transform_name): New variable.
1219 (install): Transform library name before installing it.
1223 * i960-dis.c (mem): Add HX dcinva instruction.
1225 Support for building as a shared library, based on patches from
1227 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
1228 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
1229 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
1230 * configure: Rebuild.
1231 * Makefile.in (ALLLIBS): New variable.
1232 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
1233 (COMMON_SHLIB, SHLINK): New variables.
1234 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
1235 (STAGESTUFF): Remove variable.
1236 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
1237 (stamp-piclist, piclist): New targets.
1238 ($(SHLIB), $(SHLINK)): New targets.
1239 ($(OFILES)): Depend upon stamp-picdir.
1240 (disassemble.o): Build twice if PICFLAG is set.
1241 (MOSTLYCLEAN): Add pic/*.o.
1242 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
1243 (distclean): Remove pic and stamp-picdir.
1244 (install): Install shared libraries.
1245 (stamp-picdir): New target.
1249 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
1250 Print unknown instruction as "unknown", rather than in hex.
1254 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
1258 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
1262 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
1263 when necessary. From Ulrich Drepper
1268 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
1269 sparc_num_opcodes. Update architecture enum values.
1270 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
1271 (sparc_opcode_lookup_arch): New function.
1272 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
1273 (sparc_opcodes): Add v9a shutdown insn.
1277 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
1278 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
1280 (print_insn_sparc64): Deleted.
1281 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
1284 * sparc-opc.c (architecture_pname): Add v9a.
1288 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
1289 incorrectly defined as 0x16 when it should be 0x15.
1290 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
1291 (alpha_insn_set): added cvtst and cvttq float ops. Also added
1292 excb (exception barrier) which is defined in the Alpha
1293 Architecture Handbook version 2.
1294 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
1295 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
1296 disassembled as or, for example.
1300 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
1301 (_print_insn_mips): Change i from int to unsigned int.
1305 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
1306 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
1310 * i386-dis.c: Added Pentium Pro instructions.
1314 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
1319 * sh-opc.h (sh_nibble_type): Added REG_B.
1320 (sh_arg_type): Added A_REG_B.
1321 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
1323 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
1327 * disassemble.c (disassembler): Use new bfd_big_endian macro.
1331 * Makefile.in (distclean): Remove stamp-h. From Ronald
1337 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
1342 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
1343 (sh_table): Added many SH3 opcodes.
1344 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
1348 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
1349 (subco,subco.): Mark this PPC, not PPCCOM.
1353 * configure: Rebuild with autoconf 2.7.
1357 * configure: Rebuild with autoconf 2.6.
1361 * configure.in: Sort list of architectures. Accept but do nothing
1362 for alliant, convex, pyramid, romp, and tahoe.
1366 * a29k-dis.c (print_special): Change num to unsigned int.
1370 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
1375 * configure.in: Call AC_CHECK_PROG to find and cache AR.
1376 * configure: Rebuilt.
1380 * configure.in: Add case for bfd_i860_arch.
1381 * configure: Rebuild.
1385 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
1386 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
1387 (NEXTDOUBLE): Likewise.
1388 (print_insn_m68k): Don't match fmoveml if there is more than one
1389 register in the list.
1390 (print_insn_arg): Handle a place of '8' for a type of 'L'.
1394 * m68k-opc.c: Use #W rather than #w.
1395 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
1399 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
1400 and likewise for all the dbxx opcodes.
1404 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
1408 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
1409 the VR4100 specific instructions to the mips_opcodes structure.
1413 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
1414 ugly Metrowerks bug in CW6, is fixed in CW7.
1418 * ppc-opc.c (whole file): Add flags for common/any support.
1422 * Makefile.in (BISON): Remove macro.
1423 (FLAGS_TO_PASS): Remove BISON.
1429 * m68k-dis.c (print_insn_m68k): Recognize all two-word
1430 instructions that take no args by looking at the match mask.
1431 (print_insn_arg): Always print "%" before register names.
1432 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
1433 [case '_']: Don't print "@#" before address.
1434 [case 'J']: Use "%s" as format string, not register name.
1435 [case 'B']: Treat place == 'C' like 'l' and 'L'.
1439 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
1446 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
1447 (alpha_insn_set): added definitions for VAX floating point
1448 instructions (Unix compilers don't generate these, but handcoded
1449 assembly might still use them).
1451 * alpha-dis.c (print_insn_alpha): added support for disassembling
1452 the miscellaneous instructions in the Alpha instruction set.
1456 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
1457 no longer create sysdep.h, sed ppc-opc.c to work around a
1458 serious Metrowerks C bug.
1459 * mpw-make.in: Remove.
1460 * mpw-make.sed: New file, used by mpw-configure to edit
1461 Makefile.in into an MPW makefile.
1465 * Makefile.in (maintainer-clean): New synonym for realclean.
1469 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
1470 which use '0', '1', and '2' instead. Specify the proper size for
1471 a pmove immediate operand. Correct the pmovefd patterns to be
1472 moves to a register, not from a register.
1473 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
1477 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
1478 %psr, %wim, %tbr as F_NOTV9.
1482 * Makefile.in (Makefile): Just rebuild Makefile when running
1484 (config.h, stamp-h): New targets.
1485 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
1486 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
1487 rebuilding config.h.
1488 * configure: Rebuild.
1490 * mips-opc.c: Change unaligned loads and stores with "t,A"
1491 operands to use "t,A(b)".
1495 * sh-dis.c (print_insn_shx): Add F_FR0 support.
1499 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
1500 until 3 instead of until 2.
1504 * Makefile.in (ALL_CFLAGS): Define.
1505 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
1506 (MOSTLYCLEAN): Add config.log.
1507 (distclean): Don't remove config.log.
1508 * configure.in: Substitute HDEFINES.
1509 * configure: Rebuild.
1513 * sh-opc.h (sh_arg_type): Add F_FR0.
1514 (sh_table, case fmac): Add F_FR0 as first argument.
1518 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
1522 * sparc-dis.c: Remove all references to NO_V9.
1526 * aclocal.m4: Just include ../bfd/aclocal.m4.
1527 * configure: Rebuild.
1531 * sparc-dis.c (X_DISP19): Define.
1532 (print_insn, case 'G'): Use it.
1533 (print_insn, case 'L'): Sign extend displacement.
1537 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
1538 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
1539 host_makefile_frag or frags.
1540 * aclocal.m4: New file.
1541 * configure: Rebuild.
1542 * Makefile.in (INSTALL): Set to @INSTALL@.
1543 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
1544 (INSTALL_DATA): Set to @INSTALL_DATA@.
1546 (AR_FLAGS): Set to rc rather than qc.
1547 (CC): Define as @CC@.
1548 (CFLAGS): Set to @CFLAGS@.
1549 (@host_makefile_frag@): Remove.
1550 (config.status): Remove dependency upon @frags@.
1552 * configure.in: ../bfd/config.bfd now just sets shell variables.
1553 Use them rather than looking through target Makefile fragments.
1554 * configure: Rebuild.
1558 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
1562 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
1563 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
1566 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
1567 (lookup_{name,value}): New functions.
1568 (prefetch_table): New static local.
1569 (sparc_{encode,decode}_prefetch): New functions.
1570 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
1574 * sh-opc.h: Add blank lines to improve readabililty of sh3e
1579 * sh-dis.c: Correct comment on first line of file.
1583 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
1585 * sparc-opc.c (asi, membar): New static locals.
1586 (sparc_{encode,decode}_{asi,membar}): New functions.
1587 (sparc_opcodes, membar insn): Fix.
1588 * sparc-dis.c (print_insn): Call sparc_decode_asi.
1589 Support decoding of membar masks.
1594 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
1598 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
1599 and likewise for the other branches. Add bhs as an alias for bcc,
1600 and likewise for the size variants. Add dbhs as an alias for
1605 * sh-opc.h (FP sts instructions): Update to match reality.
1609 * m68k-dis.c: (fpcr_names): Add % before all register names.
1610 (reg_names): Likewise.
1611 (print_insn_arg): Don't explicitly print % before register names.
1612 Add % before register names in static array names. In case 'r',
1613 print data registers as `@(Dn)', not `Dn@'. When printing a
1614 memory address, don't print @# before it.
1615 (print_indexed): Change base_disp and outer_disp from int to
1616 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
1617 syntax. Sign extend 8 byte displacement correctly.
1618 (print_base): Print using MIT syntax. Print zpc when appropriate.
1619 Change parameter disp from int to bfd_vma.
1621 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
1626 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
1627 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
1628 * sh-opc.h (sh_arg_type): Add new operand types.
1629 (sh_table): Add new opcodes from SH3E Floating Point ISA.
1633 * Makefile.in (distclean): Remove generated file config.h.
1637 * Makefile.in (distclean): Remove generated file config.h.
1641 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
1643 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
1645 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
1646 rather than numopcodes. Use m68k_opcodes rather than removed
1647 opcode function. Don't check F_ALIAS.
1648 (print_insn_arg): Change first parameter to be const char *.
1649 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
1650 (m68k-opc.o): New target.
1651 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
1652 * configure: Rebuild.
1656 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
1657 (opcode_bits, opcode_hash_table): New variables.
1658 (opcodes_initialized): Renamed from opcodes_sorted.
1659 (build_hash_table): New function.
1660 (is_delayed_branch): Use hash table.
1661 (print_insn): Renamed from print_insn_sparc, made static.
1662 Build and use hash table. If !sparc64, ignore sparc64 insns,
1663 and vice-versa if sparc64.
1664 (print_insn_sparc, print_insn_sparc64): New functions.
1665 (compare_opcodes): Move sparc64 opcodes to end.
1666 Print commutative insns with constant second.
1667 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
1671 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
1672 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
1673 avoids printing a delay slot in a delay slot.
1674 * sh-opc.h (sh_table): Fully bracket last entry.
1678 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
1682 * configure.in: Get host_makefile_frag from ${srcdir}.
1684 * configure.in: Autoconfiscated. Check for string[s].h. Create
1685 config.h from config.in. Don't set up sysdep.h link.
1686 * sysdep.h: New file.
1687 * configure, config.in: New files, generated from configure.in.
1688 * Makefile.in: Updated to be processed autoconf-style.
1689 (distclean): Keep sysdep.h. Remove config.log and config.cache.
1690 (Makefile): Depend on config.status.
1691 (config.status): New rule.
1692 * configure.bat: Update Makefile substitutions.
1696 * mips-opc.c (L1): Define.
1697 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
1698 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
1703 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
1704 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
1705 have multiple add units but only a single logical unit.
1707 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
1708 shifted by 18, without any insertion or extraction function.
1709 (insert_cr, extract_cr): Remove.
1714 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
1719 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
1724 * mpw-config.in: Add sh and i386 configs, remove sparc config.
1725 * sh-opc.h: Add copyright.
1729 * Makefile.in (crunch-m68k): Delete extra target accidentally
1730 checked in a while ago.
1734 * sh-opc.h (sh_table): Add SH3 support.
1738 * sh-opc.h: Added bsrf and braf.
1742 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
1743 bogus [ls]fm{ea,fd} patterns.
1745 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
1746 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
1747 initialize it from memory. Make function static.
1748 (print_insn_{big,little}_arm): New functions.
1749 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
1750 the correct endianness.
1755 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
1756 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
1761 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
1766 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
1767 17th, so that it builds again using GCC as the compiler.
1771 * mips-dis.c (print_insn_little_mips): Cast return value from
1772 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
1773 expects an unsigned long, and that might be fewer words of
1774 argument storage (e.g., if bfd_vma is long long on a 32-bit
1776 (print_insn_big_mips): Likewise with bfd_getb32 value.
1777 (_print_insn_mips): Now static.
1781 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
1782 gcc memory hog problem with initializer is fixed.
1787 * arc-opc.c (NULL): Define.
1788 (arc_operands, insn fields u,s): Delete.
1789 (arc_operands, insn fields a,b,c): Mark as signed.
1790 (arc_opcodes): No longer const, links computed at run-time.
1791 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
1792 suffixes that affect the insn code.
1793 (arc_opcodes): Resort table to macros are first.
1794 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
1795 (arc_opcodes, st [b] entry): Likewise.
1796 (arc_opcodes, st [b,d] entry): Fix mask, value.
1797 (arc_reg_names): Add entries for r29, r30, r31, r60.
1798 (opcode_map, icode_map): New static globals.
1799 (arc_opcode_init_tables): Initialize them.
1800 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
1801 (insert_shimmoffset): Signal error if register present.
1803 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
1808 Merge in support for Mac MPW as a host.
1809 (Old change descriptions retained for informational value.)
1811 * mpw-config.in (archname): Compute from the config.
1812 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
1814 * mpw-config.in (target_arch): Compute from canonical target.
1815 (m68k, mips, powerpc, sparc): Add architectures.
1816 * mpw-make.in (disassemble.c.o): Add.
1817 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
1819 * mpw-config.in (BFD_MACHINES): Set to a default value.
1820 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
1822 * mpw-make.in (CSEARCH): Add extra-include to search path.
1824 * mpw-config.in (varargs.h): Don't create.
1825 (sysdep.h): Create using forward-include.
1826 * mpw-make.in (CSEARCH): Add include/mpw to search path.
1828 * mpw-config.in: New file, MPW version of configure.in.
1829 * mpw-make.in: New file, MPW version of Makefile.in.
1834 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
1835 Call arc_get_opcode_mach to map bfd mach number to opcode value.
1836 (print_insn_*): Pass bfd mach number, not opcode version.
1837 * arc-opc.c (arc_get_opcode_mach): New function.
1842 * alpha-dis.c (print_insn_alpha): Put empty statement after
1847 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
1848 (low_sign_extend): Likewise.
1849 (get_field): Delete unused function.
1850 (set_field, deposit_14, deposit_21): Likewise.
1854 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
1861 * alpha-opc.h (OSF_ASMCODE): define
1862 print pal-code names as defined in App C of the
1863 Alpha Architecture Reference Manual
1865 * alpha-dis.c: cleaned up output
1866 print stylized code forms as defined in App A.4.3 of the
1867 Alpha Architecture Reference Manual
1871 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
1873 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
1878 * m68k-dis.c (opcode): New function. Returns address of opcode
1879 table entry given index, even if the opcode table was split to
1880 work around gcc bugs.
1881 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
1883 (BREAK_UP_BIG_DECL): Make secondary array static and const.
1884 (reg_names): Now const.
1885 (print_insn_arg): Arrays cacheFieldName and names now const.
1886 (print_indexed): Array scales now const.
1891 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
1892 (print_insn_arc_{host,graphics,audio}): Likewise.
1893 (print_insn): Add prototype.
1894 (arc_get_disassembler): New arg `big_p'. Return little or big
1895 print fn accordingly.
1896 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
1897 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
1898 (arc_opval_supported): Likewise.
1899 * disassemble.c (disassembler): Pass big endian flag to
1900 arc_get_disassembler.
1905 * ppc-opc.c: Sort recently added instructions by minor opcode
1906 number within major opcode number.
1910 * hppa-dis.c: Include libhppa.h.
1914 * mips-opc.c: Change dli to use M_DLI, and add dla.
1918 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
1923 * arc-dis.c (arc_get_disassembler): Change argument to int,
1924 one of bfd_mach_arc_xxx. All callers updated.
1929 * mips-opc.c: Add r4650 mul instruction.
1933 * mips-opc.c: Add uld and usd macros for unaligned double load and
1938 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
1939 mfdcr, mtdcr, icbt, iccci.
1944 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
1945 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
1946 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
1947 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
1948 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
1949 (insert_absaddr): New function.
1953 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
1954 New argument `cpu', pass it to arc_opcode_init_tables.
1955 Document byte order dependencies. Ignore unsupported insns.
1956 (arc_get_disassembler): New function.
1957 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
1958 print_insn_arc_audio): New functions.
1959 * arc-opc.c (MULTSHIFT operand): Delete.
1960 (UNSIGNED, SATURATION): New operands.
1961 (mac, mul, mul64, mulu64): New insns.
1962 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
1963 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
1964 (host,graphics,audio extended and auxiliary regs): Define.
1965 (ss, sc, mh, ml): New suffixes.
1966 (arc_opcode_supported, arc_opval_supported): New functions.
1967 (insert_multshift, extract_multshift): Deleted.
1968 * disassemble.c (disassembler, case bfd_arch_arc): Call
1969 arc_get_disassembler to get disassembler routine.
1974 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
1975 signed char fields to shorts, more portable.
1979 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
1980 char fields as signed chars, since they may have negative values.
1984 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
1990 * ppc-opc.c (extract_bdm): Correct parenthezisation.
1991 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
1996 * ppc-opc.c: Changes based on patch from David Edelsohn
1998 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
2001 (insert_tbr): New static function.
2002 (extract_tbr): New static function.
2003 (XFXFXM_MASK, XFXM): Define.
2004 (XSPRBAT_MASK, XSPRG_MASK): Define.
2005 (powerpc_opcodes): Add instructions to access special registers by
2006 name. Add mtcr and mftbu.
2010 * mips-opc.c (P3): Define.
2011 (mips_opcodes): Add mad and madu.
2013 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
2015 * configure.in: Add W65 support.
2016 * disassemble.c: Likewise.
2017 * w65-opc.h, w65-dis.c: New files.
2021 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
2027 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
2029 * arc-opc.c (extract_reladdr): New function.
2030 (insert_reladdr): Store address right-shifted by 2.
2035 * mips-opc.c: Add dli as a synonym for li.
2040 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
2042 (extraction fns): Insn argument now array of two words. Return pointer
2043 to value's table entry. All uses changed.
2044 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
2045 (insert_multshift, extract_multshift): New fns.
2046 (arc_operands): Add support for cache bypass suffix. Add support for
2047 predefined aux regs. Modifier bits moved to flags field.
2048 (arc_opcodes): Likewise.
2049 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
2050 New insn rlc. Update to syntax in programmer's manual.
2051 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
2052 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
2054 (arc_opcode_init_tables): New argument to indicate cpu type.
2055 (insert_reg): Handle predefined aux regs.
2056 (extract_reg): Likewise.
2057 (lookup_register): New fn.
2058 * arc-dis.c (arc_condition_codes): Deleted.
2059 (print_insn_arc): Handle insns with 32 bit immediate constants better.
2060 Clean up modifier handling. Handle predefined aux regs.
2065 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
2066 print something for reserved opcode values, even if it won't
2069 * mips-dis.c (_print_insn_mips): When initializing, shift right
2070 and mask, to avoid sign extension problems on the Alpha.
2072 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
2078 * configure.in: Add ARC support.
2079 * disassemble.c: Likewise.
2080 * arc-dis.c, arc-opc.c: New files.
2085 * sh-opc.h (mov.l gbr): Get direction right.
2086 * sh-dis.c (print_insn_shx): New function.
2087 (print_insn_shl, print_insn_sh): Call print_insn_shx to
2088 print opcodes with right byte order.
2092 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
2093 to avoid conflicts with getopt.
2097 * hppa-dis.c (print_insn_hppa): Read the instruction using
2098 bfd_getb32, so that it works on a little endian or 64 bit host.
2099 Remove unused local variable op.
2103 * mips-opc.c: Use or instead of addu for pseudo-op move, since
2104 addu does not work correctly if -mips3.
2108 * a29k-dis.c (print_special): Add special register names defined
2109 on 29030, 29040 and 29050.
2110 (print_insn): Handle new operand type 'I'.
2114 * Makefile.in (INSTALL): Use top level install.sh script.
2118 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
2119 that it works on a little endian host.
2123 * configure.in: Use ${config_shell} when running config.bfd.
2127 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
2131 * a29k-dis.c (print_insn): Print the opcode.
2135 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
2139 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
2143 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
2144 which store a value into memory.
2148 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
2149 * arm-dis.c, arm-opc.h: New files.
2153 * Makefile.in (ns32k-dis.o): Add dependency.
2154 * ns32k-dis.c (print_insn_arg): Declare initialized local as
2155 string, not as array of chars.
2159 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
2161 * sparc-opc.c: Added sparclite extended FP operations, and
2162 versions of v9 impdep* instructions permitting specification of
2167 * i960-dis.c (reg_names): Now const.
2168 (struct sparse_tabent): New type, copied from array type in mem
2170 (ctrl): Local static array ctrl_tab now const.
2171 (cobr): Local static array cobr_tab now const.
2172 (mem): Local variables reg1, reg2, reg3 now point to const. Local
2173 static variable mem_tab no longer explicitly initialized. Changed
2174 mem_init to const array of struct sparse_tabent.
2175 (reg): Local static variable reg_tab no longer explicitly
2176 initialized. Changed reg_init to const array of struct
2178 (ea): Local static array scale_tab now const.
2180 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
2185 * configure.bat: the disassember needs to be enabled for
2186 "objdump -d" to work in djgpp.
2190 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
2191 (invalid_float): Enabled general version, doesn't require running
2192 on ns32k host. Changed to take char* argument, and test for
2193 explicitly specified sizes, instead of using sizeof() on host CPU
2195 (INVALID_FLOAT): Cast first argument.
2196 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
2197 list_P032, list_M032): Now const.
2198 (optlist, list_search): Made appropriate arguments now point to
2200 (print_insn_arg): Changed static array of one-character-string
2201 pointers into a static const array of characters; fixed sprintf
2202 statement accordingly.
2206 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
2207 from distribution. A ns32k-dis.c from a previous distribution has
2208 been brought up to date and supports the new interface.
2210 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
2212 * configure.in: add bfd_ns32k_arch target support.
2214 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
2215 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
2219 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
2224 * h8300-dis.c, mips-dis.c: Don't use true and false.
2228 * configure.in: Change --with-targets to --enable-targets.
2232 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
2233 opcodes to the first instruction with that opcode, to speed
2239 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
2243 * configure.bat: update to latest makefile.in
2247 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
2248 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
2249 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
2250 slot insn is in a delay slot.
2251 * z8k-opc.h: (resflg): Fix patterns.
2252 * h8500-opc.h Fix CR insn patterns.
2256 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
2257 "cmpl" before POWER versions, so that gas -many uses them.
2261 * disassemble.c: New file.
2262 * Makefile.in (OFILES): Add disassemble.o.
2263 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
2264 * configure.in: Define ARCHDEFS in Makefile. Code taken from
2265 binutils/configure.in.
2267 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
2268 opcode being examined.
2272 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
2273 (insert_ral, insert_ram, insert_ras): New functions.
2274 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
2275 RAS for store with update.
2279 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
2284 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
2289 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
2293 * ppc-opc.c (powerpc_operands): The signedp field has been
2294 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
2295 instead. Add new operand SISIGNOPT.
2296 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
2298 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
2303 * i386-dis.c (struct private): Renamed to dis_private. `private'
2304 is a reserved word for dynix cc.
2308 * configure.in: Change error message to refer to bfd/config.bfd
2309 rather than bfd/configure.in.
2313 * ppc-opc.c: Define POWER2 as short alias flag.
2314 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
2319 * i960-dis.c (print_insn_i960): Don't read a second word for
2320 opcodes 0, 1, 2 and 3.
2324 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
2328 * m68881-ext.c: Removed; no longer used.
2329 * Makefile.in: Changed accordingly.
2331 * m68k-dis.c (ext_format_68881): Don't declare.
2332 (print_insn_m68k): If an instruction uses place 'i', it uses at
2333 least four fixed bytes.
2334 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
2335 extended float, convert to double using floatformat_to_double, not
2336 ieee_extended_to_double, and fetch the data before converting it.
2340 * mips-opc.c: It's sqrt.s, not sqrt.w. From
2345 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
2346 PowerPC uses bdnz[l][a].
2350 * dis-buf.c, i386-dis.c: Include sysdep.h.
2354 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
2356 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
2357 by Motorola PowerPC 601 with PPC_OPCODE_601.
2358 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
2359 Disassemble Motorola PowerPC 601 instructions as well as normal
2360 PowerPC instructions.
2364 * i960-dis.c (reg, mem): Just use a static array instead of
2369 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
2370 condition name index if this is for a negated condition.
2372 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
2373 Floating point format for 'H' operand is backwards from normal
2374 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
2375 operands (fmpyadd and fmpysub), handle bizarre register
2376 translation correctly for single precision format.
2378 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
2379 or 'I' operands if the next format specifier is 'M' (fcmp
2380 condition completer).
2384 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
2385 single number giving a bitmask for the MB and ME fields of an M
2386 form instruction. Change NB to accept 32, and turn it into 0;
2387 also turn 0 into 32 when disassembling. Seperated SH from NB.
2388 (insert_mbe, extract_mbe): New functions.
2389 (insert_nb, extract_nb): New functions.
2390 (SC_MASK): Mask out SA and LK bits.
2391 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
2392 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
2393 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
2394 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
2395 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
2396 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
2397 (powerpc_macros): Define table of macro definitions.
2398 (powerpc_num_macros): Define.
2400 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
2401 if PPC_OPERAND_NEXT is set.
2405 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
2406 char. Retrieve contents using bfd_getl32 instead of shifting.
2410 * ppc-opc.c: New file. Opcode table for PowerPC, including
2411 opcodes for POWER (RS/6000).
2412 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
2413 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
2414 (CFILES): Add ppc-dis.c.
2415 (ppc-dis.o, ppc-opc.o): New targets.
2416 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
2420 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
2421 No space before 'u', 'f', or 'N'.
2425 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
2426 farther than we should.
2428 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
2432 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
2436 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
2437 needs it, to prevent reading past the end of a section.
2441 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
2442 Removed t,A case for la; always use t,A(b) case.
2447 * mips-dis.c (print_insn_arg): Handle 'k'.
2448 * mips-opc.c: Make cache use k, not t.
2452 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
2453 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
2454 FLOAT_FORMAT_CODE to put out floating point register names.
2458 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
2462 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
2466 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
2467 larger than 32. Moved dsxx32 variants first for disassembler.
2471 * z8kgen.c, z8k-opc.h: Add full lda information.
2475 * hppa-dis.c (print_insn_hppa): Do not emit a space after
2476 movb instructions. Any necessary space will be emitted by
2477 the code to handle nullification completers.
2481 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
2485 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
2486 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
2490 * mips-opc.c: Correct lwu opcode value (book had it wrong).
2494 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
2495 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
2499 * m88k-dis.c (m88kdis): comment change. Remove space after
2501 (printop): handle new arg types DEC and XREG for m88110.
2505 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
2506 type for absolute branch addresses. Delete special
2507 "ble" and "be" code in 'W' operand code.
2511 * mips-opc.c: Set hazard information correctly for branch
2512 likely instructions.
2516 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
2517 info->fprintf_func for printing and info->print_address_func for
2522 * mips-opc.c: Set INSN_TRAP for tXX instructions.
2527 Corrected second case of "b" for disassembler.
2531 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
2532 to BFD swapping routines to correspond to BFD name changes.
2536 * mips-opc.c: Change div machine instruction to be z,s,t rather
2537 than s,t. Change div macro to be d,v,t rather than d,s,t.
2538 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
2539 rem and remu which generates only the corresponding div
2540 instruction. This is for compatibility with the MIPS assembler,
2541 which only generates the simple machine instruction when an
2542 explicit destination of $0 is used.
2543 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
2548 WR_31 hazard for bal, bgezal, bltzal.
2552 * hppa-dis.c (print_insn_hppa): Use print function
2553 from within the disassemble_info, not fprintf_filtered.
2557 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
2562 * mips-opc.c ("absu"): Removed.
2567 * mips-opc.c: Added r6000 and r4000 instructions and macros.
2568 Changed hazard information to distinguish between memory load
2569 delays and coprocessor load delays.
2573 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
2577 * configure.in: Don't pass cpu to config.bfd.
2581 * m88k-dis.c (m88kdis): Make class unsigned.
2585 * alpha-dis.c (print_insn_alpha): One branch format case was
2586 missing the instruction name.
2590 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
2591 Add the arch-specific auxiliary files.
2592 (OFILES): Remove the arch-specific auxiliary files
2593 and use BFD_MACHINES instead of DIS_LIBS.
2594 * configure.in: Set BFD_MACHINES based on --with-targets option.
2598 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
2603 * sparc-opc.c: Change CONST to const to deal with gcc
2604 -Dconst=__const -traditional.
2609 coprocessor instructions out of #if 0, and made them use new
2614 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
2618 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
2619 instruction, for use by the disassembler.
2621 * sparc-dis.c (SEX): Add sign extension macro. Replace many
2622 hand-coded sign extensions that depended on 32-bit host ints.
2623 FIXME, we still depend on big-endian host bitfield ordering.
2624 (sparc_print_insn): Set the insn_info_valid field, and the
2625 other fields that describe the instruction being printed.
2629 * sparc-opc.c (call): Accept all 6 addressing modes valid for
2630 `jmp' instead of just one of them.
2634 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
2635 (fput_fp_reg_r): Renamed from fput_reg_r.
2636 (fput_fp_reg): New function.
2637 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
2639 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
2641 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
2645 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
2647 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
2648 don't output a space.
2650 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
2654 * mips-opc.c: New file, containing opcode table from
2655 ../include/opcode/mips.h.
2656 * Makefile.in: Add it.
2660 * m88k-dis.c: New file, moved in from gdb and changed to use the
2661 new dis-asm.h disassembler interface.
2662 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
2663 (m88k-dis.o): New target.
2667 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
2668 argument string const char * to correspond to opcode/mips.h.
2672 * mips-dis.c: Updated to account for name changes in new version
2674 * Makefile.in: Added header file dependencies.
2678 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
2682 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
2683 extend, rather than shifts.
2687 * Makefile.in: Undo 15 June change.
2691 * m68k-dis.c (print_insn_arg): Change return value to byte count
2693 * m68k-dis.c: Re-write to detect invalid operands before
2694 printing anything, so we can handle this the same way we
2695 handle invalid opcodes.
2699 * sh-dis.c, sh-opc.h: Understand some more opcodes.
2703 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
2708 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
2710 * configure.in: Do make sysdep.h link.
2711 * Makefile.in: Search ../include. Don't search ../bfd.
2716 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
2717 Do not print a space before the completers specified by
2722 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
2723 defined, since gdb has been fixed.
2726 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
2727 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
2728 be a *disassemble_info, not a *FILE.
2729 * hppa-dis.c: Support 'd', '!', and 'a'.
2730 * hppa-dis.c: Support 's' to extract a 2 bit space register.
2731 * hppa-dis.c: Delete cases which are no longer needed.
2735 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
2739 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
2744 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
2745 * configure.in: No longer need to configure to get sysdep.h.
2750 * hppa-dis.c: Support 'I', 'J', and 'K' in output
2751 templates for 1.1 FP computational instructions.
2755 * h8500-dis.c (print_insn_h8500): Address argument is type
2757 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
2760 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
2761 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
2763 * sparc-dis.c (compare_opcodes): Move static declaration to
2768 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
2769 instruction, remove unimp hack from 'l' argument.
2773 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
2779 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
2784 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
2785 arrays of string pointers to 2-d arrays of chars, to save
2790 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
2791 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
2795 * hppa-dis.c: New file from Utah, adapted to new disassembler
2797 * Makefile.in: Include it.
2801 * sh-dis.c, sh-opc.h: New files.
2805 * alpha-dis.c, alpha-opc.h: New files.
2809 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
2814 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
2818 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
2823 * sparc-dis.c: Use fprintf_func a few places where I forgot,
2824 and double percent signs a few places.
2826 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
2828 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
2829 Use info->print_address_func not print_address.
2831 * dis-buf.c (generic_print_address): New function.
2835 * Makefile.in: Add sparc-dis.c.
2836 sparc-dis.c: New file, merges binutils and gdb versions as follows:
2838 Add `add' instruction to the set that get checked
2839 for a preceding `sethi' in order to print an absolute address.
2840 * (print_insn): Disassembly prefers real instructions.
2841 (is_delayed_branch): Speed up.
2842 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
2843 Still missing some float ops, and needs testing.
2844 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
2845 F_ALIAS. Use printf, not fprintf, when not passing a file
2847 (compare_opcodes): Check that identical instructions have
2848 identical opcodes, complain otherwise.
2851 * Include reg_names.
2853 Use dis-asm.h/read_memory_func interface.
2857 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
2858 deliberately return non-zero to setjmp from longjmp. Otherwise
2859 this code fails to compile.
2863 * m68k-dis.c: Fix prototype for fetch_arg().
2867 * dis-buf.c: New file, for new read_memory_func interface.
2868 Makefile.in (OFILES): Include it.
2869 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
2870 Use new read_memory_func interface.
2874 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
2875 * h8500-opc.h: Fix couple of opcodes.
2877 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
2879 * Makefile.in: add dvi & installcheck targets
2883 * Makefile.in: Update for h8500-dis.c.
2887 * h8500-dis.c, h8500-opc.h: New files
2891 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
2892 ../include/dis-asm.h.
2893 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
2894 and ../gdb/m68k-pinsn.c).
2895 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
2896 and ../gdb/i386-pinsn.c).
2897 * m68881-ext.c: New file. Moved definition of
2898 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
2899 * Makefile.in: Adjust for new files.
2901 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
2902 can be dis-assembled.
2906 * mips-dis.c (print_insn_arg): Now returns void.
2910 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
2911 files that use the macros.
2915 * mips-dis.c: New file, from gdb/mips-pinsn.c.
2916 * Makefile.in (DIS_LIBS): Added mips-dis.o.
2917 (CFILES): Added mips-dis.c.
2921 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
2922 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
2926 * Makefile.in: Improve *clean rules.
2927 * configure.in: Allow a default host.
2929 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2931 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
2932 files include other sysdep files
2936 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
2940 * configure.in: For host support, use ../bfd/configure.host
2941 so it stays in sync with the ../bfd/hosts database.
2943 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
2945 * configure.in: use cpu-vendor-os triple instead of nested cases
2949 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
2950 *always* the wrong one.
2954 * z8kgen.c: added copyright info
2958 * z8k-dis.c (unparse_instr): prettier tabs
2959 * z8kgen.c -> z8k-opc.h: bug fixes in tables
2961 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
2963 * configure.in: Add ncr* configuration.
2964 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
2965 picayune ANSI compilers happy.
2969 * configure.in (i386): Make i386 and i486 synonymous for now.
2970 * configure.in (i[34]86-*-sysv4): Add my_host definition.
2974 * Makefile.in (install): Fix typo.
2978 * Makefile.in (make): Remove obsolete crud.
2979 (sparc-opc.o): Avoid Sun Make VPATH bug.
2983 * Makefile.in: since there are no SUBDIRS, remove rule and
2984 references of subdir_do.
2988 * Makefile.in (install): Get the library name right here too.
2989 Don't install bfd.h, since it's unrelated to this library. No
2990 subdirs to recurse into, either.
2991 (CFILES): The source file has a .c suffix, not .o.
2993 * sparc-opc.c: New file, moved from BFD.
2994 * Makefile.in (OFILES): Build it.
2998 * z8k-dis.c: fixed forward refferences of some declarations.
3002 * Makefile.in: get the name of the library right
3006 * z8k-dis.c: knows how to disassemble z8k stuff
3007 * z8k-opc.h: new file full of z8000 opcodes
3011 version-control: never