3 * sparc-opc.c: Set F_FBR on floating point branch instructions.
4 Set F_FLOAT on other floating point instructions.
8 * ppc-opc.c (PPC860): Macro for 860/821 specific instructions and
10 (powerpc_opcodes): Add 860/821 specific SPRs.
14 * configure.in: Permit --enable-shared to specify a list of
15 directories. Set and substitute BFD_PICLIST.
17 * Makefile.in (BFD_PICLIST): Rename from BFD_LIST. Change all
18 uses. Set to @BFD_PICLIST@.
22 * h8300-dis.c (bfd_h8_disassemble): Use "bit" for L_3 immediates,
23 not "abs", which may be needed for the absolute in something
24 like btst #0,@10:8. Print L_3 immediates separately from other
25 immediates. Change ABSMOV reference to ABS8MEM.
29 * sparc-dis.c (opcodes_initialized): Move inside print_insn_sparc.
30 (current_arch_mask): New static global.
31 (compute_arch_mask): New static function.
32 (print_insn_sparc): Delete sparc_v9_p. New static local
33 current_mach. Resort opcode table if current_mach changes.
34 Generalize "insn not supported" test.
35 (compare_opcodes): Prefer supported opcodes to nonsupported ones.
36 Delete test for v9/!v9.
37 * sparc-opc.c (MASK_*): Use SPARC_OPCODE_ARCH_MASK.
39 (brfc): Split into CBR and FBR for coprocessor/fp branches.
40 (brfcx): Renamed to FBRX.
41 (condfc): Renamed to CONDFC. Pass v6notlet to CBR (standard
42 coprocessor mnemonics are not supported on the sparclet).
43 (condf): Renamed to CONDF.
44 (SLCBCC2): Delete F_ALIAS flag.
48 * sparc-opc.c (sparc_opcodes): rd must be 0 for
49 mov foo,{%y,%psr,%wim,%tbr}. Support mov foo,%asrX.
53 * Makefile.in (config.status): Depend upon BFD VERSION file, so
54 that the shared library version number is set correctly.
58 * configure.in: Use AC_CHECK_TOOL to find ar and ranlib. From
64 * z8kgen.c (internal, gas): Call xmalloc rather than unchecked
69 * configure: Rebuild with autoconf 2.8.
73 * sparc-dis.c (print_insn_sparc): Handle 'O' operand char like 'r'.
74 * sparc-opc.c (sparc_opcodes): Use 'O' operand char for `neg reg'.
78 * configure.in: Don't set SHLIB or SHLINK to an empty string,
79 since they appear as targets in Makefile.in.
84 * mpw-make.sed: Edit out shared library support bits.
88 * sparc-opc.c (v8,v6notv9): Add MASK_SPARCLET.
89 (sparc_opcode_archs): Add MASK_V8 to sparclet entry.
90 (sparc_opcodes): Add sparclet insns.
91 (sparclet_cpreg_table): New static local.
92 (sparc_{encode,decode}_sparclet_cpreg): New functions.
93 * sparc-dis.c (print_insn_sparc): Handle sparclet cpregs.
97 * i386-dis.c (index16): New static variable.
98 (putop): Print jecxz for 32 bit case, jcxz for 16 bit, not the
100 (OP_indirE): Return result of OP_E.
101 (OP_E): Check for 16 bit addressing mode, and disassemble
102 correctly. Optimised 32 bit case a little. Don't print
103 "(base,index,scale)" when sib specifies only an offset.
107 * configure.in: Set and substitute SHLIB_DEP.
108 * configure: Rebuild.
109 * Makefile.in (SHLIB_DEP): New variable.
110 (LIBIBERTY_LISTS, BFD_LIST): New variables.
111 (stamp-piclist): Depend upon LIBIBERTY_LISTS and BFD_LIST. If
112 COMMON_SHLIB, add them to piclist with appropriate modifications.
113 ($(SHLIB)): Depend upon $(SHLIB_DEP). Don't check COMMON_SHLIB
114 here: just use piclist.
118 * sparc-dis.c (MASK_V9,V9_ONLY_P,V9_P): Define.
119 (print_insn_sparc): Rewrite v9/not-v9 tests.
120 (compare_opcodes): Likewise.
121 * sparc-opc.c (MASK_<ARCH>): Define.
122 (v6,v7,v8,sparclite,v9,v9a): Redefine.
123 (sparclet,v6notv9): Define.
124 (sparc_opcode_archs): Delete member `conflicts'. Add `supported'.
125 (sparc_opcodes): Delete F_NOTV9, use v6notv9 instead.
129 * configure.in: Call AC_PROG_CC before configure.host.
130 * configure: Rebuild.
132 * Makefile.in (SONAME): Remove leading ../bfd/ from $(SHLIB).
136 * i386-dis.c (onebyte_has_modrm): New static array.
137 (twobyte_has_modrm): New static array.
138 (print_insn_i386): Only fetch the mod/reg/rm byte if it is needed.
142 * Makefile.in ($(SHLINK)): Check ts against $(SHLIB), not
147 * ppc-opc.c (PPC): Undef, so default defination on Windows NT
152 * m68k-opc.c (m68k_opcodes): The bkpt instruction is supported on
153 m68010up, not just m68020up | cpu32.
155 * Makefile.in (SONAME): New variable.
156 ($(SHLINK)): Make a link to the transformed name, as well.
157 (stamp-tshlink): New target.
158 (install): Skip stamp-tshlink during install.
162 * configure.in: Call AC_ARG_PROGRAM.
163 * configure: Rebuild.
164 * Makefile.in (program_transform_name): New variable.
165 (install): Transform library name before installing it.
169 * i960-dis.c (mem): Add HX dcinva instruction.
171 Support for building as a shared library, based on patches from
173 * configure.in: Add AC_ARG_ENABLE for shared and commonbfdlib.
174 New substitutions: ALLLIBS, PICFLAG, SHLIB, SHLIB_CC,
175 SHLIB_CFLAGS, COMMON_SHLIB, SHLINK.
176 * configure: Rebuild.
177 * Makefile.in (ALLLIBS): New variable.
178 (PICFLAG, SHLIB, SHLIB_CC, SHLIB_CFLAGS): New variables.
179 (COMMON_SHLIB, SHLINK): New variables.
180 (.c.o): If PICFLAG is set, compile twice, once PIC, once normal.
181 (STAGESTUFF): Remove variable.
182 (all): Depend upon $(ALLLIBS) rather than $(TARGETLIB).
183 (stamp-piclist, piclist): New targets.
184 ($(SHLIB), $(SHLINK)): New targets.
185 ($(OFILES)): Depend upon stamp-picdir.
186 (disassemble.o): Build twice if PICFLAG is set.
187 (MOSTLYCLEAN): Add pic/*.o.
188 (clean): Remove $(SHLIB), $(SHLINK), piclist, and stamp-piclist.
189 (distclean): Remove pic and stamp-picdir.
190 (install): Install shared libraries.
191 (stamp-picdir): New target.
195 * sparc-dis.c (print_insn_sparc): Delete DISASM_RAW_INSN support.
196 Print unknown instruction as "unknown", rather than in hex.
200 * dis-buf.c: Include "sysdep.h" before "dis-asm.h".
204 * sparc-opc.c (sparc_opcode_archs): Mark v8/sparclite as conflicting.
208 * i386-dis.c (print_insn_i386): Only fetch the mod/reg/rm byte
209 when necessary. From Ulrich Drepper
214 * sparc-dis.c (print_insn_sparc): NUMOPCODES replaced with
215 sparc_num_opcodes. Update architecture enum values.
216 * sparc-opc.c (sparc_opcode_archs): Replaces architecture_pname.
217 (sparc_opcode_lookup_arch): New function.
218 (sparc_num_opcodes): Renamed from bfd_sparc_num_opcodes.
219 (sparc_opcodes): Add v9a shutdown insn.
223 * sparc-dis.c (print_insn_sparc): Renamed from print_insn.
224 If DISASM_RAW_INSN, print insn in hex. Handle v9a as opcode
226 (print_insn_sparc64): Deleted.
227 * disassemble.c (disassembler, case bfd_arch_sparc): Always use
230 * sparc-opc.c (architecture_pname): Add v9a.
234 * alpha-opc.h (alpha_insn_set): VAX floating point opcode was
235 incorrectly defined as 0x16 when it should be 0x15.
236 (FLOAT_FORMAT_MASK): function code is 11 bits, not just 7 bits!
237 (alpha_insn_set): added cvtst and cvttq float ops. Also added
238 excb (exception barrier) which is defined in the Alpha
239 Architecture Handbook version 2.
240 * alpha-dis.c (print_insn_alpha): Fixed special-case decoding for
241 OPERATE_FORMAT_CODE type instructions. The bug caused mulq to be
242 disassembled as or, for example.
246 * mips-dis.c (print_insn_arg): Print cases 'i' and 'u' in hex.
247 (_print_insn_mips): Change i from int to unsigned int.
251 * ppc-opc.c (powerpc_opcodes): tlbi POWER opcode form different
252 from tlbie PowerPC opcode. Add PPC603 tlbld and tlbli.
256 * i386-dis.c: Added Pentium Pro instructions.
260 * ppc-opc.c (fsqrt{,.}): Duplicate for PowerPC in addition to
265 * sh-opc.h (sh_nibble_type): Added REG_B.
266 (sh_arg_type): Added A_REG_B.
267 (sh_table): Added pref and bank reg versions of ldc, ldc.l, stc
269 * sh-dis.c (print_insn_shx): Added cases for REG_B and A_REG_B.
273 * disassemble.c (disassembler): Use new bfd_big_endian macro.
277 * Makefile.in (distclean): Remove stamp-h. From Ronald
283 * alpha-dis.c (print_insn_alpha): fixed decoding of cpys
288 * sh-opc.h (sh_arg_type): Added A_SSR and A_SPC.
289 (sh_table): Added many SH3 opcodes.
290 * sh-dis.c (print_insn_shx): Added cases for A_SSR and A_SPC.
294 * ppc-opc.c (subfc., subfco): Mark this PPCCOM, not PPC.
295 (subco,subco.): Mark this PPC, not PPCCOM.
299 * configure: Rebuild with autoconf 2.7.
303 * configure: Rebuild with autoconf 2.6.
307 * configure.in: Sort list of architectures. Accept but do nothing
308 for alliant, convex, pyramid, romp, and tahoe.
312 * a29k-dis.c (print_special): Change num to unsigned int.
316 * a29k-dis.c (print_insn): Cast insn24 to unsigned long when
321 * configure.in: Call AC_CHECK_PROG to find and cache AR.
322 * configure: Rebuilt.
326 * configure.in: Add case for bfd_i860_arch.
327 * configure: Rebuild.
331 * m68k-opc.c (m68k_opcodes): Correct fmoveml operands.
332 * m68k-dis.c (NEXTSINGLE): Change i to unsigned int.
333 (NEXTDOUBLE): Likewise.
334 (print_insn_m68k): Don't match fmoveml if there is more than one
335 register in the list.
336 (print_insn_arg): Handle a place of '8' for a type of 'L'.
340 * m68k-opc.c: Use #W rather than #w.
341 * m68k-dis.c (print_insn_arg): Handle new 'W' place.
345 * m68k-opc.c (m68k_opcode_aliases): Add dbfw as an alias for dbf,
346 and likewise for all the dbxx opcodes.
350 * arc-dis.c: Include elf-bfd.h rather than libelf.h.
354 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
355 the VR4100 specific instructions to the mips_opcodes structure.
359 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
360 ugly Metrowerks bug in CW6, is fixed in CW7.
364 * ppc-opc.c (whole file): Add flags for common/any support.
368 * Makefile.in (BISON): Remove macro.
369 (FLAGS_TO_PASS): Remove BISON.
375 * m68k-dis.c (print_insn_m68k): Recognize all two-word
376 instructions that take no args by looking at the match mask.
377 (print_insn_arg): Always print "%" before register names.
378 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
379 [case '_']: Don't print "@#" before address.
380 [case 'J']: Use "%s" as format string, not register name.
381 [case 'B']: Treat place == 'C' like 'l' and 'L'.
385 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
392 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
393 (alpha_insn_set): added definitions for VAX floating point
394 instructions (Unix compilers don't generate these, but handcoded
395 assembly might still use them).
397 * alpha-dis.c (print_insn_alpha): added support for disassembling
398 the miscellaneous instructions in the Alpha instruction set.
402 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
403 no longer create sysdep.h, sed ppc-opc.c to work around a
404 serious Metrowerks C bug.
405 * mpw-make.in: Remove.
406 * mpw-make.sed: New file, used by mpw-configure to edit
407 Makefile.in into an MPW makefile.
411 * Makefile.in (maintainer-clean): New synonym for realclean.
415 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
416 which use '0', '1', and '2' instead. Specify the proper size for
417 a pmove immediate operand. Correct the pmovefd patterns to be
418 moves to a register, not from a register.
419 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
423 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
424 %psr, %wim, %tbr as F_NOTV9.
428 * Makefile.in (Makefile): Just rebuild Makefile when running
430 (config.h, stamp-h): New targets.
431 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
432 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
434 * configure: Rebuild.
436 * mips-opc.c: Change unaligned loads and stores with "t,A"
437 operands to use "t,A(b)".
441 * sh-dis.c (print_insn_shx): Add F_FR0 support.
445 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
446 until 3 instead of until 2.
450 * Makefile.in (ALL_CFLAGS): Define.
451 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
452 (MOSTLYCLEAN): Add config.log.
453 (distclean): Don't remove config.log.
454 * configure.in: Substitute HDEFINES.
455 * configure: Rebuild.
459 * sh-opc.h (sh_arg_type): Add F_FR0.
460 (sh_table, case fmac): Add F_FR0 as first argument.
464 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
468 * sparc-dis.c: Remove all references to NO_V9.
472 * aclocal.m4: Just include ../bfd/aclocal.m4.
473 * configure: Rebuild.
477 * sparc-dis.c (X_DISP19): Define.
478 (print_insn, case 'G'): Use it.
479 (print_insn, case 'L'): Sign extend displacement.
483 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
484 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
485 host_makefile_frag or frags.
486 * aclocal.m4: New file.
487 * configure: Rebuild.
488 * Makefile.in (INSTALL): Set to @INSTALL@.
489 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
490 (INSTALL_DATA): Set to @INSTALL_DATA@.
492 (AR_FLAGS): Set to rc rather than qc.
493 (CC): Define as @CC@.
494 (CFLAGS): Set to @CFLAGS@.
495 (@host_makefile_frag@): Remove.
496 (config.status): Remove dependency upon @frags@.
498 * configure.in: ../bfd/config.bfd now just sets shell variables.
499 Use them rather than looking through target Makefile fragments.
500 * configure: Rebuild.
504 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
508 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
509 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
512 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
513 (lookup_{name,value}): New functions.
514 (prefetch_table): New static local.
515 (sparc_{encode,decode}_prefetch): New functions.
516 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
520 * sh-opc.h: Add blank lines to improve readabililty of sh3e
525 * sh-dis.c: Correct comment on first line of file.
529 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
531 * sparc-opc.c (asi, membar): New static locals.
532 (sparc_{encode,decode}_{asi,membar}): New functions.
533 (sparc_opcodes, membar insn): Fix.
534 * sparc-dis.c (print_insn): Call sparc_decode_asi.
535 Support decoding of membar masks.
540 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
544 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
545 and likewise for the other branches. Add bhs as an alias for bcc,
546 and likewise for the size variants. Add dbhs as an alias for
551 * sh-opc.h (FP sts instructions): Update to match reality.
555 * m68k-dis.c: (fpcr_names): Add % before all register names.
556 (reg_names): Likewise.
557 (print_insn_arg): Don't explicitly print % before register names.
558 Add % before register names in static array names. In case 'r',
559 print data registers as `@(Dn)', not `Dn@'. When printing a
560 memory address, don't print @# before it.
561 (print_indexed): Change base_disp and outer_disp from int to
562 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
563 syntax. Sign extend 8 byte displacement correctly.
564 (print_base): Print using MIT syntax. Print zpc when appropriate.
565 Change parameter disp from int to bfd_vma.
567 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
572 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
573 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
574 * sh-opc.h (sh_arg_type): Add new operand types.
575 (sh_table): Add new opcodes from SH3E Floating Point ISA.
579 * Makefile.in (distclean): Remove generated file config.h.
583 * Makefile.in (distclean): Remove generated file config.h.
587 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
589 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
591 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
592 rather than numopcodes. Use m68k_opcodes rather than removed
593 opcode function. Don't check F_ALIAS.
594 (print_insn_arg): Change first parameter to be const char *.
595 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
596 (m68k-opc.o): New target.
597 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
598 * configure: Rebuild.
602 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
603 (opcode_bits, opcode_hash_table): New variables.
604 (opcodes_initialized): Renamed from opcodes_sorted.
605 (build_hash_table): New function.
606 (is_delayed_branch): Use hash table.
607 (print_insn): Renamed from print_insn_sparc, made static.
608 Build and use hash table. If !sparc64, ignore sparc64 insns,
609 and vice-versa if sparc64.
610 (print_insn_sparc, print_insn_sparc64): New functions.
611 (compare_opcodes): Move sparc64 opcodes to end.
612 Print commutative insns with constant second.
613 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
617 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
618 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
619 avoids printing a delay slot in a delay slot.
620 * sh-opc.h (sh_table): Fully bracket last entry.
624 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
628 * configure.in: Get host_makefile_frag from ${srcdir}.
630 * configure.in: Autoconfiscated. Check for string[s].h. Create
631 config.h from config.in. Don't set up sysdep.h link.
632 * sysdep.h: New file.
633 * configure, config.in: New files, generated from configure.in.
634 * Makefile.in: Updated to be processed autoconf-style.
635 (distclean): Keep sysdep.h. Remove config.log and config.cache.
636 (Makefile): Depend on config.status.
637 (config.status): New rule.
638 * configure.bat: Update Makefile substitutions.
642 * mips-opc.c (L1): Define.
643 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
644 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
649 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
650 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
651 have multiple add units but only a single logical unit.
653 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
654 shifted by 18, without any insertion or extraction function.
655 (insert_cr, extract_cr): Remove.
660 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
665 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
670 * mpw-config.in: Add sh and i386 configs, remove sparc config.
671 * sh-opc.h: Add copyright.
675 * Makefile.in (crunch-m68k): Delete extra target accidentally
676 checked in a while ago.
680 * sh-opc.h (sh_table): Add SH3 support.
684 * sh-opc.h: Added bsrf and braf.
688 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
689 bogus [ls]fm{ea,fd} patterns.
691 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
692 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
693 initialize it from memory. Make function static.
694 (print_insn_{big,little}_arm): New functions.
695 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
696 the correct endianness.
701 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
702 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
707 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
712 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
713 17th, so that it builds again using GCC as the compiler.
717 * mips-dis.c (print_insn_little_mips): Cast return value from
718 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
719 expects an unsigned long, and that might be fewer words of
720 argument storage (e.g., if bfd_vma is long long on a 32-bit
722 (print_insn_big_mips): Likewise with bfd_getb32 value.
723 (_print_insn_mips): Now static.
727 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
728 gcc memory hog problem with initializer is fixed.
733 * arc-opc.c (NULL): Define.
734 (arc_operands, insn fields u,s): Delete.
735 (arc_operands, insn fields a,b,c): Mark as signed.
736 (arc_opcodes): No longer const, links computed at run-time.
737 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
738 suffixes that affect the insn code.
739 (arc_opcodes): Resort table to macros are first.
740 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
741 (arc_opcodes, st [b] entry): Likewise.
742 (arc_opcodes, st [b,d] entry): Fix mask, value.
743 (arc_reg_names): Add entries for r29, r30, r31, r60.
744 (opcode_map, icode_map): New static globals.
745 (arc_opcode_init_tables): Initialize them.
746 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
747 (insert_shimmoffset): Signal error if register present.
749 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
754 Merge in support for Mac MPW as a host.
755 (Old change descriptions retained for informational value.)
757 * mpw-config.in (archname): Compute from the config.
758 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
760 * mpw-config.in (target_arch): Compute from canonical target.
761 (m68k, mips, powerpc, sparc): Add architectures.
762 * mpw-make.in (disassemble.c.o): Add.
763 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
765 * mpw-config.in (BFD_MACHINES): Set to a default value.
766 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
768 * mpw-make.in (CSEARCH): Add extra-include to search path.
770 * mpw-config.in (varargs.h): Don't create.
771 (sysdep.h): Create using forward-include.
772 * mpw-make.in (CSEARCH): Add include/mpw to search path.
774 * mpw-config.in: New file, MPW version of configure.in.
775 * mpw-make.in: New file, MPW version of Makefile.in.
780 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
781 Call arc_get_opcode_mach to map bfd mach number to opcode value.
782 (print_insn_*): Pass bfd mach number, not opcode version.
783 * arc-opc.c (arc_get_opcode_mach): New function.
788 * alpha-dis.c (print_insn_alpha): Put empty statement after
793 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
794 (low_sign_extend): Likewise.
795 (get_field): Delete unused function.
796 (set_field, deposit_14, deposit_21): Likewise.
800 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
807 * alpha-opc.h (OSF_ASMCODE): define
808 print pal-code names as defined in App C of the
809 Alpha Architecture Reference Manual
811 * alpha-dis.c: cleaned up output
812 print stylized code forms as defined in App A.4.3 of the
813 Alpha Architecture Reference Manual
817 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
819 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
824 * m68k-dis.c (opcode): New function. Returns address of opcode
825 table entry given index, even if the opcode table was split to
826 work around gcc bugs.
827 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
829 (BREAK_UP_BIG_DECL): Make secondary array static and const.
830 (reg_names): Now const.
831 (print_insn_arg): Arrays cacheFieldName and names now const.
832 (print_indexed): Array scales now const.
837 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
838 (print_insn_arc_{host,graphics,audio}): Likewise.
839 (print_insn): Add prototype.
840 (arc_get_disassembler): New arg `big_p'. Return little or big
841 print fn accordingly.
842 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
843 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
844 (arc_opval_supported): Likewise.
845 * disassemble.c (disassembler): Pass big endian flag to
846 arc_get_disassembler.
851 * ppc-opc.c: Sort recently added instructions by minor opcode
852 number within major opcode number.
856 * hppa-dis.c: Include libhppa.h.
860 * mips-opc.c: Change dli to use M_DLI, and add dla.
864 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
869 * arc-dis.c (arc_get_disassembler): Change argument to int,
870 one of bfd_mach_arc_xxx. All callers updated.
875 * mips-opc.c: Add r4650 mul instruction.
879 * mips-opc.c: Add uld and usd macros for unaligned double load and
884 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
885 mfdcr, mtdcr, icbt, iccci.
890 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
891 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
892 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
893 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
894 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
895 (insert_absaddr): New function.
899 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
900 New argument `cpu', pass it to arc_opcode_init_tables.
901 Document byte order dependencies. Ignore unsupported insns.
902 (arc_get_disassembler): New function.
903 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
904 print_insn_arc_audio): New functions.
905 * arc-opc.c (MULTSHIFT operand): Delete.
906 (UNSIGNED, SATURATION): New operands.
907 (mac, mul, mul64, mulu64): New insns.
908 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
909 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
910 (host,graphics,audio extended and auxiliary regs): Define.
911 (ss, sc, mh, ml): New suffixes.
912 (arc_opcode_supported, arc_opval_supported): New functions.
913 (insert_multshift, extract_multshift): Deleted.
914 * disassemble.c (disassembler, case bfd_arch_arc): Call
915 arc_get_disassembler to get disassembler routine.
920 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
921 signed char fields to shorts, more portable.
925 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
926 char fields as signed chars, since they may have negative values.
930 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
936 * ppc-opc.c (extract_bdm): Correct parenthezisation.
937 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
942 * ppc-opc.c: Changes based on patch from David Edelsohn
944 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
947 (insert_tbr): New static function.
948 (extract_tbr): New static function.
949 (XFXFXM_MASK, XFXM): Define.
950 (XSPRBAT_MASK, XSPRG_MASK): Define.
951 (powerpc_opcodes): Add instructions to access special registers by
952 name. Add mtcr and mftbu.
956 * mips-opc.c (P3): Define.
957 (mips_opcodes): Add mad and madu.
959 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
961 * configure.in: Add W65 support.
962 * disassemble.c: Likewise.
963 * w65-opc.h, w65-dis.c: New files.
967 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
973 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
975 * arc-opc.c (extract_reladdr): New function.
976 (insert_reladdr): Store address right-shifted by 2.
981 * mips-opc.c: Add dli as a synonym for li.
986 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
988 (extraction fns): Insn argument now array of two words. Return pointer
989 to value's table entry. All uses changed.
990 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
991 (insert_multshift, extract_multshift): New fns.
992 (arc_operands): Add support for cache bypass suffix. Add support for
993 predefined aux regs. Modifier bits moved to flags field.
994 (arc_opcodes): Likewise.
995 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
996 New insn rlc. Update to syntax in programmer's manual.
997 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
998 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
1000 (arc_opcode_init_tables): New argument to indicate cpu type.
1001 (insert_reg): Handle predefined aux regs.
1002 (extract_reg): Likewise.
1003 (lookup_register): New fn.
1004 * arc-dis.c (arc_condition_codes): Deleted.
1005 (print_insn_arc): Handle insns with 32 bit immediate constants better.
1006 Clean up modifier handling. Handle predefined aux regs.
1011 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
1012 print something for reserved opcode values, even if it won't
1015 * mips-dis.c (_print_insn_mips): When initializing, shift right
1016 and mask, to avoid sign extension problems on the Alpha.
1018 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
1024 * configure.in: Add ARC support.
1025 * disassemble.c: Likewise.
1026 * arc-dis.c, arc-opc.c: New files.
1031 * sh-opc.h (mov.l gbr): Get direction right.
1032 * sh-dis.c (print_insn_shx): New function.
1033 (print_insn_shl, print_insn_sh): Call print_insn_shx to
1034 print opcodes with right byte order.
1038 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
1039 to avoid conflicts with getopt.
1043 * hppa-dis.c (print_insn_hppa): Read the instruction using
1044 bfd_getb32, so that it works on a little endian or 64 bit host.
1045 Remove unused local variable op.
1049 * mips-opc.c: Use or instead of addu for pseudo-op move, since
1050 addu does not work correctly if -mips3.
1054 * a29k-dis.c (print_special): Add special register names defined
1055 on 29030, 29040 and 29050.
1056 (print_insn): Handle new operand type 'I'.
1060 * Makefile.in (INSTALL): Use top level install.sh script.
1064 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
1065 that it works on a little endian host.
1069 * configure.in: Use ${config_shell} when running config.bfd.
1073 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
1077 * a29k-dis.c (print_insn): Print the opcode.
1081 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
1085 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
1089 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
1090 which store a value into memory.
1094 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
1095 * arm-dis.c, arm-opc.h: New files.
1099 * Makefile.in (ns32k-dis.o): Add dependency.
1100 * ns32k-dis.c (print_insn_arg): Declare initialized local as
1101 string, not as array of chars.
1105 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
1107 * sparc-opc.c: Added sparclite extended FP operations, and
1108 versions of v9 impdep* instructions permitting specification of
1113 * i960-dis.c (reg_names): Now const.
1114 (struct sparse_tabent): New type, copied from array type in mem
1116 (ctrl): Local static array ctrl_tab now const.
1117 (cobr): Local static array cobr_tab now const.
1118 (mem): Local variables reg1, reg2, reg3 now point to const. Local
1119 static variable mem_tab no longer explicitly initialized. Changed
1120 mem_init to const array of struct sparse_tabent.
1121 (reg): Local static variable reg_tab no longer explicitly
1122 initialized. Changed reg_init to const array of struct
1124 (ea): Local static array scale_tab now const.
1126 * i960-dis.c (reg): Added i960JX instructions to reg_init table.
1131 * configure.bat: the disassember needs to be enabled for
1132 "objdump -d" to work in djgpp.
1136 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
1137 (invalid_float): Enabled general version, doesn't require running
1138 on ns32k host. Changed to take char* argument, and test for
1139 explicitly specified sizes, instead of using sizeof() on host CPU
1141 (INVALID_FLOAT): Cast first argument.
1142 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
1143 list_P032, list_M032): Now const.
1144 (optlist, list_search): Made appropriate arguments now point to
1146 (print_insn_arg): Changed static array of one-character-string
1147 pointers into a static const array of characters; fixed sprintf
1148 statement accordingly.
1152 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
1153 from distribution. A ns32k-dis.c from a previous distribution has
1154 been brought up to date and supports the new interface.
1156 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
1158 * configure.in: add bfd_ns32k_arch target support.
1160 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
1161 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
1165 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
1170 * h8300-dis.c, mips-dis.c: Don't use true and false.
1174 * configure.in: Change --with-targets to --enable-targets.
1178 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
1179 opcodes to the first instruction with that opcode, to speed
1185 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
1189 * configure.bat: update to latest makefile.in
1193 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
1194 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
1195 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
1196 slot insn is in a delay slot.
1197 * z8k-opc.h: (resflg): Fix patterns.
1198 * h8500-opc.h Fix CR insn patterns.
1202 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
1203 "cmpl" before POWER versions, so that gas -many uses them.
1207 * disassemble.c: New file.
1208 * Makefile.in (OFILES): Add disassemble.o.
1209 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
1210 * configure.in: Define ARCHDEFS in Makefile. Code taken from
1211 binutils/configure.in.
1213 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
1214 opcode being examined.
1218 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
1219 (insert_ral, insert_ram, insert_ras): New functions.
1220 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
1221 RAS for store with update.
1225 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
1230 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
1235 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
1239 * ppc-opc.c (powerpc_operands): The signedp field has been
1240 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
1241 instead. Add new operand SISIGNOPT.
1242 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
1244 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
1249 * i386-dis.c (struct private): Renamed to dis_private. `private'
1250 is a reserved word for dynix cc.
1254 * configure.in: Change error message to refer to bfd/config.bfd
1255 rather than bfd/configure.in.
1259 * ppc-opc.c: Define POWER2 as short alias flag.
1260 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
1265 * i960-dis.c (print_insn_i960): Don't read a second word for
1266 opcodes 0, 1, 2 and 3.
1270 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
1274 * m68881-ext.c: Removed; no longer used.
1275 * Makefile.in: Changed accordingly.
1277 * m68k-dis.c (ext_format_68881): Don't declare.
1278 (print_insn_m68k): If an instruction uses place 'i', it uses at
1279 least four fixed bytes.
1280 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
1281 extended float, convert to double using floatformat_to_double, not
1282 ieee_extended_to_double, and fetch the data before converting it.
1286 * mips-opc.c: It's sqrt.s, not sqrt.w. From
1291 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
1292 PowerPC uses bdnz[l][a].
1296 * dis-buf.c, i386-dis.c: Include sysdep.h.
1300 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
1302 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
1303 by Motorola PowerPC 601 with PPC_OPCODE_601.
1304 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
1305 Disassemble Motorola PowerPC 601 instructions as well as normal
1306 PowerPC instructions.
1310 * i960-dis.c (reg, mem): Just use a static array instead of
1315 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
1316 condition name index if this is for a negated condition.
1318 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
1319 Floating point format for 'H' operand is backwards from normal
1320 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
1321 operands (fmpyadd and fmpysub), handle bizarre register
1322 translation correctly for single precision format.
1324 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
1325 or 'I' operands if the next format specifier is 'M' (fcmp
1326 condition completer).
1330 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
1331 single number giving a bitmask for the MB and ME fields of an M
1332 form instruction. Change NB to accept 32, and turn it into 0;
1333 also turn 0 into 32 when disassembling. Seperated SH from NB.
1334 (insert_mbe, extract_mbe): New functions.
1335 (insert_nb, extract_nb): New functions.
1336 (SC_MASK): Mask out SA and LK bits.
1337 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
1338 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
1339 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
1340 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
1341 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
1342 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
1343 (powerpc_macros): Define table of macro definitions.
1344 (powerpc_num_macros): Define.
1346 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
1347 if PPC_OPERAND_NEXT is set.
1351 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
1352 char. Retrieve contents using bfd_getl32 instead of shifting.
1356 * ppc-opc.c: New file. Opcode table for PowerPC, including
1357 opcodes for POWER (RS/6000).
1358 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
1359 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
1360 (CFILES): Add ppc-dis.c.
1361 (ppc-dis.o, ppc-opc.o): New targets.
1362 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
1366 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
1367 No space before 'u', 'f', or 'N'.
1371 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
1372 farther than we should.
1374 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
1378 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
1382 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
1383 needs it, to prevent reading past the end of a section.
1387 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
1388 Removed t,A case for la; always use t,A(b) case.
1393 * mips-dis.c (print_insn_arg): Handle 'k'.
1394 * mips-opc.c: Make cache use k, not t.
1398 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
1399 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
1400 FLOAT_FORMAT_CODE to put out floating point register names.
1404 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
1408 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
1412 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
1413 larger than 32. Moved dsxx32 variants first for disassembler.
1417 * z8kgen.c, z8k-opc.h: Add full lda information.
1421 * hppa-dis.c (print_insn_hppa): Do not emit a space after
1422 movb instructions. Any necessary space will be emitted by
1423 the code to handle nullification completers.
1427 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
1431 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
1432 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
1436 * mips-opc.c: Correct lwu opcode value (book had it wrong).
1440 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
1441 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
1445 * m88k-dis.c (m88kdis): comment change. Remove space after
1447 (printop): handle new arg types DEC and XREG for m88110.
1451 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
1452 type for absolute branch addresses. Delete special
1453 "ble" and "be" code in 'W' operand code.
1457 * mips-opc.c: Set hazard information correctly for branch
1458 likely instructions.
1462 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
1463 info->fprintf_func for printing and info->print_address_func for
1468 * mips-opc.c: Set INSN_TRAP for tXX instructions.
1473 Corrected second case of "b" for disassembler.
1477 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
1478 to BFD swapping routines to correspond to BFD name changes.
1482 * mips-opc.c: Change div machine instruction to be z,s,t rather
1483 than s,t. Change div macro to be d,v,t rather than d,s,t.
1484 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
1485 rem and remu which generates only the corresponding div
1486 instruction. This is for compatibility with the MIPS assembler,
1487 which only generates the simple machine instruction when an
1488 explicit destination of $0 is used.
1489 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
1494 WR_31 hazard for bal, bgezal, bltzal.
1498 * hppa-dis.c (print_insn_hppa): Use print function
1499 from within the disassemble_info, not fprintf_filtered.
1503 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
1508 * mips-opc.c ("absu"): Removed.
1513 * mips-opc.c: Added r6000 and r4000 instructions and macros.
1514 Changed hazard information to distinguish between memory load
1515 delays and coprocessor load delays.
1519 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
1523 * configure.in: Don't pass cpu to config.bfd.
1527 * m88k-dis.c (m88kdis): Make class unsigned.
1531 * alpha-dis.c (print_insn_alpha): One branch format case was
1532 missing the instruction name.
1536 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
1537 Add the arch-specific auxiliary files.
1538 (OFILES): Remove the arch-specific auxiliary files
1539 and use BFD_MACHINES instead of DIS_LIBS.
1540 * configure.in: Set BFD_MACHINES based on --with-targets option.
1544 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
1549 * sparc-opc.c: Change CONST to const to deal with gcc
1550 -Dconst=__const -traditional.
1555 coprocessor instructions out of #if 0, and made them use new
1560 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
1564 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
1565 instruction, for use by the disassembler.
1567 * sparc-dis.c (SEX): Add sign extension macro. Replace many
1568 hand-coded sign extensions that depended on 32-bit host ints.
1569 FIXME, we still depend on big-endian host bitfield ordering.
1570 (sparc_print_insn): Set the insn_info_valid field, and the
1571 other fields that describe the instruction being printed.
1575 * sparc-opc.c (call): Accept all 6 addressing modes valid for
1576 `jmp' instead of just one of them.
1580 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
1581 (fput_fp_reg_r): Renamed from fput_reg_r.
1582 (fput_fp_reg): New function.
1583 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
1585 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
1587 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
1591 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
1593 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
1594 don't output a space.
1596 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
1600 * mips-opc.c: New file, containing opcode table from
1601 ../include/opcode/mips.h.
1602 * Makefile.in: Add it.
1606 * m88k-dis.c: New file, moved in from gdb and changed to use the
1607 new dis-asm.h disassembler interface.
1608 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
1609 (m88k-dis.o): New target.
1613 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
1614 argument string const char * to correspond to opcode/mips.h.
1618 * mips-dis.c: Updated to account for name changes in new version
1620 * Makefile.in: Added header file dependencies.
1624 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
1628 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
1629 extend, rather than shifts.
1633 * Makefile.in: Undo 15 June change.
1637 * m68k-dis.c (print_insn_arg): Change return value to byte count
1639 * m68k-dis.c: Re-write to detect invalid operands before
1640 printing anything, so we can handle this the same way we
1641 handle invalid opcodes.
1645 * sh-dis.c, sh-opc.h: Understand some more opcodes.
1649 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
1654 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
1656 * configure.in: Do make sysdep.h link.
1657 * Makefile.in: Search ../include. Don't search ../bfd.
1662 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
1663 Do not print a space before the completers specified by
1668 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
1669 defined, since gdb has been fixed.
1672 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
1673 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
1674 be a *disassemble_info, not a *FILE.
1675 * hppa-dis.c: Support 'd', '!', and 'a'.
1676 * hppa-dis.c: Support 's' to extract a 2 bit space register.
1677 * hppa-dis.c: Delete cases which are no longer needed.
1681 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
1685 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
1690 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
1691 * configure.in: No longer need to configure to get sysdep.h.
1696 * hppa-dis.c: Support 'I', 'J', and 'K' in output
1697 templates for 1.1 FP computational instructions.
1701 * h8500-dis.c (print_insn_h8500): Address argument is type
1703 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
1706 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
1707 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
1709 * sparc-dis.c (compare_opcodes): Move static declaration to
1714 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
1715 instruction, remove unimp hack from 'l' argument.
1719 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
1725 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
1730 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
1731 arrays of string pointers to 2-d arrays of chars, to save
1736 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
1737 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
1741 * hppa-dis.c: New file from Utah, adapted to new disassembler
1743 * Makefile.in: Include it.
1747 * sh-dis.c, sh-opc.h: New files.
1751 * alpha-dis.c, alpha-opc.h: New files.
1755 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
1760 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
1764 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
1769 * sparc-dis.c: Use fprintf_func a few places where I forgot,
1770 and double percent signs a few places.
1772 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
1774 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
1775 Use info->print_address_func not print_address.
1777 * dis-buf.c (generic_print_address): New function.
1781 * Makefile.in: Add sparc-dis.c.
1782 sparc-dis.c: New file, merges binutils and gdb versions as follows:
1784 Add `add' instruction to the set that get checked
1785 for a preceding `sethi' in order to print an absolute address.
1786 * (print_insn): Disassembly prefers real instructions.
1787 (is_delayed_branch): Speed up.
1788 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
1789 Still missing some float ops, and needs testing.
1790 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
1791 F_ALIAS. Use printf, not fprintf, when not passing a file
1793 (compare_opcodes): Check that identical instructions have
1794 identical opcodes, complain otherwise.
1797 * Include reg_names.
1799 Use dis-asm.h/read_memory_func interface.
1803 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
1804 deliberately return non-zero to setjmp from longjmp. Otherwise
1805 this code fails to compile.
1809 * m68k-dis.c: Fix prototype for fetch_arg().
1813 * dis-buf.c: New file, for new read_memory_func interface.
1814 Makefile.in (OFILES): Include it.
1815 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
1816 Use new read_memory_func interface.
1820 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
1821 * h8500-opc.h: Fix couple of opcodes.
1823 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
1825 * Makefile.in: add dvi & installcheck targets
1829 * Makefile.in: Update for h8500-dis.c.
1833 * h8500-dis.c, h8500-opc.h: New files
1837 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
1838 ../include/dis-asm.h.
1839 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
1840 and ../gdb/m68k-pinsn.c).
1841 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
1842 and ../gdb/i386-pinsn.c).
1843 * m68881-ext.c: New file. Moved definition of
1844 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
1845 * Makefile.in: Adjust for new files.
1847 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
1848 can be dis-assembled.
1852 * mips-dis.c (print_insn_arg): Now returns void.
1856 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
1857 files that use the macros.
1861 * mips-dis.c: New file, from gdb/mips-pinsn.c.
1862 * Makefile.in (DIS_LIBS): Added mips-dis.o.
1863 (CFILES): Added mips-dis.c.
1867 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
1868 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
1872 * Makefile.in: Improve *clean rules.
1873 * configure.in: Allow a default host.
1875 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1877 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
1878 files include other sysdep files
1882 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
1886 * configure.in: For host support, use ../bfd/configure.host
1887 so it stays in sync with the ../bfd/hosts database.
1889 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1891 * configure.in: use cpu-vendor-os triple instead of nested cases
1895 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
1896 *always* the wrong one.
1900 * z8kgen.c: added copyright info
1904 * z8k-dis.c (unparse_instr): prettier tabs
1905 * z8kgen.c -> z8k-opc.h: bug fixes in tables
1907 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
1909 * configure.in: Add ncr* configuration.
1910 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
1911 picayune ANSI compilers happy.
1915 * configure.in (i386): Make i386 and i486 synonymous for now.
1916 * configure.in (i[34]86-*-sysv4): Add my_host definition.
1920 * Makefile.in (install): Fix typo.
1924 * Makefile.in (make): Remove obsolete crud.
1925 (sparc-opc.o): Avoid Sun Make VPATH bug.
1929 * Makefile.in: since there are no SUBDIRS, remove rule and
1930 references of subdir_do.
1934 * Makefile.in (install): Get the library name right here too.
1935 Don't install bfd.h, since it's unrelated to this library. No
1936 subdirs to recurse into, either.
1937 (CFILES): The source file has a .c suffix, not .o.
1939 * sparc-opc.c: New file, moved from BFD.
1940 * Makefile.in (OFILES): Build it.
1944 * z8k-dis.c: fixed forward refferences of some declarations.
1948 * Makefile.in: get the name of the library right
1952 * z8k-dis.c: knows how to disassemble z8k stuff
1953 * z8k-opc.h: new file full of z8000 opcodes
1957 version-control: never