3 * sparc-opc.c (sparc_opcodes, prefetcha insn): Fix.
4 (lookup_{name,value}): New functions.
5 (prefetch_table): New static local.
6 (sparc_{encode,decode}_prefetch): New functions.
7 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
12 * sh-opc.h: Add blank lines to improve readabililty of sh3e
18 * sh-dis.c: Correct comment on first line of file.
22 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
24 * sparc-opc.c (asi, membar): New static locals.
25 (sparc_{encode,decode}_{asi,membar}): New functions.
26 (sparc_opcodes, membar insn): Fix.
27 * sparc-dis.c (print_insn): Call sparc_decode_asi.
28 Support decoding of membar masks.
33 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
37 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
38 and likewise for the other branches. Add bhs as an alias for bcc,
39 and likewise for the size variants. Add dbhs as an alias for
45 * sh-opc.h (FP sts instructions): Update to match reality.
50 * m68k-dis.c: (fpcr_names): Add % before all register names.
51 (reg_names): Likewise.
52 (print_insn_arg): Don't explicitly print % before register names.
53 Add % before register names in static array names. In case 'r',
54 print data registers as `@(Dn)', not `Dn@'. When printing a
55 memory address, don't print @# before it.
56 (print_indexed): Change base_disp and outer_disp from int to
57 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
58 syntax. Sign extend 8 byte displacement correctly.
59 (print_base): Print using MIT syntax. Print zpc when appropriate.
60 Change parameter disp from int to bfd_vma.
62 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
68 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
69 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
70 * sh-opc.h (sh_arg_type): Add new operand types.
71 (sh_table): Add new opcodes from SH3E Floating Point ISA.
76 * Makefile.in (distclean): Remove generated file config.h.
80 * Makefile.in (distclean): Remove generated file config.h.
84 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
86 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
88 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
89 rather than numopcodes. Use m68k_opcodes rather than removed
90 opcode function. Don't check F_ALIAS.
91 (print_insn_arg): Change first parameter to be const char *.
92 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
93 (m68k-opc.o): New target.
94 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
99 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
100 (opcode_bits, opcode_hash_table): New variables.
101 (opcodes_initialized): Renamed from opcodes_sorted.
102 (build_hash_table): New function.
103 (is_delayed_branch): Use hash table.
104 (print_insn): Renamed from print_insn_sparc, made static.
105 Build and use hash table. If !sparc64, ignore sparc64 insns,
106 and vice-versa if sparc64.
107 (print_insn_sparc, print_insn_sparc64): New functions.
108 (compare_opcodes): Move sparc64 opcodes to end.
109 Print commutative insns with constant second.
110 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
114 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
115 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
116 avoids printing a delay slot in a delay slot.
117 * sh-opc.h (sh_table): Fully bracket last entry.
121 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
125 * configure.in: Get host_makefile_frag from ${srcdir}.
127 * configure.in: Autoconfiscated. Check for string[s].h. Create
128 config.h from config.in. Don't set up sysdep.h link.
129 * sysdep.h: New file.
130 * configure, config.in: New files, generated from configure.in.
131 * Makefile.in: Updated to be processed autoconf-style.
132 (distclean): Keep sysdep.h. Remove config.log and config.cache.
133 (Makefile): Depend on config.status.
134 (config.status): New rule.
135 * configure.bat: Update Makefile substitutions.
139 * mips-opc.c (L1): Define.
140 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
141 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
146 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
147 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
148 have multiple add units but only a single logical unit.
150 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
151 shifted by 18, without any insertion or extraction function.
152 (insert_cr, extract_cr): Remove.
157 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
162 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
167 * mpw-config.in: Add sh and i386 configs, remove sparc config.
168 * sh-opc.h: Add copyright.
172 * Makefile.in (crunch-m68k): Delete extra target accidentally
173 checked in a while ago.
177 * sh-opc.h (sh_table): Add SH3 support.
181 * sh-opc.h: Added bsrf and braf.
185 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
186 bogus [ls]fm{ea,fd} patterns.
188 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
189 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
190 initialize it from memory. Make function static.
191 (print_insn_{big,little}_arm): New functions.
192 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
193 the correct endianness.
198 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
199 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
204 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
209 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
210 17th, so that it builds again using GCC as the compiler.
214 * mips-dis.c (print_insn_little_mips): Cast return value from
215 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
216 expects an unsigned long, and that might be fewer words of
217 argument storage (e.g., if bfd_vma is long long on a 32-bit
219 (print_insn_big_mips): Likewise with bfd_getb32 value.
220 (_print_insn_mips): Now static.
224 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
225 gcc memory hog problem with initializer is fixed.
230 * arc-opc.c (NULL): Define.
231 (arc_operands, insn fields u,s): Delete.
232 (arc_operands, insn fields a,b,c): Mark as signed.
233 (arc_opcodes): No longer const, links computed at run-time.
234 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
235 suffixes that affect the insn code.
236 (arc_opcodes): Resort table to macros are first.
237 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
238 (arc_opcodes, st [b] entry): Likewise.
239 (arc_opcodes, st [b,d] entry): Fix mask, value.
240 (arc_reg_names): Add entries for r29, r30, r31, r60.
241 (opcode_map, icode_map): New static globals.
242 (arc_opcode_init_tables): Initialize them.
243 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
244 (insert_shimmoffset): Signal error if register present.
246 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
251 Merge in support for Mac MPW as a host.
252 (Old change descriptions retained for informational value.)
254 * mpw-config.in (archname): Compute from the config.
255 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
257 * mpw-config.in (target_arch): Compute from canonical target.
258 (m68k, mips, powerpc, sparc): Add architectures.
259 * mpw-make.in (disassemble.c.o): Add.
260 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
262 * mpw-config.in (BFD_MACHINES): Set to a default value.
263 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
265 * mpw-make.in (CSEARCH): Add extra-include to search path.
267 * mpw-config.in (varargs.h): Don't create.
268 (sysdep.h): Create using forward-include.
269 * mpw-make.in (CSEARCH): Add include/mpw to search path.
271 * mpw-config.in: New file, MPW version of configure.in.
272 * mpw-make.in: New file, MPW version of Makefile.in.
277 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
278 Call arc_get_opcode_mach to map bfd mach number to opcode value.
279 (print_insn_*): Pass bfd mach number, not opcode version.
280 * arc-opc.c (arc_get_opcode_mach): New function.
285 * alpha-dis.c (print_insn_alpha): Put empty statement after
290 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
291 (low_sign_extend): Likewise.
292 (get_field): Delete unused function.
293 (set_field, deposit_14, deposit_21): Likewise.
297 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
304 * alpha-opc.h (OSF_ASMCODE): define
305 print pal-code names as defined in App C of the
306 Alpha Architecture Reference Manual
308 * alpha-dis.c: cleaned up output
309 print stylized code forms as defined in App A.4.3 of the
310 Alpha Architecture Reference Manual
314 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
316 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
321 * m68k-dis.c (opcode): New function. Returns address of opcode
322 table entry given index, even if the opcode table was split to
323 work around gcc bugs.
324 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
326 (BREAK_UP_BIG_DECL): Make secondary array static and const.
327 (reg_names): Now const.
328 (print_insn_arg): Arrays cacheFieldName and names now const.
329 (print_indexed): Array scales now const.
334 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
335 (print_insn_arc_{host,graphics,audio}): Likewise.
336 (print_insn): Add prototype.
337 (arc_get_disassembler): New arg `big_p'. Return little or big
338 print fn accordingly.
339 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
340 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
341 (arc_opval_supported): Likewise.
342 * disassemble.c (disassembler): Pass big endian flag to
343 arc_get_disassembler.
348 * ppc-opc.c: Sort recently added instructions by minor opcode
349 number within major opcode number.
353 * hppa-dis.c: Include libhppa.h.
357 * mips-opc.c: Change dli to use M_DLI, and add dla.
361 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
366 * arc-dis.c (arc_get_disassembler): Change argument to int,
367 one of bfd_mach_arc_xxx. All callers updated.
372 * mips-opc.c: Add r4650 mul instruction.
376 * mips-opc.c: Add uld and usd macros for unaligned double load and
381 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
382 mfdcr, mtdcr, icbt, iccci.
387 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
388 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
389 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
390 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
391 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
392 (insert_absaddr): New function.
396 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
397 New argument `cpu', pass it to arc_opcode_init_tables.
398 Document byte order dependencies. Ignore unsupported insns.
399 (arc_get_disassembler): New function.
400 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
401 print_insn_arc_audio): New functions.
402 * arc-opc.c (MULTSHIFT operand): Delete.
403 (UNSIGNED, SATURATION): New operands.
404 (mac, mul, mul64, mulu64): New insns.
405 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
406 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
407 (host,graphics,audio extended and auxiliary regs): Define.
408 (ss, sc, mh, ml): New suffixes.
409 (arc_opcode_supported, arc_opval_supported): New functions.
410 (insert_multshift, extract_multshift): Deleted.
411 * disassemble.c (disassembler, case bfd_arch_arc): Call
412 arc_get_disassembler to get disassembler routine.
417 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
418 signed char fields to shorts, more portable.
422 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
423 char fields as signed chars, since they may have negative values.
427 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
433 * ppc-opc.c (extract_bdm): Correct parenthezisation.
434 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
439 * ppc-opc.c: Changes based on patch from David Edelsohn
441 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
444 (insert_tbr): New static function.
445 (extract_tbr): New static function.
446 (XFXFXM_MASK, XFXM): Define.
447 (XSPRBAT_MASK, XSPRG_MASK): Define.
448 (powerpc_opcodes): Add instructions to access special registers by
449 name. Add mtcr and mftbu.
453 * mips-opc.c (P3): Define.
454 (mips_opcodes): Add mad and madu.
456 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
458 * configure.in: Add W65 support.
459 * disassemble.c: Likewise.
460 * w65-opc.h, w65-dis.c: New files.
464 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
470 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
472 * arc-opc.c (extract_reladdr): New function.
473 (insert_reladdr): Store address right-shifted by 2.
478 * mips-opc.c: Add dli as a synonym for li.
483 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
485 (extraction fns): Insn argument now array of two words. Return pointer
486 to value's table entry. All uses changed.
487 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
488 (insert_multshift, extract_multshift): New fns.
489 (arc_operands): Add support for cache bypass suffix. Add support for
490 predefined aux regs. Modifier bits moved to flags field.
491 (arc_opcodes): Likewise.
492 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
493 New insn rlc. Update to syntax in programmer's manual.
494 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
495 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
497 (arc_opcode_init_tables): New argument to indicate cpu type.
498 (insert_reg): Handle predefined aux regs.
499 (extract_reg): Likewise.
500 (lookup_register): New fn.
501 * arc-dis.c (arc_condition_codes): Deleted.
502 (print_insn_arc): Handle insns with 32 bit immediate constants better.
503 Clean up modifier handling. Handle predefined aux regs.
508 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
509 print something for reserved opcode values, even if it won't
512 * mips-dis.c (_print_insn_mips): When initializing, shift right
513 and mask, to avoid sign extension problems on the Alpha.
515 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
521 * configure.in: Add ARC support.
522 * disassemble.c: Likewise.
523 * arc-dis.c, arc-opc.c: New files.
528 * sh-opc.h (mov.l gbr): Get direction right.
529 * sh-dis.c (print_insn_shx): New function.
530 (print_insn_shl, print_insn_sh): Call print_insn_shx to
531 print opcodes with right byte order.
535 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
536 to avoid conflicts with getopt.
540 * hppa-dis.c (print_insn_hppa): Read the instruction using
541 bfd_getb32, so that it works on a little endian or 64 bit host.
542 Remove unused local variable op.
546 * mips-opc.c: Use or instead of addu for pseudo-op move, since
547 addu does not work correctly if -mips3.
551 * a29k-dis.c (print_special): Add special register names defined
552 on 29030, 29040 and 29050.
553 (print_insn): Handle new operand type 'I'.
557 * Makefile.in (INSTALL): Use top level install.sh script.
561 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
562 that it works on a little endian host.
566 * configure.in: Use ${config_shell} when running config.bfd.
570 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
574 * a29k-dis.c (print_insn): Print the opcode.
578 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
582 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
586 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
587 which store a value into memory.
591 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
592 * arm-dis.c, arm-opc.h: New files.
596 * Makefile.in (ns32k-dis.o): Add dependency.
597 * ns32k-dis.c (print_insn_arg): Declare initialized local as
598 string, not as array of chars.
602 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
604 * sparc-opc.c: Added sparclite extended FP operations, and
605 versions of v9 impdep* instructions permitting specification of
610 * i960-dis.c (reg_names): Now const.
611 (struct sparse_tabent): New type, copied from array type in mem
613 (ctrl): Local static array ctrl_tab now const.
614 (cobr): Local static array cobr_tab now const.
615 (mem): Local variables reg1, reg2, reg3 now point to const. Local
616 static variable mem_tab no longer explicitly initialized. Changed
617 mem_init to const array of struct sparse_tabent.
618 (reg): Local static variable reg_tab no longer explicitly
619 initialized. Changed reg_init to const array of struct
621 (ea): Local static array scale_tab now const.
623 start-sanitize-i960xl
624 * i960-dis.c (reg): Added i960XL instructions to reg_init table.
630 * configure.bat: the disassember needs to be enabled for
631 "objdump -d" to work in djgpp.
635 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
636 (invalid_float): Enabled general version, doesn't require running
637 on ns32k host. Changed to take char* argument, and test for
638 explicitly specified sizes, instead of using sizeof() on host CPU
640 (INVALID_FLOAT): Cast first argument.
641 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
642 list_P032, list_M032): Now const.
643 (optlist, list_search): Made appropriate arguments now point to
645 (print_insn_arg): Changed static array of one-character-string
646 pointers into a static const array of characters; fixed sprintf
647 statement accordingly.
651 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
652 from distribution. A ns32k-dis.c from a previous distribution has
653 been brought up to date and supports the new interface.
655 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
657 * configure.in: add bfd_ns32k_arch target support.
659 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
660 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
664 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
669 * h8300-dis.c, mips-dis.c: Don't use true and false.
673 * configure.in: Change --with-targets to --enable-targets.
677 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
678 opcodes to the first instruction with that opcode, to speed
684 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
688 * configure.bat: update to latest makefile.in
692 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
693 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
694 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
695 slot insn is in a delay slot.
696 * z8k-opc.h: (resflg): Fix patterns.
697 * h8500-opc.h Fix CR insn patterns.
701 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
702 "cmpl" before POWER versions, so that gas -many uses them.
706 * disassemble.c: New file.
707 * Makefile.in (OFILES): Add disassemble.o.
708 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
709 * configure.in: Define ARCHDEFS in Makefile. Code taken from
710 binutils/configure.in.
712 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
713 opcode being examined.
717 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
718 (insert_ral, insert_ram, insert_ras): New functions.
719 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
720 RAS for store with update.
724 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
729 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
734 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
738 * ppc-opc.c (powerpc_operands): The signedp field has been
739 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
740 instead. Add new operand SISIGNOPT.
741 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
743 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
748 * i386-dis.c (struct private): Renamed to dis_private. `private'
749 is a reserved word for dynix cc.
753 * configure.in: Change error message to refer to bfd/config.bfd
754 rather than bfd/configure.in.
758 * ppc-opc.c: Define POWER2 as short alias flag.
759 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
764 * i960-dis.c (print_insn_i960): Don't read a second word for
765 opcodes 0, 1, 2 and 3.
769 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
773 * m68881-ext.c: Removed; no longer used.
774 * Makefile.in: Changed accordingly.
776 * m68k-dis.c (ext_format_68881): Don't declare.
777 (print_insn_m68k): If an instruction uses place 'i', it uses at
778 least four fixed bytes.
779 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
780 extended float, convert to double using floatformat_to_double, not
781 ieee_extended_to_double, and fetch the data before converting it.
785 * mips-opc.c: It's sqrt.s, not sqrt.w. From
790 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
791 PowerPC uses bdnz[l][a].
795 * dis-buf.c, i386-dis.c: Include sysdep.h.
799 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
801 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
802 by Motorola PowerPC 601 with PPC_OPCODE_601.
803 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
804 Disassemble Motorola PowerPC 601 instructions as well as normal
805 PowerPC instructions.
809 * i960-dis.c (reg, mem): Just use a static array instead of
814 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
815 condition name index if this is for a negated condition.
817 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
818 Floating point format for 'H' operand is backwards from normal
819 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
820 operands (fmpyadd and fmpysub), handle bizarre register
821 translation correctly for single precision format.
823 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
824 or 'I' operands if the next format specifier is 'M' (fcmp
825 condition completer).
829 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
830 single number giving a bitmask for the MB and ME fields of an M
831 form instruction. Change NB to accept 32, and turn it into 0;
832 also turn 0 into 32 when disassembling. Seperated SH from NB.
833 (insert_mbe, extract_mbe): New functions.
834 (insert_nb, extract_nb): New functions.
835 (SC_MASK): Mask out SA and LK bits.
836 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
837 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
838 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
839 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
840 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
841 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
842 (powerpc_macros): Define table of macro definitions.
843 (powerpc_num_macros): Define.
845 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
846 if PPC_OPERAND_NEXT is set.
850 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
851 char. Retrieve contents using bfd_getl32 instead of shifting.
855 * ppc-opc.c: New file. Opcode table for PowerPC, including
856 opcodes for POWER (RS/6000).
857 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
858 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
859 (CFILES): Add ppc-dis.c.
860 (ppc-dis.o, ppc-opc.o): New targets.
861 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
865 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
866 No space before 'u', 'f', or 'N'.
870 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
871 farther than we should.
873 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
877 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
881 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
882 needs it, to prevent reading past the end of a section.
886 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
887 Removed t,A case for la; always use t,A(b) case.
892 * mips-dis.c (print_insn_arg): Handle 'k'.
893 * mips-opc.c: Make cache use k, not t.
897 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
898 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
899 FLOAT_FORMAT_CODE to put out floating point register names.
903 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
907 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
911 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
912 larger than 32. Moved dsxx32 variants first for disassembler.
916 * z8kgen.c, z8k-opc.h: Add full lda information.
920 * hppa-dis.c (print_insn_hppa): Do not emit a space after
921 movb instructions. Any necessary space will be emitted by
922 the code to handle nullification completers.
926 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
930 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
931 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
935 * mips-opc.c: Correct lwu opcode value (book had it wrong).
939 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
940 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
944 * m88k-dis.c (m88kdis): comment change. Remove space after
946 (printop): handle new arg types DEC and XREG for m88110.
950 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
951 type for absolute branch addresses. Delete special
952 "ble" and "be" code in 'W' operand code.
956 * mips-opc.c: Set hazard information correctly for branch
961 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
962 info->fprintf_func for printing and info->print_address_func for
967 * mips-opc.c: Set INSN_TRAP for tXX instructions.
972 Corrected second case of "b" for disassembler.
976 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
977 to BFD swapping routines to correspond to BFD name changes.
981 * mips-opc.c: Change div machine instruction to be z,s,t rather
982 than s,t. Change div macro to be d,v,t rather than d,s,t.
983 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
984 rem and remu which generates only the corresponding div
985 instruction. This is for compatibility with the MIPS assembler,
986 which only generates the simple machine instruction when an
987 explicit destination of $0 is used.
988 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
993 WR_31 hazard for bal, bgezal, bltzal.
997 * hppa-dis.c (print_insn_hppa): Use print function
998 from within the disassemble_info, not fprintf_filtered.
1002 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
1007 * mips-opc.c ("absu"): Removed.
1012 * mips-opc.c: Added r6000 and r4000 instructions and macros.
1013 Changed hazard information to distinguish between memory load
1014 delays and coprocessor load delays.
1018 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
1022 * configure.in: Don't pass cpu to config.bfd.
1026 * m88k-dis.c (m88kdis): Make class unsigned.
1030 * alpha-dis.c (print_insn_alpha): One branch format case was
1031 missing the instruction name.
1035 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
1036 Add the arch-specific auxiliary files.
1037 (OFILES): Remove the arch-specific auxiliary files
1038 and use BFD_MACHINES instead of DIS_LIBS.
1039 * configure.in: Set BFD_MACHINES based on --with-targets option.
1043 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
1048 * sparc-opc.c: Change CONST to const to deal with gcc
1049 -Dconst=__const -traditional.
1054 coprocessor instructions out of #if 0, and made them use new
1059 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
1063 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
1064 instruction, for use by the disassembler.
1066 * sparc-dis.c (SEX): Add sign extension macro. Replace many
1067 hand-coded sign extensions that depended on 32-bit host ints.
1068 FIXME, we still depend on big-endian host bitfield ordering.
1069 (sparc_print_insn): Set the insn_info_valid field, and the
1070 other fields that describe the instruction being printed.
1074 * sparc-opc.c (call): Accept all 6 addressing modes valid for
1075 `jmp' instead of just one of them.
1079 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
1080 (fput_fp_reg_r): Renamed from fput_reg_r.
1081 (fput_fp_reg): New function.
1082 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
1084 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
1086 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
1090 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
1092 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
1093 don't output a space.
1095 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
1099 * mips-opc.c: New file, containing opcode table from
1100 ../include/opcode/mips.h.
1101 * Makefile.in: Add it.
1105 * m88k-dis.c: New file, moved in from gdb and changed to use the
1106 new dis-asm.h disassembler interface.
1107 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
1108 (m88k-dis.o): New target.
1112 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
1113 argument string const char * to correspond to opcode/mips.h.
1117 * mips-dis.c: Updated to account for name changes in new version
1119 * Makefile.in: Added header file dependencies.
1123 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
1127 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
1128 extend, rather than shifts.
1132 * Makefile.in: Undo 15 June change.
1136 * m68k-dis.c (print_insn_arg): Change return value to byte count
1138 * m68k-dis.c: Re-write to detect invalid operands before
1139 printing anything, so we can handle this the same way we
1140 handle invalid opcodes.
1144 * sh-dis.c, sh-opc.h: Understand some more opcodes.
1148 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
1153 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
1155 * configure.in: Do make sysdep.h link.
1156 * Makefile.in: Search ../include. Don't search ../bfd.
1161 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
1162 Do not print a space before the completers specified by
1167 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
1168 defined, since gdb has been fixed.
1171 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
1172 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
1173 be a *disassemble_info, not a *FILE.
1174 * hppa-dis.c: Support 'd', '!', and 'a'.
1175 * hppa-dis.c: Support 's' to extract a 2 bit space register.
1176 * hppa-dis.c: Delete cases which are no longer needed.
1180 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
1184 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
1189 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
1190 * configure.in: No longer need to configure to get sysdep.h.
1195 * hppa-dis.c: Support 'I', 'J', and 'K' in output
1196 templates for 1.1 FP computational instructions.
1200 * h8500-dis.c (print_insn_h8500): Address argument is type
1202 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
1205 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
1206 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
1208 * sparc-dis.c (compare_opcodes): Move static declaration to
1213 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
1214 instruction, remove unimp hack from 'l' argument.
1218 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
1224 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
1229 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
1230 arrays of string pointers to 2-d arrays of chars, to save
1235 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
1236 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
1240 * hppa-dis.c: New file from Utah, adapted to new disassembler
1242 * Makefile.in: Include it.
1246 * sh-dis.c, sh-opc.h: New files.
1250 * alpha-dis.c, alpha-opc.h: New files.
1254 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
1259 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
1263 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
1268 * sparc-dis.c: Use fprintf_func a few places where I forgot,
1269 and double percent signs a few places.
1271 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
1273 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
1274 Use info->print_address_func not print_address.
1276 * dis-buf.c (generic_print_address): New function.
1280 * Makefile.in: Add sparc-dis.c.
1281 sparc-dis.c: New file, merges binutils and gdb versions as follows:
1283 Add `add' instruction to the set that get checked
1284 for a preceding `sethi' in order to print an absolute address.
1285 * (print_insn): Disassembly prefers real instructions.
1286 (is_delayed_branch): Speed up.
1287 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
1288 Still missing some float ops, and needs testing.
1289 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
1290 F_ALIAS. Use printf, not fprintf, when not passing a file
1292 (compare_opcodes): Check that identical instructions have
1293 identical opcodes, complain otherwise.
1296 * Include reg_names.
1298 Use dis-asm.h/read_memory_func interface.
1302 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
1303 deliberately return non-zero to setjmp from longjmp. Otherwise
1304 this code fails to compile.
1308 * m68k-dis.c: Fix prototype for fetch_arg().
1312 * dis-buf.c: New file, for new read_memory_func interface.
1313 Makefile.in (OFILES): Include it.
1314 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
1315 Use new read_memory_func interface.
1319 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
1320 * h8500-opc.h: Fix couple of opcodes.
1322 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
1324 * Makefile.in: add dvi & installcheck targets
1328 * Makefile.in: Update for h8500-dis.c.
1332 * h8500-dis.c, h8500-opc.h: New files
1336 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
1337 ../include/dis-asm.h.
1338 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
1339 and ../gdb/m68k-pinsn.c).
1340 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
1341 and ../gdb/i386-pinsn.c).
1342 * m68881-ext.c: New file. Moved definition of
1343 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
1344 * Makefile.in: Adjust for new files.
1346 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
1347 can be dis-assembled.
1351 * mips-dis.c (print_insn_arg): Now returns void.
1355 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
1356 files that use the macros.
1360 * mips-dis.c: New file, from gdb/mips-pinsn.c.
1361 * Makefile.in (DIS_LIBS): Added mips-dis.o.
1362 (CFILES): Added mips-dis.c.
1366 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
1367 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
1371 * Makefile.in: Improve *clean rules.
1372 * configure.in: Allow a default host.
1374 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1376 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
1377 files include other sysdep files
1381 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
1385 * configure.in: For host support, use ../bfd/configure.host
1386 so it stays in sync with the ../bfd/hosts database.
1388 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1390 * configure.in: use cpu-vendor-os triple instead of nested cases
1394 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
1395 *always* the wrong one.
1399 * z8kgen.c: added copyright info
1403 * z8k-dis.c (unparse_instr): prettier tabs
1404 * z8kgen.c -> z8k-opc.h: bug fixes in tables
1406 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
1408 * configure.in: Add ncr* configuration.
1409 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
1410 picayune ANSI compilers happy.
1414 * configure.in (i386): Make i386 and i486 synonymous for now.
1415 * configure.in (i[34]86-*-sysv4): Add my_host definition.
1419 * Makefile.in (install): Fix typo.
1423 * Makefile.in (make): Remove obsolete crud.
1424 (sparc-opc.o): Avoid Sun Make VPATH bug.
1428 * Makefile.in: since there are no SUBDIRS, remove rule and
1429 references of subdir_do.
1433 * Makefile.in (install): Get the library name right here too.
1434 Don't install bfd.h, since it's unrelated to this library. No
1435 subdirs to recurse into, either.
1436 (CFILES): The source file has a .c suffix, not .o.
1438 * sparc-opc.c: New file, moved from BFD.
1439 * Makefile.in (OFILES): Build it.
1443 * z8k-dis.c: fixed forward refferences of some declarations.
1447 * Makefile.in: get the name of the library right
1451 * z8k-dis.c: knows how to disassemble z8k stuff
1452 * z8k-opc.h: new file full of z8000 opcodes
1456 version-control: never