4 * sh-opc.h (sh_arg_type): Add F_FR0.
5 (sh_table, case fmac): Add F_FR0 as first argument.
10 * sh-opc.h (sh_opcode_info): Increase arg array size to 4.
14 * sparc-dis.c: Remove all references to NO_V9.
18 * aclocal.m4: Just include ../bfd/aclocal.m4.
23 * sparc-dis.c (X_DISP19): Define.
24 (print_insn, case 'G'): Use it.
25 (print_insn, case 'L'): Sign extend displacement.
29 * configure.in: Run ../bfd/configure.host before AC_PROG_CC.
30 Subsitute CFLAGS and AR. Call AC_PROG_INSTALL. Don't substitute
31 host_makefile_frag or frags.
32 * aclocal.m4: New file.
34 * Makefile.in (INSTALL): Set to @INSTALL@.
35 (INSTALL_PROGRAM): Set to @INSTALL_PROGRAM@.
36 (INSTALL_DATA): Set to @INSTALL_DATA@.
38 (AR_FLAGS): Set to rc rather than qc.
40 (CFLAGS): Set to @CFLAGS@.
41 (@host_makefile_frag@): Remove.
42 (config.status): Remove dependency upon @frags@.
44 * configure.in: ../bfd/config.bfd now just sets shell variables.
45 Use them rather than looking through target Makefile fragments.
51 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
56 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
57 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
60 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
61 (lookup_{name,value}): New functions.
62 (prefetch_table): New static local.
63 (sparc_{encode,decode}_prefetch): New functions.
64 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
69 * sh-opc.h: Add blank lines to improve readabililty of sh3e
75 * sh-dis.c: Correct comment on first line of file.
79 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
81 * sparc-opc.c (asi, membar): New static locals.
82 (sparc_{encode,decode}_{asi,membar}): New functions.
83 (sparc_opcodes, membar insn): Fix.
84 * sparc-dis.c (print_insn): Call sparc_decode_asi.
85 Support decoding of membar masks.
90 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
94 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
95 and likewise for the other branches. Add bhs as an alias for bcc,
96 and likewise for the size variants. Add dbhs as an alias for
102 * sh-opc.h (FP sts instructions): Update to match reality.
107 * m68k-dis.c: (fpcr_names): Add % before all register names.
108 (reg_names): Likewise.
109 (print_insn_arg): Don't explicitly print % before register names.
110 Add % before register names in static array names. In case 'r',
111 print data registers as `@(Dn)', not `Dn@'. When printing a
112 memory address, don't print @# before it.
113 (print_indexed): Change base_disp and outer_disp from int to
114 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
115 syntax. Sign extend 8 byte displacement correctly.
116 (print_base): Print using MIT syntax. Print zpc when appropriate.
117 Change parameter disp from int to bfd_vma.
119 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
125 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
126 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
127 * sh-opc.h (sh_arg_type): Add new operand types.
128 (sh_table): Add new opcodes from SH3E Floating Point ISA.
133 * Makefile.in (distclean): Remove generated file config.h.
137 * Makefile.in (distclean): Remove generated file config.h.
141 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
143 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
145 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
146 rather than numopcodes. Use m68k_opcodes rather than removed
147 opcode function. Don't check F_ALIAS.
148 (print_insn_arg): Change first parameter to be const char *.
149 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
150 (m68k-opc.o): New target.
151 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
152 * configure: Rebuild.
156 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
157 (opcode_bits, opcode_hash_table): New variables.
158 (opcodes_initialized): Renamed from opcodes_sorted.
159 (build_hash_table): New function.
160 (is_delayed_branch): Use hash table.
161 (print_insn): Renamed from print_insn_sparc, made static.
162 Build and use hash table. If !sparc64, ignore sparc64 insns,
163 and vice-versa if sparc64.
164 (print_insn_sparc, print_insn_sparc64): New functions.
165 (compare_opcodes): Move sparc64 opcodes to end.
166 Print commutative insns with constant second.
167 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
171 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
172 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
173 avoids printing a delay slot in a delay slot.
174 * sh-opc.h (sh_table): Fully bracket last entry.
178 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
182 * configure.in: Get host_makefile_frag from ${srcdir}.
184 * configure.in: Autoconfiscated. Check for string[s].h. Create
185 config.h from config.in. Don't set up sysdep.h link.
186 * sysdep.h: New file.
187 * configure, config.in: New files, generated from configure.in.
188 * Makefile.in: Updated to be processed autoconf-style.
189 (distclean): Keep sysdep.h. Remove config.log and config.cache.
190 (Makefile): Depend on config.status.
191 (config.status): New rule.
192 * configure.bat: Update Makefile substitutions.
196 * mips-opc.c (L1): Define.
197 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
198 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
203 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
204 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
205 have multiple add units but only a single logical unit.
207 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
208 shifted by 18, without any insertion or extraction function.
209 (insert_cr, extract_cr): Remove.
214 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
219 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
224 * mpw-config.in: Add sh and i386 configs, remove sparc config.
225 * sh-opc.h: Add copyright.
229 * Makefile.in (crunch-m68k): Delete extra target accidentally
230 checked in a while ago.
234 * sh-opc.h (sh_table): Add SH3 support.
238 * sh-opc.h: Added bsrf and braf.
242 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
243 bogus [ls]fm{ea,fd} patterns.
245 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
246 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
247 initialize it from memory. Make function static.
248 (print_insn_{big,little}_arm): New functions.
249 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
250 the correct endianness.
255 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
256 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
261 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
266 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
267 17th, so that it builds again using GCC as the compiler.
271 * mips-dis.c (print_insn_little_mips): Cast return value from
272 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
273 expects an unsigned long, and that might be fewer words of
274 argument storage (e.g., if bfd_vma is long long on a 32-bit
276 (print_insn_big_mips): Likewise with bfd_getb32 value.
277 (_print_insn_mips): Now static.
281 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
282 gcc memory hog problem with initializer is fixed.
287 * arc-opc.c (NULL): Define.
288 (arc_operands, insn fields u,s): Delete.
289 (arc_operands, insn fields a,b,c): Mark as signed.
290 (arc_opcodes): No longer const, links computed at run-time.
291 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
292 suffixes that affect the insn code.
293 (arc_opcodes): Resort table to macros are first.
294 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
295 (arc_opcodes, st [b] entry): Likewise.
296 (arc_opcodes, st [b,d] entry): Fix mask, value.
297 (arc_reg_names): Add entries for r29, r30, r31, r60.
298 (opcode_map, icode_map): New static globals.
299 (arc_opcode_init_tables): Initialize them.
300 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
301 (insert_shimmoffset): Signal error if register present.
303 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
308 Merge in support for Mac MPW as a host.
309 (Old change descriptions retained for informational value.)
311 * mpw-config.in (archname): Compute from the config.
312 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
314 * mpw-config.in (target_arch): Compute from canonical target.
315 (m68k, mips, powerpc, sparc): Add architectures.
316 * mpw-make.in (disassemble.c.o): Add.
317 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
319 * mpw-config.in (BFD_MACHINES): Set to a default value.
320 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
322 * mpw-make.in (CSEARCH): Add extra-include to search path.
324 * mpw-config.in (varargs.h): Don't create.
325 (sysdep.h): Create using forward-include.
326 * mpw-make.in (CSEARCH): Add include/mpw to search path.
328 * mpw-config.in: New file, MPW version of configure.in.
329 * mpw-make.in: New file, MPW version of Makefile.in.
334 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
335 Call arc_get_opcode_mach to map bfd mach number to opcode value.
336 (print_insn_*): Pass bfd mach number, not opcode version.
337 * arc-opc.c (arc_get_opcode_mach): New function.
342 * alpha-dis.c (print_insn_alpha): Put empty statement after
347 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
348 (low_sign_extend): Likewise.
349 (get_field): Delete unused function.
350 (set_field, deposit_14, deposit_21): Likewise.
354 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
361 * alpha-opc.h (OSF_ASMCODE): define
362 print pal-code names as defined in App C of the
363 Alpha Architecture Reference Manual
365 * alpha-dis.c: cleaned up output
366 print stylized code forms as defined in App A.4.3 of the
367 Alpha Architecture Reference Manual
371 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
373 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
378 * m68k-dis.c (opcode): New function. Returns address of opcode
379 table entry given index, even if the opcode table was split to
380 work around gcc bugs.
381 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
383 (BREAK_UP_BIG_DECL): Make secondary array static and const.
384 (reg_names): Now const.
385 (print_insn_arg): Arrays cacheFieldName and names now const.
386 (print_indexed): Array scales now const.
391 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
392 (print_insn_arc_{host,graphics,audio}): Likewise.
393 (print_insn): Add prototype.
394 (arc_get_disassembler): New arg `big_p'. Return little or big
395 print fn accordingly.
396 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
397 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
398 (arc_opval_supported): Likewise.
399 * disassemble.c (disassembler): Pass big endian flag to
400 arc_get_disassembler.
405 * ppc-opc.c: Sort recently added instructions by minor opcode
406 number within major opcode number.
410 * hppa-dis.c: Include libhppa.h.
414 * mips-opc.c: Change dli to use M_DLI, and add dla.
418 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
423 * arc-dis.c (arc_get_disassembler): Change argument to int,
424 one of bfd_mach_arc_xxx. All callers updated.
429 * mips-opc.c: Add r4650 mul instruction.
433 * mips-opc.c: Add uld and usd macros for unaligned double load and
438 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
439 mfdcr, mtdcr, icbt, iccci.
444 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
445 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
446 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
447 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
448 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
449 (insert_absaddr): New function.
453 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
454 New argument `cpu', pass it to arc_opcode_init_tables.
455 Document byte order dependencies. Ignore unsupported insns.
456 (arc_get_disassembler): New function.
457 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
458 print_insn_arc_audio): New functions.
459 * arc-opc.c (MULTSHIFT operand): Delete.
460 (UNSIGNED, SATURATION): New operands.
461 (mac, mul, mul64, mulu64): New insns.
462 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
463 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
464 (host,graphics,audio extended and auxiliary regs): Define.
465 (ss, sc, mh, ml): New suffixes.
466 (arc_opcode_supported, arc_opval_supported): New functions.
467 (insert_multshift, extract_multshift): Deleted.
468 * disassemble.c (disassembler, case bfd_arch_arc): Call
469 arc_get_disassembler to get disassembler routine.
474 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
475 signed char fields to shorts, more portable.
479 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
480 char fields as signed chars, since they may have negative values.
484 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
490 * ppc-opc.c (extract_bdm): Correct parenthezisation.
491 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
496 * ppc-opc.c: Changes based on patch from David Edelsohn
498 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
501 (insert_tbr): New static function.
502 (extract_tbr): New static function.
503 (XFXFXM_MASK, XFXM): Define.
504 (XSPRBAT_MASK, XSPRG_MASK): Define.
505 (powerpc_opcodes): Add instructions to access special registers by
506 name. Add mtcr and mftbu.
510 * mips-opc.c (P3): Define.
511 (mips_opcodes): Add mad and madu.
513 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
515 * configure.in: Add W65 support.
516 * disassemble.c: Likewise.
517 * w65-opc.h, w65-dis.c: New files.
521 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
527 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
529 * arc-opc.c (extract_reladdr): New function.
530 (insert_reladdr): Store address right-shifted by 2.
535 * mips-opc.c: Add dli as a synonym for li.
540 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
542 (extraction fns): Insn argument now array of two words. Return pointer
543 to value's table entry. All uses changed.
544 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
545 (insert_multshift, extract_multshift): New fns.
546 (arc_operands): Add support for cache bypass suffix. Add support for
547 predefined aux regs. Modifier bits moved to flags field.
548 (arc_opcodes): Likewise.
549 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
550 New insn rlc. Update to syntax in programmer's manual.
551 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
552 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
554 (arc_opcode_init_tables): New argument to indicate cpu type.
555 (insert_reg): Handle predefined aux regs.
556 (extract_reg): Likewise.
557 (lookup_register): New fn.
558 * arc-dis.c (arc_condition_codes): Deleted.
559 (print_insn_arc): Handle insns with 32 bit immediate constants better.
560 Clean up modifier handling. Handle predefined aux regs.
565 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
566 print something for reserved opcode values, even if it won't
569 * mips-dis.c (_print_insn_mips): When initializing, shift right
570 and mask, to avoid sign extension problems on the Alpha.
572 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
578 * configure.in: Add ARC support.
579 * disassemble.c: Likewise.
580 * arc-dis.c, arc-opc.c: New files.
585 * sh-opc.h (mov.l gbr): Get direction right.
586 * sh-dis.c (print_insn_shx): New function.
587 (print_insn_shl, print_insn_sh): Call print_insn_shx to
588 print opcodes with right byte order.
592 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
593 to avoid conflicts with getopt.
597 * hppa-dis.c (print_insn_hppa): Read the instruction using
598 bfd_getb32, so that it works on a little endian or 64 bit host.
599 Remove unused local variable op.
603 * mips-opc.c: Use or instead of addu for pseudo-op move, since
604 addu does not work correctly if -mips3.
608 * a29k-dis.c (print_special): Add special register names defined
609 on 29030, 29040 and 29050.
610 (print_insn): Handle new operand type 'I'.
614 * Makefile.in (INSTALL): Use top level install.sh script.
618 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
619 that it works on a little endian host.
623 * configure.in: Use ${config_shell} when running config.bfd.
627 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
631 * a29k-dis.c (print_insn): Print the opcode.
635 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
639 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
643 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
644 which store a value into memory.
648 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
649 * arm-dis.c, arm-opc.h: New files.
653 * Makefile.in (ns32k-dis.o): Add dependency.
654 * ns32k-dis.c (print_insn_arg): Declare initialized local as
655 string, not as array of chars.
659 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
661 * sparc-opc.c: Added sparclite extended FP operations, and
662 versions of v9 impdep* instructions permitting specification of
667 * i960-dis.c (reg_names): Now const.
668 (struct sparse_tabent): New type, copied from array type in mem
670 (ctrl): Local static array ctrl_tab now const.
671 (cobr): Local static array cobr_tab now const.
672 (mem): Local variables reg1, reg2, reg3 now point to const. Local
673 static variable mem_tab no longer explicitly initialized. Changed
674 mem_init to const array of struct sparse_tabent.
675 (reg): Local static variable reg_tab no longer explicitly
676 initialized. Changed reg_init to const array of struct
678 (ea): Local static array scale_tab now const.
680 start-sanitize-i960xl
681 * i960-dis.c (reg): Added i960XL instructions to reg_init table.
687 * configure.bat: the disassember needs to be enabled for
688 "objdump -d" to work in djgpp.
692 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
693 (invalid_float): Enabled general version, doesn't require running
694 on ns32k host. Changed to take char* argument, and test for
695 explicitly specified sizes, instead of using sizeof() on host CPU
697 (INVALID_FLOAT): Cast first argument.
698 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
699 list_P032, list_M032): Now const.
700 (optlist, list_search): Made appropriate arguments now point to
702 (print_insn_arg): Changed static array of one-character-string
703 pointers into a static const array of characters; fixed sprintf
704 statement accordingly.
708 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
709 from distribution. A ns32k-dis.c from a previous distribution has
710 been brought up to date and supports the new interface.
712 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
714 * configure.in: add bfd_ns32k_arch target support.
716 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
717 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
721 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
726 * h8300-dis.c, mips-dis.c: Don't use true and false.
730 * configure.in: Change --with-targets to --enable-targets.
734 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
735 opcodes to the first instruction with that opcode, to speed
741 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
745 * configure.bat: update to latest makefile.in
749 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
750 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
751 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
752 slot insn is in a delay slot.
753 * z8k-opc.h: (resflg): Fix patterns.
754 * h8500-opc.h Fix CR insn patterns.
758 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
759 "cmpl" before POWER versions, so that gas -many uses them.
763 * disassemble.c: New file.
764 * Makefile.in (OFILES): Add disassemble.o.
765 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
766 * configure.in: Define ARCHDEFS in Makefile. Code taken from
767 binutils/configure.in.
769 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
770 opcode being examined.
774 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
775 (insert_ral, insert_ram, insert_ras): New functions.
776 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
777 RAS for store with update.
781 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
786 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
791 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
795 * ppc-opc.c (powerpc_operands): The signedp field has been
796 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
797 instead. Add new operand SISIGNOPT.
798 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
800 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
805 * i386-dis.c (struct private): Renamed to dis_private. `private'
806 is a reserved word for dynix cc.
810 * configure.in: Change error message to refer to bfd/config.bfd
811 rather than bfd/configure.in.
815 * ppc-opc.c: Define POWER2 as short alias flag.
816 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
821 * i960-dis.c (print_insn_i960): Don't read a second word for
822 opcodes 0, 1, 2 and 3.
826 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
830 * m68881-ext.c: Removed; no longer used.
831 * Makefile.in: Changed accordingly.
833 * m68k-dis.c (ext_format_68881): Don't declare.
834 (print_insn_m68k): If an instruction uses place 'i', it uses at
835 least four fixed bytes.
836 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
837 extended float, convert to double using floatformat_to_double, not
838 ieee_extended_to_double, and fetch the data before converting it.
842 * mips-opc.c: It's sqrt.s, not sqrt.w. From
847 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
848 PowerPC uses bdnz[l][a].
852 * dis-buf.c, i386-dis.c: Include sysdep.h.
856 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
858 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
859 by Motorola PowerPC 601 with PPC_OPCODE_601.
860 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
861 Disassemble Motorola PowerPC 601 instructions as well as normal
862 PowerPC instructions.
866 * i960-dis.c (reg, mem): Just use a static array instead of
871 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
872 condition name index if this is for a negated condition.
874 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
875 Floating point format for 'H' operand is backwards from normal
876 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
877 operands (fmpyadd and fmpysub), handle bizarre register
878 translation correctly for single precision format.
880 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
881 or 'I' operands if the next format specifier is 'M' (fcmp
882 condition completer).
886 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
887 single number giving a bitmask for the MB and ME fields of an M
888 form instruction. Change NB to accept 32, and turn it into 0;
889 also turn 0 into 32 when disassembling. Seperated SH from NB.
890 (insert_mbe, extract_mbe): New functions.
891 (insert_nb, extract_nb): New functions.
892 (SC_MASK): Mask out SA and LK bits.
893 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
894 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
895 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
896 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
897 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
898 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
899 (powerpc_macros): Define table of macro definitions.
900 (powerpc_num_macros): Define.
902 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
903 if PPC_OPERAND_NEXT is set.
907 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
908 char. Retrieve contents using bfd_getl32 instead of shifting.
912 * ppc-opc.c: New file. Opcode table for PowerPC, including
913 opcodes for POWER (RS/6000).
914 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
915 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
916 (CFILES): Add ppc-dis.c.
917 (ppc-dis.o, ppc-opc.o): New targets.
918 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
922 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
923 No space before 'u', 'f', or 'N'.
927 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
928 farther than we should.
930 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
934 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
938 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
939 needs it, to prevent reading past the end of a section.
943 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
944 Removed t,A case for la; always use t,A(b) case.
949 * mips-dis.c (print_insn_arg): Handle 'k'.
950 * mips-opc.c: Make cache use k, not t.
954 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
955 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
956 FLOAT_FORMAT_CODE to put out floating point register names.
960 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
964 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
968 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
969 larger than 32. Moved dsxx32 variants first for disassembler.
973 * z8kgen.c, z8k-opc.h: Add full lda information.
977 * hppa-dis.c (print_insn_hppa): Do not emit a space after
978 movb instructions. Any necessary space will be emitted by
979 the code to handle nullification completers.
983 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
987 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
988 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
992 * mips-opc.c: Correct lwu opcode value (book had it wrong).
996 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
997 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
1001 * m88k-dis.c (m88kdis): comment change. Remove space after
1003 (printop): handle new arg types DEC and XREG for m88110.
1007 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
1008 type for absolute branch addresses. Delete special
1009 "ble" and "be" code in 'W' operand code.
1013 * mips-opc.c: Set hazard information correctly for branch
1014 likely instructions.
1018 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
1019 info->fprintf_func for printing and info->print_address_func for
1024 * mips-opc.c: Set INSN_TRAP for tXX instructions.
1029 Corrected second case of "b" for disassembler.
1033 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
1034 to BFD swapping routines to correspond to BFD name changes.
1038 * mips-opc.c: Change div machine instruction to be z,s,t rather
1039 than s,t. Change div macro to be d,v,t rather than d,s,t.
1040 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
1041 rem and remu which generates only the corresponding div
1042 instruction. This is for compatibility with the MIPS assembler,
1043 which only generates the simple machine instruction when an
1044 explicit destination of $0 is used.
1045 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
1050 WR_31 hazard for bal, bgezal, bltzal.
1054 * hppa-dis.c (print_insn_hppa): Use print function
1055 from within the disassemble_info, not fprintf_filtered.
1059 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
1064 * mips-opc.c ("absu"): Removed.
1069 * mips-opc.c: Added r6000 and r4000 instructions and macros.
1070 Changed hazard information to distinguish between memory load
1071 delays and coprocessor load delays.
1075 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
1079 * configure.in: Don't pass cpu to config.bfd.
1083 * m88k-dis.c (m88kdis): Make class unsigned.
1087 * alpha-dis.c (print_insn_alpha): One branch format case was
1088 missing the instruction name.
1092 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
1093 Add the arch-specific auxiliary files.
1094 (OFILES): Remove the arch-specific auxiliary files
1095 and use BFD_MACHINES instead of DIS_LIBS.
1096 * configure.in: Set BFD_MACHINES based on --with-targets option.
1100 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
1105 * sparc-opc.c: Change CONST to const to deal with gcc
1106 -Dconst=__const -traditional.
1111 coprocessor instructions out of #if 0, and made them use new
1116 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
1120 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
1121 instruction, for use by the disassembler.
1123 * sparc-dis.c (SEX): Add sign extension macro. Replace many
1124 hand-coded sign extensions that depended on 32-bit host ints.
1125 FIXME, we still depend on big-endian host bitfield ordering.
1126 (sparc_print_insn): Set the insn_info_valid field, and the
1127 other fields that describe the instruction being printed.
1131 * sparc-opc.c (call): Accept all 6 addressing modes valid for
1132 `jmp' instead of just one of them.
1136 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
1137 (fput_fp_reg_r): Renamed from fput_reg_r.
1138 (fput_fp_reg): New function.
1139 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
1141 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
1143 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
1147 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
1149 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
1150 don't output a space.
1152 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
1156 * mips-opc.c: New file, containing opcode table from
1157 ../include/opcode/mips.h.
1158 * Makefile.in: Add it.
1162 * m88k-dis.c: New file, moved in from gdb and changed to use the
1163 new dis-asm.h disassembler interface.
1164 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
1165 (m88k-dis.o): New target.
1169 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
1170 argument string const char * to correspond to opcode/mips.h.
1174 * mips-dis.c: Updated to account for name changes in new version
1176 * Makefile.in: Added header file dependencies.
1180 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
1184 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
1185 extend, rather than shifts.
1189 * Makefile.in: Undo 15 June change.
1193 * m68k-dis.c (print_insn_arg): Change return value to byte count
1195 * m68k-dis.c: Re-write to detect invalid operands before
1196 printing anything, so we can handle this the same way we
1197 handle invalid opcodes.
1201 * sh-dis.c, sh-opc.h: Understand some more opcodes.
1205 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
1210 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
1212 * configure.in: Do make sysdep.h link.
1213 * Makefile.in: Search ../include. Don't search ../bfd.
1218 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
1219 Do not print a space before the completers specified by
1224 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
1225 defined, since gdb has been fixed.
1228 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
1229 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
1230 be a *disassemble_info, not a *FILE.
1231 * hppa-dis.c: Support 'd', '!', and 'a'.
1232 * hppa-dis.c: Support 's' to extract a 2 bit space register.
1233 * hppa-dis.c: Delete cases which are no longer needed.
1237 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
1241 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
1246 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
1247 * configure.in: No longer need to configure to get sysdep.h.
1252 * hppa-dis.c: Support 'I', 'J', and 'K' in output
1253 templates for 1.1 FP computational instructions.
1257 * h8500-dis.c (print_insn_h8500): Address argument is type
1259 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
1262 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
1263 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
1265 * sparc-dis.c (compare_opcodes): Move static declaration to
1270 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
1271 instruction, remove unimp hack from 'l' argument.
1275 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
1281 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
1286 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
1287 arrays of string pointers to 2-d arrays of chars, to save
1292 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
1293 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
1297 * hppa-dis.c: New file from Utah, adapted to new disassembler
1299 * Makefile.in: Include it.
1303 * sh-dis.c, sh-opc.h: New files.
1307 * alpha-dis.c, alpha-opc.h: New files.
1311 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
1316 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
1320 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
1325 * sparc-dis.c: Use fprintf_func a few places where I forgot,
1326 and double percent signs a few places.
1328 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
1330 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
1331 Use info->print_address_func not print_address.
1333 * dis-buf.c (generic_print_address): New function.
1337 * Makefile.in: Add sparc-dis.c.
1338 sparc-dis.c: New file, merges binutils and gdb versions as follows:
1340 Add `add' instruction to the set that get checked
1341 for a preceding `sethi' in order to print an absolute address.
1342 * (print_insn): Disassembly prefers real instructions.
1343 (is_delayed_branch): Speed up.
1344 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
1345 Still missing some float ops, and needs testing.
1346 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
1347 F_ALIAS. Use printf, not fprintf, when not passing a file
1349 (compare_opcodes): Check that identical instructions have
1350 identical opcodes, complain otherwise.
1353 * Include reg_names.
1355 Use dis-asm.h/read_memory_func interface.
1359 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
1360 deliberately return non-zero to setjmp from longjmp. Otherwise
1361 this code fails to compile.
1365 * m68k-dis.c: Fix prototype for fetch_arg().
1369 * dis-buf.c: New file, for new read_memory_func interface.
1370 Makefile.in (OFILES): Include it.
1371 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
1372 Use new read_memory_func interface.
1376 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
1377 * h8500-opc.h: Fix couple of opcodes.
1379 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
1381 * Makefile.in: add dvi & installcheck targets
1385 * Makefile.in: Update for h8500-dis.c.
1389 * h8500-dis.c, h8500-opc.h: New files
1393 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
1394 ../include/dis-asm.h.
1395 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
1396 and ../gdb/m68k-pinsn.c).
1397 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
1398 and ../gdb/i386-pinsn.c).
1399 * m68881-ext.c: New file. Moved definition of
1400 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
1401 * Makefile.in: Adjust for new files.
1403 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
1404 can be dis-assembled.
1408 * mips-dis.c (print_insn_arg): Now returns void.
1412 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
1413 files that use the macros.
1417 * mips-dis.c: New file, from gdb/mips-pinsn.c.
1418 * Makefile.in (DIS_LIBS): Added mips-dis.o.
1419 (CFILES): Added mips-dis.c.
1423 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
1424 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
1428 * Makefile.in: Improve *clean rules.
1429 * configure.in: Allow a default host.
1431 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1433 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
1434 files include other sysdep files
1438 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
1442 * configure.in: For host support, use ../bfd/configure.host
1443 so it stays in sync with the ../bfd/hosts database.
1445 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1447 * configure.in: use cpu-vendor-os triple instead of nested cases
1451 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
1452 *always* the wrong one.
1456 * z8kgen.c: added copyright info
1460 * z8k-dis.c (unparse_instr): prettier tabs
1461 * z8kgen.c -> z8k-opc.h: bug fixes in tables
1463 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
1465 * configure.in: Add ncr* configuration.
1466 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
1467 picayune ANSI compilers happy.
1471 * configure.in (i386): Make i386 and i486 synonymous for now.
1472 * configure.in (i[34]86-*-sysv4): Add my_host definition.
1476 * Makefile.in (install): Fix typo.
1480 * Makefile.in (make): Remove obsolete crud.
1481 (sparc-opc.o): Avoid Sun Make VPATH bug.
1485 * Makefile.in: since there are no SUBDIRS, remove rule and
1486 references of subdir_do.
1490 * Makefile.in (install): Get the library name right here too.
1491 Don't install bfd.h, since it's unrelated to this library. No
1492 subdirs to recurse into, either.
1493 (CFILES): The source file has a .c suffix, not .o.
1495 * sparc-opc.c: New file, moved from BFD.
1496 * Makefile.in (OFILES): Build it.
1500 * z8k-dis.c: fixed forward refferences of some declarations.
1504 * Makefile.in: get the name of the library right
1508 * z8k-dis.c: knows how to disassemble z8k stuff
1509 * z8k-opc.h: new file full of z8000 opcodes
1513 version-control: never