3 * mips-opc.c: Added shorthand (V1) for INSN_4100 manifest. Added
4 the VR4100 specific instructions to the mips_opcodes structure.
8 * mpw-config.in, mpw-make.sed: Remove ugly workaround for
9 ugly Metrowerks bug in CW6, is fixed in CW7.
13 * ppc-opc.c (whole file): Add flags for common/any support.
17 * Makefile.in (BISON): Remove macro.
18 (FLAGS_TO_PASS): Remove BISON.
24 * m68k-dis.c (print_insn_m68k): Recognize all two-word
25 instructions that take no args by looking at the match mask.
26 (print_insn_arg): Always print "%" before register names.
27 [case 'c']: Use "nc" for the no-cache case, as recognized by gas.
28 [case '_']: Don't print "@#" before address.
29 [case 'J']: Use "%s" as format string, not register name.
30 [case 'B']: Treat place == 'C' like 'l' and 'L'.
34 * i386-dis.c: Describe cmpxchg8b operand, and spell the opcode
41 * alpha-opc.h (MEMORY_FUNCTION_FORMAT_MASK): added.
42 (alpha_insn_set): added definitions for VAX floating point
43 instructions (Unix compilers don't generate these, but handcoded
44 assembly might still use them).
46 * alpha-dis.c (print_insn_alpha): added support for disassembling
47 the miscellaneous instructions in the Alpha instruction set.
51 * mpw-config.in: Add m68k-opc.c.o to BFD_MACHINES for m68k,
52 no longer create sysdep.h, sed ppc-opc.c to work around a
53 serious Metrowerks C bug.
54 * mpw-make.in: Remove.
55 * mpw-make.sed: New file, used by mpw-configure to edit
56 Makefile.in into an MPW makefile.
60 * Makefile.in (maintainer-clean): New synonym for realclean.
64 * m68k-opc.c: Split pmove patterns which use 'P' into patterns
65 which use '0', '1', and '2' instead. Specify the proper size for
66 a pmove immediate operand. Correct the pmovefd patterns to be
67 moves to a register, not from a register.
68 * m68k-dis.c (print_insn_arg): Replace 'P' with '0', '1', '2'.
72 * sparc-opc.c (sparc_opcodes): Mark all insns that reference
73 %psr, %wim, %tbr as F_NOTV9.
77 * Makefile.in (Makefile): Just rebuild Makefile when running
79 (config.h, stamp-h): New targets.
80 * configure.in: Call AC_CONFIG_HEADER and AC_CANONICAL_SYSTEM
81 earlier. Don't bother to call AC_ARG_PROGRAM. Touch stamp-h when
85 * mips-opc.c: Change unaligned loads and stores with "t,A"
86 operands to use "t,A(b)".
91 * sh-dis.c (print_insn_shx): Add F_FR0 support.
96 * sh-dis.c (print_insn_shx): Change loop over op->arg[n] to iterate
97 until 3 instead of until 2.
101 * Makefile.in (ALL_CFLAGS): Define.
102 (.c.o, disassemble.o): Use $(ALL_CFLAGS).
103 (MOSTLYCLEAN): Add config.log.
104 (distclean): Don't remove config.log.
105 * configure.in: Substitute HDEFINES.
106 * configure: Rebuild.
111 * sh-opc.h (sh_arg_type): Add F_FR0.
112 (sh_table, case fmac): Add F_FR0 as first argument.
117 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
121 * sparc-dis.c: Remove all references to NO_V9.
125 * aclocal.m4: Just include ../bfd/aclocal.m4.
126 * configure: Rebuild.
130 * sparc-dis.c (X_DISP19): Define.
131 (print_insn, case 'G'): Use it.
132 (print_insn, case 'L'): Sign extend displacement.
136 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
137 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
138 host_makefile_frag or frags.
139 * aclocal.m4: New file.
140 * configure: Rebuild.
141 * Makefile.in (INSTALL): Set to @INSTALL@.
142 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
143 (INSTALL_DATA): Set to @INSTALL_DATA@.
145 (AR_FLAGS): Set to rc rather than qc.
146 (CC): Define as @CC@.
147 (CFLAGS): Set to @CFLAGS@.
148 (@host_makefile_frag@): Remove.
149 (config.status): Remove dependency upon @frags@.
151 * configure.in: ../bfd/config.bfd now just sets shell variables.
152 Use them rather than looking through target Makefile fragments.
153 * configure: Rebuild.
158 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
163 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
164 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
167 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
168 (lookup_{name,value}): New functions.
169 (prefetch_table): New static local.
170 (sparc_{encode,decode}_prefetch): New functions.
171 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
176 * sh-opc.h: Add blank lines to improve readabililty of sh3e
182 * sh-dis.c: Correct comment on first line of file.
186 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
188 * sparc-opc.c (asi, membar): New static locals.
189 (sparc_{encode,decode}_{asi,membar}): New functions.
190 (sparc_opcodes, membar insn): Fix.
191 * sparc-dis.c (print_insn): Call sparc_decode_asi.
192 Support decoding of membar masks.
197 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
201 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
202 and likewise for the other branches. Add bhs as an alias for bcc,
203 and likewise for the size variants. Add dbhs as an alias for
209 * sh-opc.h (FP sts instructions): Update to match reality.
214 * m68k-dis.c: (fpcr_names): Add % before all register names.
215 (reg_names): Likewise.
216 (print_insn_arg): Don't explicitly print % before register names.
217 Add % before register names in static array names. In case 'r',
218 print data registers as `@(Dn)', not `Dn@'. When printing a
219 memory address, don't print @# before it.
220 (print_indexed): Change base_disp and outer_disp from int to
221 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
222 syntax. Sign extend 8 byte displacement correctly.
223 (print_base): Print using MIT syntax. Print zpc when appropriate.
224 Change parameter disp from int to bfd_vma.
226 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
232 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
233 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
234 * sh-opc.h (sh_arg_type): Add new operand types.
235 (sh_table): Add new opcodes from SH3E Floating Point ISA.
240 * Makefile.in (distclean): Remove generated file config.h.
244 * Makefile.in (distclean): Remove generated file config.h.
248 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
250 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
252 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
253 rather than numopcodes. Use m68k_opcodes rather than removed
254 opcode function. Don't check F_ALIAS.
255 (print_insn_arg): Change first parameter to be const char *.
256 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
257 (m68k-opc.o): New target.
258 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
259 * configure: Rebuild.
263 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
264 (opcode_bits, opcode_hash_table): New variables.
265 (opcodes_initialized): Renamed from opcodes_sorted.
266 (build_hash_table): New function.
267 (is_delayed_branch): Use hash table.
268 (print_insn): Renamed from print_insn_sparc, made static.
269 Build and use hash table. If !sparc64, ignore sparc64 insns,
270 and vice-versa if sparc64.
271 (print_insn_sparc, print_insn_sparc64): New functions.
272 (compare_opcodes): Move sparc64 opcodes to end.
273 Print commutative insns with constant second.
274 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
278 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
279 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
280 avoids printing a delay slot in a delay slot.
281 * sh-opc.h (sh_table): Fully bracket last entry.
285 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
289 * configure.in: Get host_makefile_frag from ${srcdir}.
291 * configure.in: Autoconfiscated. Check for string[s].h. Create
292 config.h from config.in. Don't set up sysdep.h link.
293 * sysdep.h: New file.
294 * configure, config.in: New files, generated from configure.in.
295 * Makefile.in: Updated to be processed autoconf-style.
296 (distclean): Keep sysdep.h. Remove config.log and config.cache.
297 (Makefile): Depend on config.status.
298 (config.status): New rule.
299 * configure.bat: Update Makefile substitutions.
303 * mips-opc.c (L1): Define.
304 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
305 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
310 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
311 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
312 have multiple add units but only a single logical unit.
314 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
315 shifted by 18, without any insertion or extraction function.
316 (insert_cr, extract_cr): Remove.
321 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
326 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
331 * mpw-config.in: Add sh and i386 configs, remove sparc config.
332 * sh-opc.h: Add copyright.
336 * Makefile.in (crunch-m68k): Delete extra target accidentally
337 checked in a while ago.
341 * sh-opc.h (sh_table): Add SH3 support.
345 * sh-opc.h: Added bsrf and braf.
349 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
350 bogus [ls]fm{ea,fd} patterns.
352 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
353 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
354 initialize it from memory. Make function static.
355 (print_insn_{big,little}_arm): New functions.
356 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
357 the correct endianness.
362 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
363 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
368 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
373 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
374 17th, so that it builds again using GCC as the compiler.
378 * mips-dis.c (print_insn_little_mips): Cast return value from
379 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
380 expects an unsigned long, and that might be fewer words of
381 argument storage (e.g., if bfd_vma is long long on a 32-bit
383 (print_insn_big_mips): Likewise with bfd_getb32 value.
384 (_print_insn_mips): Now static.
388 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
389 gcc memory hog problem with initializer is fixed.
394 * arc-opc.c (NULL): Define.
395 (arc_operands, insn fields u,s): Delete.
396 (arc_operands, insn fields a,b,c): Mark as signed.
397 (arc_opcodes): No longer const, links computed at run-time.
398 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
399 suffixes that affect the insn code.
400 (arc_opcodes): Resort table to macros are first.
401 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
402 (arc_opcodes, st [b] entry): Likewise.
403 (arc_opcodes, st [b,d] entry): Fix mask, value.
404 (arc_reg_names): Add entries for r29, r30, r31, r60.
405 (opcode_map, icode_map): New static globals.
406 (arc_opcode_init_tables): Initialize them.
407 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
408 (insert_shimmoffset): Signal error if register present.
410 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
415 Merge in support for Mac MPW as a host.
416 (Old change descriptions retained for informational value.)
418 * mpw-config.in (archname): Compute from the config.
419 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
421 * mpw-config.in (target_arch): Compute from canonical target.
422 (m68k, mips, powerpc, sparc): Add architectures.
423 * mpw-make.in (disassemble.c.o): Add.
424 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
426 * mpw-config.in (BFD_MACHINES): Set to a default value.
427 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
429 * mpw-make.in (CSEARCH): Add extra-include to search path.
431 * mpw-config.in (varargs.h): Don't create.
432 (sysdep.h): Create using forward-include.
433 * mpw-make.in (CSEARCH): Add include/mpw to search path.
435 * mpw-config.in: New file, MPW version of configure.in.
436 * mpw-make.in: New file, MPW version of Makefile.in.
441 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
442 Call arc_get_opcode_mach to map bfd mach number to opcode value.
443 (print_insn_*): Pass bfd mach number, not opcode version.
444 * arc-opc.c (arc_get_opcode_mach): New function.
449 * alpha-dis.c (print_insn_alpha): Put empty statement after
454 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
455 (low_sign_extend): Likewise.
456 (get_field): Delete unused function.
457 (set_field, deposit_14, deposit_21): Likewise.
461 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
468 * alpha-opc.h (OSF_ASMCODE): define
469 print pal-code names as defined in App C of the
470 Alpha Architecture Reference Manual
472 * alpha-dis.c: cleaned up output
473 print stylized code forms as defined in App A.4.3 of the
474 Alpha Architecture Reference Manual
478 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
480 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
485 * m68k-dis.c (opcode): New function. Returns address of opcode
486 table entry given index, even if the opcode table was split to
487 work around gcc bugs.
488 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
490 (BREAK_UP_BIG_DECL): Make secondary array static and const.
491 (reg_names): Now const.
492 (print_insn_arg): Arrays cacheFieldName and names now const.
493 (print_indexed): Array scales now const.
498 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
499 (print_insn_arc_{host,graphics,audio}): Likewise.
500 (print_insn): Add prototype.
501 (arc_get_disassembler): New arg `big_p'. Return little or big
502 print fn accordingly.
503 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
504 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
505 (arc_opval_supported): Likewise.
506 * disassemble.c (disassembler): Pass big endian flag to
507 arc_get_disassembler.
512 * ppc-opc.c: Sort recently added instructions by minor opcode
513 number within major opcode number.
517 * hppa-dis.c: Include libhppa.h.
521 * mips-opc.c: Change dli to use M_DLI, and add dla.
525 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
530 * arc-dis.c (arc_get_disassembler): Change argument to int,
531 one of bfd_mach_arc_xxx. All callers updated.
536 * mips-opc.c: Add r4650 mul instruction.
540 * mips-opc.c: Add uld and usd macros for unaligned double load and
545 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
546 mfdcr, mtdcr, icbt, iccci.
551 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
552 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
553 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
554 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
555 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
556 (insert_absaddr): New function.
560 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
561 New argument `cpu', pass it to arc_opcode_init_tables.
562 Document byte order dependencies. Ignore unsupported insns.
563 (arc_get_disassembler): New function.
564 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
565 print_insn_arc_audio): New functions.
566 * arc-opc.c (MULTSHIFT operand): Delete.
567 (UNSIGNED, SATURATION): New operands.
568 (mac, mul, mul64, mulu64): New insns.
569 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
570 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
571 (host,graphics,audio extended and auxiliary regs): Define.
572 (ss, sc, mh, ml): New suffixes.
573 (arc_opcode_supported, arc_opval_supported): New functions.
574 (insert_multshift, extract_multshift): Deleted.
575 * disassemble.c (disassembler, case bfd_arch_arc): Call
576 arc_get_disassembler to get disassembler routine.
581 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
582 signed char fields to shorts, more portable.
586 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
587 char fields as signed chars, since they may have negative values.
591 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
597 * ppc-opc.c (extract_bdm): Correct parenthezisation.
598 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
603 * ppc-opc.c: Changes based on patch from David Edelsohn
605 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
608 (insert_tbr): New static function.
609 (extract_tbr): New static function.
610 (XFXFXM_MASK, XFXM): Define.
611 (XSPRBAT_MASK, XSPRG_MASK): Define.
612 (powerpc_opcodes): Add instructions to access special registers by
613 name. Add mtcr and mftbu.
617 * mips-opc.c (P3): Define.
618 (mips_opcodes): Add mad and madu.
620 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
622 * configure.in: Add W65 support.
623 * disassemble.c: Likewise.
624 * w65-opc.h, w65-dis.c: New files.
628 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
634 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
636 * arc-opc.c (extract_reladdr): New function.
637 (insert_reladdr): Store address right-shifted by 2.
642 * mips-opc.c: Add dli as a synonym for li.
647 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
649 (extraction fns): Insn argument now array of two words. Return pointer
650 to value's table entry. All uses changed.
651 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
652 (insert_multshift, extract_multshift): New fns.
653 (arc_operands): Add support for cache bypass suffix. Add support for
654 predefined aux regs. Modifier bits moved to flags field.
655 (arc_opcodes): Likewise.
656 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
657 New insn rlc. Update to syntax in programmer's manual.
658 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
659 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
661 (arc_opcode_init_tables): New argument to indicate cpu type.
662 (insert_reg): Handle predefined aux regs.
663 (extract_reg): Likewise.
664 (lookup_register): New fn.
665 * arc-dis.c (arc_condition_codes): Deleted.
666 (print_insn_arc): Handle insns with 32 bit immediate constants better.
667 Clean up modifier handling. Handle predefined aux regs.
672 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
673 print something for reserved opcode values, even if it won't
676 * mips-dis.c (_print_insn_mips): When initializing, shift right
677 and mask, to avoid sign extension problems on the Alpha.
679 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
685 * configure.in: Add ARC support.
686 * disassemble.c: Likewise.
687 * arc-dis.c, arc-opc.c: New files.
692 * sh-opc.h (mov.l gbr): Get direction right.
693 * sh-dis.c (print_insn_shx): New function.
694 (print_insn_shl, print_insn_sh): Call print_insn_shx to
695 print opcodes with right byte order.
699 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
700 to avoid conflicts with getopt.
704 * hppa-dis.c (print_insn_hppa): Read the instruction using
705 bfd_getb32, so that it works on a little endian or 64 bit host.
706 Remove unused local variable op.
710 * mips-opc.c: Use or instead of addu for pseudo-op move, since
711 addu does not work correctly if -mips3.
715 * a29k-dis.c (print_special): Add special register names defined
716 on 29030, 29040 and 29050.
717 (print_insn): Handle new operand type 'I'.
721 * Makefile.in (INSTALL): Use top level install.sh script.
725 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
726 that it works on a little endian host.
730 * configure.in: Use ${config_shell} when running config.bfd.
734 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
738 * a29k-dis.c (print_insn): Print the opcode.
742 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
746 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
750 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
751 which store a value into memory.
755 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
756 * arm-dis.c, arm-opc.h: New files.
760 * Makefile.in (ns32k-dis.o): Add dependency.
761 * ns32k-dis.c (print_insn_arg): Declare initialized local as
762 string, not as array of chars.
766 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
768 * sparc-opc.c: Added sparclite extended FP operations, and
769 versions of v9 impdep* instructions permitting specification of
774 * i960-dis.c (reg_names): Now const.
775 (struct sparse_tabent): New type, copied from array type in mem
777 (ctrl): Local static array ctrl_tab now const.
778 (cobr): Local static array cobr_tab now const.
779 (mem): Local variables reg1, reg2, reg3 now point to const. Local
780 static variable mem_tab no longer explicitly initialized. Changed
781 mem_init to const array of struct sparse_tabent.
782 (reg): Local static variable reg_tab no longer explicitly
783 initialized. Changed reg_init to const array of struct
785 (ea): Local static array scale_tab now const.
787 start-sanitize-i960xl
788 * i960-dis.c (reg): Added i960XL instructions to reg_init table.
794 * configure.bat: the disassember needs to be enabled for
795 "objdump -d" to work in djgpp.
799 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
800 (invalid_float): Enabled general version, doesn't require running
801 on ns32k host. Changed to take char* argument, and test for
802 explicitly specified sizes, instead of using sizeof() on host CPU
804 (INVALID_FLOAT): Cast first argument.
805 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
806 list_P032, list_M032): Now const.
807 (optlist, list_search): Made appropriate arguments now point to
809 (print_insn_arg): Changed static array of one-character-string
810 pointers into a static const array of characters; fixed sprintf
811 statement accordingly.
815 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
816 from distribution. A ns32k-dis.c from a previous distribution has
817 been brought up to date and supports the new interface.
819 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
821 * configure.in: add bfd_ns32k_arch target support.
823 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
824 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
828 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
833 * h8300-dis.c, mips-dis.c: Don't use true and false.
837 * configure.in: Change --with-targets to --enable-targets.
841 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
842 opcodes to the first instruction with that opcode, to speed
848 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
852 * configure.bat: update to latest makefile.in
856 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
857 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
858 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
859 slot insn is in a delay slot.
860 * z8k-opc.h: (resflg): Fix patterns.
861 * h8500-opc.h Fix CR insn patterns.
865 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
866 "cmpl" before POWER versions, so that gas -many uses them.
870 * disassemble.c: New file.
871 * Makefile.in (OFILES): Add disassemble.o.
872 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
873 * configure.in: Define ARCHDEFS in Makefile. Code taken from
874 binutils/configure.in.
876 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
877 opcode being examined.
881 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
882 (insert_ral, insert_ram, insert_ras): New functions.
883 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
884 RAS for store with update.
888 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
893 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
898 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
902 * ppc-opc.c (powerpc_operands): The signedp field has been
903 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
904 instead. Add new operand SISIGNOPT.
905 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
907 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
912 * i386-dis.c (struct private): Renamed to dis_private. `private'
913 is a reserved word for dynix cc.
917 * configure.in: Change error message to refer to bfd/config.bfd
918 rather than bfd/configure.in.
922 * ppc-opc.c: Define POWER2 as short alias flag.
923 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
928 * i960-dis.c (print_insn_i960): Don't read a second word for
929 opcodes 0, 1, 2 and 3.
933 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
937 * m68881-ext.c: Removed; no longer used.
938 * Makefile.in: Changed accordingly.
940 * m68k-dis.c (ext_format_68881): Don't declare.
941 (print_insn_m68k): If an instruction uses place 'i', it uses at
942 least four fixed bytes.
943 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
944 extended float, convert to double using floatformat_to_double, not
945 ieee_extended_to_double, and fetch the data before converting it.
949 * mips-opc.c: It's sqrt.s, not sqrt.w. From
954 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
955 PowerPC uses bdnz[l][a].
959 * dis-buf.c, i386-dis.c: Include sysdep.h.
963 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
965 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
966 by Motorola PowerPC 601 with PPC_OPCODE_601.
967 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
968 Disassemble Motorola PowerPC 601 instructions as well as normal
969 PowerPC instructions.
973 * i960-dis.c (reg, mem): Just use a static array instead of
978 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
979 condition name index if this is for a negated condition.
981 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
982 Floating point format for 'H' operand is backwards from normal
983 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
984 operands (fmpyadd and fmpysub), handle bizarre register
985 translation correctly for single precision format.
987 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
988 or 'I' operands if the next format specifier is 'M' (fcmp
989 condition completer).
993 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
994 single number giving a bitmask for the MB and ME fields of an M
995 form instruction. Change NB to accept 32, and turn it into 0;
996 also turn 0 into 32 when disassembling. Seperated SH from NB.
997 (insert_mbe, extract_mbe): New functions.
998 (insert_nb, extract_nb): New functions.
999 (SC_MASK): Mask out SA and LK bits.
1000 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
1001 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
1002 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
1003 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
1004 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
1005 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
1006 (powerpc_macros): Define table of macro definitions.
1007 (powerpc_num_macros): Define.
1009 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
1010 if PPC_OPERAND_NEXT is set.
1014 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
1015 char. Retrieve contents using bfd_getl32 instead of shifting.
1019 * ppc-opc.c: New file. Opcode table for PowerPC, including
1020 opcodes for POWER (RS/6000).
1021 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
1022 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
1023 (CFILES): Add ppc-dis.c.
1024 (ppc-dis.o, ppc-opc.o): New targets.
1025 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
1029 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
1030 No space before 'u', 'f', or 'N'.
1034 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
1035 farther than we should.
1037 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
1041 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
1045 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
1046 needs it, to prevent reading past the end of a section.
1050 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
1051 Removed t,A case for la; always use t,A(b) case.
1056 * mips-dis.c (print_insn_arg): Handle 'k'.
1057 * mips-opc.c: Make cache use k, not t.
1061 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
1062 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
1063 FLOAT_FORMAT_CODE to put out floating point register names.
1067 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
1071 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
1075 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
1076 larger than 32. Moved dsxx32 variants first for disassembler.
1080 * z8kgen.c, z8k-opc.h: Add full lda information.
1084 * hppa-dis.c (print_insn_hppa): Do not emit a space after
1085 movb instructions. Any necessary space will be emitted by
1086 the code to handle nullification completers.
1090 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
1094 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
1095 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
1099 * mips-opc.c: Correct lwu opcode value (book had it wrong).
1103 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
1104 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
1108 * m88k-dis.c (m88kdis): comment change. Remove space after
1110 (printop): handle new arg types DEC and XREG for m88110.
1114 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
1115 type for absolute branch addresses. Delete special
1116 "ble" and "be" code in 'W' operand code.
1120 * mips-opc.c: Set hazard information correctly for branch
1121 likely instructions.
1125 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
1126 info->fprintf_func for printing and info->print_address_func for
1131 * mips-opc.c: Set INSN_TRAP for tXX instructions.
1136 Corrected second case of "b" for disassembler.
1140 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
1141 to BFD swapping routines to correspond to BFD name changes.
1145 * mips-opc.c: Change div machine instruction to be z,s,t rather
1146 than s,t. Change div macro to be d,v,t rather than d,s,t.
1147 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
1148 rem and remu which generates only the corresponding div
1149 instruction. This is for compatibility with the MIPS assembler,
1150 which only generates the simple machine instruction when an
1151 explicit destination of $0 is used.
1152 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
1157 WR_31 hazard for bal, bgezal, bltzal.
1161 * hppa-dis.c (print_insn_hppa): Use print function
1162 from within the disassemble_info, not fprintf_filtered.
1166 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
1171 * mips-opc.c ("absu"): Removed.
1176 * mips-opc.c: Added r6000 and r4000 instructions and macros.
1177 Changed hazard information to distinguish between memory load
1178 delays and coprocessor load delays.
1182 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
1186 * configure.in: Don't pass cpu to config.bfd.
1190 * m88k-dis.c (m88kdis): Make class unsigned.
1194 * alpha-dis.c (print_insn_alpha): One branch format case was
1195 missing the instruction name.
1199 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
1200 Add the arch-specific auxiliary files.
1201 (OFILES): Remove the arch-specific auxiliary files
1202 and use BFD_MACHINES instead of DIS_LIBS.
1203 * configure.in: Set BFD_MACHINES based on --with-targets option.
1207 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
1212 * sparc-opc.c: Change CONST to const to deal with gcc
1213 -Dconst=__const -traditional.
1218 coprocessor instructions out of #if 0, and made them use new
1223 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
1227 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
1228 instruction, for use by the disassembler.
1230 * sparc-dis.c (SEX): Add sign extension macro. Replace many
1231 hand-coded sign extensions that depended on 32-bit host ints.
1232 FIXME, we still depend on big-endian host bitfield ordering.
1233 (sparc_print_insn): Set the insn_info_valid field, and the
1234 other fields that describe the instruction being printed.
1238 * sparc-opc.c (call): Accept all 6 addressing modes valid for
1239 `jmp' instead of just one of them.
1243 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
1244 (fput_fp_reg_r): Renamed from fput_reg_r.
1245 (fput_fp_reg): New function.
1246 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
1248 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
1250 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
1254 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
1256 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
1257 don't output a space.
1259 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
1263 * mips-opc.c: New file, containing opcode table from
1264 ../include/opcode/mips.h.
1265 * Makefile.in: Add it.
1269 * m88k-dis.c: New file, moved in from gdb and changed to use the
1270 new dis-asm.h disassembler interface.
1271 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
1272 (m88k-dis.o): New target.
1276 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
1277 argument string const char * to correspond to opcode/mips.h.
1281 * mips-dis.c: Updated to account for name changes in new version
1283 * Makefile.in: Added header file dependencies.
1287 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
1291 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
1292 extend, rather than shifts.
1296 * Makefile.in: Undo 15 June change.
1300 * m68k-dis.c (print_insn_arg): Change return value to byte count
1302 * m68k-dis.c: Re-write to detect invalid operands before
1303 printing anything, so we can handle this the same way we
1304 handle invalid opcodes.
1308 * sh-dis.c, sh-opc.h: Understand some more opcodes.
1312 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
1317 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
1319 * configure.in: Do make sysdep.h link.
1320 * Makefile.in: Search ../include. Don't search ../bfd.
1325 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
1326 Do not print a space before the completers specified by
1331 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
1332 defined, since gdb has been fixed.
1335 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
1336 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
1337 be a *disassemble_info, not a *FILE.
1338 * hppa-dis.c: Support 'd', '!', and 'a'.
1339 * hppa-dis.c: Support 's' to extract a 2 bit space register.
1340 * hppa-dis.c: Delete cases which are no longer needed.
1344 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
1348 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
1353 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
1354 * configure.in: No longer need to configure to get sysdep.h.
1359 * hppa-dis.c: Support 'I', 'J', and 'K' in output
1360 templates for 1.1 FP computational instructions.
1364 * h8500-dis.c (print_insn_h8500): Address argument is type
1366 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
1369 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
1370 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
1372 * sparc-dis.c (compare_opcodes): Move static declaration to
1377 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
1378 instruction, remove unimp hack from 'l' argument.
1382 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
1388 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
1393 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
1394 arrays of string pointers to 2-d arrays of chars, to save
1399 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
1400 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
1404 * hppa-dis.c: New file from Utah, adapted to new disassembler
1406 * Makefile.in: Include it.
1410 * sh-dis.c, sh-opc.h: New files.
1414 * alpha-dis.c, alpha-opc.h: New files.
1418 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
1423 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
1427 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
1432 * sparc-dis.c: Use fprintf_func a few places where I forgot,
1433 and double percent signs a few places.
1435 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
1437 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
1438 Use info->print_address_func not print_address.
1440 * dis-buf.c (generic_print_address): New function.
1444 * Makefile.in: Add sparc-dis.c.
1445 sparc-dis.c: New file, merges binutils and gdb versions as follows:
1447 Add `add' instruction to the set that get checked
1448 for a preceding `sethi' in order to print an absolute address.
1449 * (print_insn): Disassembly prefers real instructions.
1450 (is_delayed_branch): Speed up.
1451 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
1452 Still missing some float ops, and needs testing.
1453 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
1454 F_ALIAS. Use printf, not fprintf, when not passing a file
1456 (compare_opcodes): Check that identical instructions have
1457 identical opcodes, complain otherwise.
1460 * Include reg_names.
1462 Use dis-asm.h/read_memory_func interface.
1466 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
1467 deliberately return non-zero to setjmp from longjmp. Otherwise
1468 this code fails to compile.
1472 * m68k-dis.c: Fix prototype for fetch_arg().
1476 * dis-buf.c: New file, for new read_memory_func interface.
1477 Makefile.in (OFILES): Include it.
1478 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
1479 Use new read_memory_func interface.
1483 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
1484 * h8500-opc.h: Fix couple of opcodes.
1486 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
1488 * Makefile.in: add dvi & installcheck targets
1492 * Makefile.in: Update for h8500-dis.c.
1496 * h8500-dis.c, h8500-opc.h: New files
1500 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
1501 ../include/dis-asm.h.
1502 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
1503 and ../gdb/m68k-pinsn.c).
1504 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
1505 and ../gdb/i386-pinsn.c).
1506 * m68881-ext.c: New file. Moved definition of
1507 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
1508 * Makefile.in: Adjust for new files.
1510 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
1511 can be dis-assembled.
1515 * mips-dis.c (print_insn_arg): Now returns void.
1519 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
1520 files that use the macros.
1524 * mips-dis.c: New file, from gdb/mips-pinsn.c.
1525 * Makefile.in (DIS_LIBS): Added mips-dis.o.
1526 (CFILES): Added mips-dis.c.
1530 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
1531 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
1535 * Makefile.in: Improve *clean rules.
1536 * configure.in: Allow a default host.
1538 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1540 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
1541 files include other sysdep files
1545 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
1549 * configure.in: For host support, use ../bfd/configure.host
1550 so it stays in sync with the ../bfd/hosts database.
1552 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1554 * configure.in: use cpu-vendor-os triple instead of nested cases
1558 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
1559 *always* the wrong one.
1563 * z8kgen.c: added copyright info
1567 * z8k-dis.c (unparse_instr): prettier tabs
1568 * z8kgen.c -> z8k-opc.h: bug fixes in tables
1570 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
1572 * configure.in: Add ncr* configuration.
1573 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
1574 picayune ANSI compilers happy.
1578 * configure.in (i386): Make i386 and i486 synonymous for now.
1579 * configure.in (i[34]86-*-sysv4): Add my_host definition.
1583 * Makefile.in (install): Fix typo.
1587 * Makefile.in (make): Remove obsolete crud.
1588 (sparc-opc.o): Avoid Sun Make VPATH bug.
1592 * Makefile.in: since there are no SUBDIRS, remove rule and
1593 references of subdir_do.
1597 * Makefile.in (install): Get the library name right here too.
1598 Don't install bfd.h, since it's unrelated to this library. No
1599 subdirs to recurse into, either.
1600 (CFILES): The source file has a .c suffix, not .o.
1602 * sparc-opc.c: New file, moved from BFD.
1603 * Makefile.in (OFILES): Build it.
1607 * z8k-dis.c: fixed forward refferences of some declarations.
1611 * Makefile.in: get the name of the library right
1615 * z8k-dis.c: knows how to disassemble z8k stuff
1616 * z8k-opc.h: new file full of z8000 opcodes
1620 version-control: never