3 * configure.in: ../bfd/config.bfd now just sets shell variables.
4 Use them rather than looking through target Makefile fragments.
10 * sh-opc.h (ftrc): Change FPUL_N to FPUL_M.
15 * sparc-opc.c (sparc_opcodes): Delete duplicate wr %y insn.
16 Add clrx, iprefetch, signx, clruw, cas, casl, casx, casxl synthetic
19 * sparc-opc.c (sparc_opcodes): Fix prefetcha insn.
20 (lookup_{name,value}): New functions.
21 (prefetch_table): New static local.
22 (sparc_{encode,decode}_prefetch): New functions.
23 * sparc-dis.c (print_insn): Handle '*' arg (prefetch function).
28 * sh-opc.h: Add blank lines to improve readabililty of sh3e
34 * sh-dis.c: Correct comment on first line of file.
38 * disassemble.c (disassembler): Handle bfd_mach_sparc64.
40 * sparc-opc.c (asi, membar): New static locals.
41 (sparc_{encode,decode}_{asi,membar}): New functions.
42 (sparc_opcodes, membar insn): Fix.
43 * sparc-dis.c (print_insn): Call sparc_decode_asi.
44 Support decoding of membar masks.
49 * m68k-opc.c (m68k_opcode_aliases): Add br, brs, brb, brw, brl.
53 * m68k-opc.c (m68k_opcode_aliases): Add bhib as an alias for bhis,
54 and likewise for the other branches. Add bhs as an alias for bcc,
55 and likewise for the size variants. Add dbhs as an alias for
61 * sh-opc.h (FP sts instructions): Update to match reality.
66 * m68k-dis.c: (fpcr_names): Add % before all register names.
67 (reg_names): Likewise.
68 (print_insn_arg): Don't explicitly print % before register names.
69 Add % before register names in static array names. In case 'r',
70 print data registers as `@(Dn)', not `Dn@'. When printing a
71 memory address, don't print @# before it.
72 (print_indexed): Change base_disp and outer_disp from int to
73 bfd_vma. Print using MIT syntax, not mutant invalid Motorola
74 syntax. Sign extend 8 byte displacement correctly.
75 (print_base): Print using MIT syntax. Print zpc when appropriate.
76 Change parameter disp from int to bfd_vma.
78 * m68k-opc.c (m68k_opcode_aliases): Add jsrl and jsrs as aliases
84 * sh-dis.c (print_insn_shx): Handle new operand types F_REG_N,
85 F_REG_M, FPSCR_M, FPSCR_N, FPUL_M and FPUL_N.
86 * sh-opc.h (sh_arg_type): Add new operand types.
87 (sh_table): Add new opcodes from SH3E Floating Point ISA.
92 * Makefile.in (distclean): Remove generated file config.h.
96 * Makefile.in (distclean): Remove generated file config.h.
100 * m68k-opc.c: New file, holding tables from include/opcode/m68k.h.
102 * m68k-dis.c: Remove BREAK_UP_BIG_DECL stuff.
104 (print_insn_m68k): Change d to be const. Use m68k_numopcodes
105 rather than numopcodes. Use m68k_opcodes rather than removed
106 opcode function. Don't check F_ALIAS.
107 (print_insn_arg): Change first parameter to be const char *.
108 * Makefile.in (ALL_MACHINES): Add m68k-opc.o.
109 (m68k-opc.o): New target.
110 * configure.in: Build m68k-opc.o for bfd_m68k_arch.
111 * configure: Rebuild.
115 * sparc-dis.c (HASH_SIZE, HASH_INSN): Define.
116 (opcode_bits, opcode_hash_table): New variables.
117 (opcodes_initialized): Renamed from opcodes_sorted.
118 (build_hash_table): New function.
119 (is_delayed_branch): Use hash table.
120 (print_insn): Renamed from print_insn_sparc, made static.
121 Build and use hash table. If !sparc64, ignore sparc64 insns,
122 and vice-versa if sparc64.
123 (print_insn_sparc, print_insn_sparc64): New functions.
124 (compare_opcodes): Move sparc64 opcodes to end.
125 Print commutative insns with constant second.
126 * sparc-opc.c (all non-v9 insns): Use flag F_NOTV9 instead of F_ALIAS.
130 * sh-dis.c (print_insn_shx): Remove unused local dslot. Use
131 print_address_func for A_BDISP12 and A_BDISP8. Correct test which
132 avoids printing a delay slot in a delay slot.
133 * sh-opc.h (sh_table): Fully bracket last entry.
137 * sparc-opc.c (sllx, srax, srlx): Fix disassembly.
141 * configure.in: Get host_makefile_frag from ${srcdir}.
143 * configure.in: Autoconfiscated. Check for string[s].h. Create
144 config.h from config.in. Don't set up sysdep.h link.
145 * sysdep.h: New file.
146 * configure, config.in: New files, generated from configure.in.
147 * Makefile.in: Updated to be processed autoconf-style.
148 (distclean): Keep sysdep.h. Remove config.log and config.cache.
149 (Makefile): Depend on config.status.
150 (config.status): New rule.
151 * configure.bat: Update Makefile substitutions.
155 * mips-opc.c (L1): Define.
156 (mips_opcodes): Add R4010 instructions: flushi, flushd, flushid,
157 addciu, madd, maddu, ffc, ffs, msub, msubu, selsi, selsr, waiti,
162 * mips-opc.c (mips_opcodes): For the move pseudo-op, prefer daddu
163 if ISA 3 and addu otherwise, replacing or, since some MIPS chips
164 have multiple add units but only a single logical unit.
166 * ppc-opc.c (powerpc_operands): Change CR to use a bitsize of 3,
167 shifted by 18, without any insertion or extraction function.
168 (insert_cr, extract_cr): Remove.
173 * Makefile.in (ALL_MACHINES): Add arc-dis.o and arc-opc.o.
178 * m68k-dis.c (print_insn_arg, print_indexed): Print "%" before
183 * mpw-config.in: Add sh and i386 configs, remove sparc config.
184 * sh-opc.h: Add copyright.
188 * Makefile.in (crunch-m68k): Delete extra target accidentally
189 checked in a while ago.
193 * sh-opc.h (sh_table): Add SH3 support.
197 * sh-opc.h: Added bsrf and braf.
201 * arm-opc.h (arm_opcodes): Add 64-bit multiply patterns. Delete
202 bogus [ls]fm{ea,fd} patterns.
204 * arm-opc.h (arm_opcodes): Correct typos in stm, ldm, std, and ldc.
205 * arm-dis.c (print_insn_arm): Make GIVEN a parameter, don't try and
206 initialize it from memory. Make function static.
207 (print_insn_{big,little}_arm): New functions.
208 * disassemble.c (disassembler, case bfd_arch_arm): Disassemble for
209 the correct endianness.
214 * arc-opc.c (arc_opcodes): Add ARC_OPCODE_CONDITIONAL_BRANCH flag.
215 (arc_suffixes): Use ARC_DELAY_{NONE,NORMAL,JUMP}.
220 * sh-opc.h (sh_nibble_type, sh_arg_type): remove trailing , from
225 * m68k-dis.c (opcode): Finish change made by Kung Hsu on April
226 17th, so that it builds again using GCC as the compiler.
230 * mips-dis.c (print_insn_little_mips): Cast return value from
231 bfd_getl32 from bfd_vma to unsigned long, because _print_insn_mips
232 expects an unsigned long, and that might be fewer words of
233 argument storage (e.g., if bfd_vma is long long on a 32-bit
235 (print_insn_big_mips): Likewise with bfd_getb32 value.
236 (_print_insn_mips): Now static.
240 * m68k-dis.c: Take out #define BREAK_UP_BIG_DECL kludge, because
241 gcc memory hog problem with initializer is fixed.
246 * arc-opc.c (NULL): Define.
247 (arc_operands, insn fields u,s): Delete.
248 (arc_operands, insn fields a,b,c): Mark as signed.
249 (arc_opcodes): No longer const, links computed at run-time.
250 (arc_opcodes, mac/mul insns): Breakout suffixes as we don't handle
251 suffixes that affect the insn code.
252 (arc_opcodes): Resort table to macros are first.
253 (arc_opcodes, ld [b,c] entry): Add %Q to prevent shimms.
254 (arc_opcodes, st [b] entry): Likewise.
255 (arc_opcodes, st [b,d] entry): Fix mask, value.
256 (arc_reg_names): Add entries for r29, r30, r31, r60.
257 (opcode_map, icode_map): New static globals.
258 (arc_opcode_init_tables): Initialize them.
259 (arc_opcode_lookup_asm, arc_opcode_lookup_dis): New functions.
260 (insert_shimmoffset): Signal error if register present.
262 * arc-dis.c (print_insn): Call arc_opcode_lookup_dis.
267 Merge in support for Mac MPW as a host.
268 (Old change descriptions retained for informational value.)
270 * mpw-config.in (archname): Compute from the config.
271 (BFD_MACHINES, ARCHDEFS): Put into mk.tmp.
273 * mpw-config.in (target_arch): Compute from canonical target.
274 (m68k, mips, powerpc, sparc): Add architectures.
275 * mpw-make.in (disassemble.c.o): Add.
276 (ALL_CFLAGS): Remove special flags (-mc68020 -mc68881 -model far).
278 * mpw-config.in (BFD_MACHINES): Set to a default value.
279 * mpw-make.in (BFD_MACHINES): Remove wired-in value.
281 * mpw-make.in (CSEARCH): Add extra-include to search path.
283 * mpw-config.in (varargs.h): Don't create.
284 (sysdep.h): Create using forward-include.
285 * mpw-make.in (CSEARCH): Add include/mpw to search path.
287 * mpw-config.in: New file, MPW version of configure.in.
288 * mpw-make.in: New file, MPW version of Makefile.in.
293 * arc-dis.c (print_insn): New parameter `big_p'. Callers updated.
294 Call arc_get_opcode_mach to map bfd mach number to opcode value.
295 (print_insn_*): Pass bfd mach number, not opcode version.
296 * arc-opc.c (arc_get_opcode_mach): New function.
301 * alpha-dis.c (print_insn_alpha): Put empty statement after
306 * hppa-dis.c (sign_extend): Delete, redundant with libhppa.h version.
307 (low_sign_extend): Likewise.
308 (get_field): Delete unused function.
309 (set_field, deposit_14, deposit_21): Likewise.
313 * i386-dis.c: Support for more pentium opcodes. From Guy Harris
320 * alpha-opc.h (OSF_ASMCODE): define
321 print pal-code names as defined in App C of the
322 Alpha Architecture Reference Manual
324 * alpha-dis.c: cleaned up output
325 print stylized code forms as defined in App A.4.3 of the
326 Alpha Architecture Reference Manual
330 * mips-opc.c: Add new mips4 instructions. Don't set INSN_RFE for
332 * mips-dis.c (print_insn_arg): Handle new argument types 'h', 'R',
337 * m68k-dis.c (opcode): New function. Returns address of opcode
338 table entry given index, even if the opcode table was split to
339 work around gcc bugs.
340 (print_insn_m68k): Call opcode instead of referencing m68k_opcodes
342 (BREAK_UP_BIG_DECL): Make secondary array static and const.
343 (reg_names): Now const.
344 (print_insn_arg): Arrays cacheFieldName and names now const.
345 (print_indexed): Array scales now const.
350 * arc-dis.c (print_insn_arc_base): Split into big and little fns.
351 (print_insn_arc_{host,graphics,audio}): Likewise.
352 (print_insn): Add prototype.
353 (arc_get_disassembler): New arg `big_p'. Return little or big
354 print fn accordingly.
355 * arc-opc.c (arc_opcode_init_tables): Init arc_operand_map once.
356 (arc_opcode_supported): Use ARC_OPCODE_CPU to ignore byte order.
357 (arc_opval_supported): Likewise.
358 * disassemble.c (disassembler): Pass big endian flag to
359 arc_get_disassembler.
364 * ppc-opc.c: Sort recently added instructions by minor opcode
365 number within major opcode number.
369 * hppa-dis.c: Include libhppa.h.
373 * mips-opc.c: Change dli to use M_DLI, and add dla.
377 * Makefile.in (ALL_MACHINES): Add w65-dis.o.
382 * arc-dis.c (arc_get_disassembler): Change argument to int,
383 one of bfd_mach_arc_xxx. All callers updated.
388 * mips-opc.c: Add r4650 mul instruction.
392 * mips-opc.c: Add uld and usd macros for unaligned double load and
397 * ppc-opc.c (powerpc_opcodes): Add 403GA opcodes rfci, dccci,
398 mfdcr, mtdcr, icbt, iccci.
403 * arc-dis.c (print_insn): Handle ARC_OPERAND_ADDRESS.
404 * arc-opc.c (arc_operands): New operand 'J' for jump addresses.
405 ('L' operand): Mark as ARC_OPERAND_ADDRESS.
406 (arc_opcodes, j insn): Use 'J' operand type, not 'L'.
407 (arc_opcodes, ld/st insns): Fix address writeback operand letter.
408 (insert_absaddr): New function.
412 * arc-dis.c (print_insn_arc): Rename to print_insn and make static.
413 New argument `cpu', pass it to arc_opcode_init_tables.
414 Document byte order dependencies. Ignore unsupported insns.
415 (arc_get_disassembler): New function.
416 (print_insn_arc_base, print_insn_arc_host, print_insn_arc_graphics,
417 print_insn_arc_audio): New functions.
418 * arc-opc.c (MULTSHIFT operand): Delete.
419 (UNSIGNED, SATURATION): New operands.
420 (mac, mul, mul64, mulu64): New insns.
421 (ext. asl, asr, lsr, ror): Only available on host and graphics cpus.
422 (padc, padd, pmov, pand, psbc, psub, swap): New insns.
423 (host,graphics,audio extended and auxiliary regs): Define.
424 (ss, sc, mh, ml): New suffixes.
425 (arc_opcode_supported, arc_opval_supported): New functions.
426 (insert_multshift, extract_multshift): Deleted.
427 * disassemble.c (disassembler, case bfd_arch_arc): Call
428 arc_get_disassembler to get disassembler routine.
433 * i960-dis.c (struct tabent, struct sparse_tabent): Change the
434 signed char fields to shorts, more portable.
438 * i960-dis.c (struct tabent, struct sparse_tabent): Declare the
439 char fields as signed chars, since they may have negative values.
443 * i386-dis.c (dis386_twobyte): Add cpuid, From Charles Hannum
449 * ppc-opc.c (extract_bdm): Correct parenthezisation.
450 * ppc-dis.c (print_insn_powerpc): Print .long before unrecognized
455 * ppc-opc.c: Changes based on patch from David Edelsohn
457 (powerpc_operands): Add operands SPRBAT and SPRG. Split TBR out of
460 (insert_tbr): New static function.
461 (extract_tbr): New static function.
462 (XFXFXM_MASK, XFXM): Define.
463 (XSPRBAT_MASK, XSPRG_MASK): Define.
464 (powerpc_opcodes): Add instructions to access special registers by
465 name. Add mtcr and mftbu.
469 * mips-opc.c (P3): Define.
470 (mips_opcodes): Add mad and madu.
472 Sun Jan 15 16:32:59 1995 Steve Chamberlain <sac@splat>
474 * configure.in: Add W65 support.
475 * disassemble.c: Likewise.
476 * w65-opc.h, w65-dis.c: New files.
480 * h8300-dis.c (bfd_h8_disassemble): Add support for 2 bit
486 * arc-dis.c (print_insn_arc): Branch offsets are relative to delay
488 * arc-opc.c (extract_reladdr): New function.
489 (insert_reladdr): Store address right-shifted by 2.
494 * mips-opc.c: Add dli as a synonym for li.
499 * arc-opc.c (insertion fns): Pass pointer to value's table entry.
501 (extraction fns): Insn argument now array of two words. Return pointer
502 to value's table entry. All uses changed.
503 (arc_opcode_lookup_suffix): Exported for arc-dis.c.
504 (insert_multshift, extract_multshift): New fns.
505 (arc_operands): Add support for cache bypass suffix. Add support for
506 predefined aux regs. Modifier bits moved to flags field.
507 (arc_opcodes): Likewise.
508 Add mul/mulu/shift insns. Syntax of zero/sign extension insns changed.
509 New insn rlc. Update to syntax in programmer's manual.
510 (arc_reg_names): Fix typo in lp_count. Add predefined aux regs.
511 (arc_suffixes): New synonyms lo,hs for cs,cc. New suffix for cache
513 (arc_opcode_init_tables): New argument to indicate cpu type.
514 (insert_reg): Handle predefined aux regs.
515 (extract_reg): Likewise.
516 (lookup_register): New fn.
517 * arc-dis.c (arc_condition_codes): Deleted.
518 (print_insn_arc): Handle insns with 32 bit immediate constants better.
519 Clean up modifier handling. Handle predefined aux regs.
524 * alpha-dis.c (print_insn_alpha): Handle call_pal instruction, and
525 print something for reserved opcode values, even if it won't
528 * mips-dis.c (_print_insn_mips): When initializing, shift right
529 and mask, to avoid sign extension problems on the Alpha.
531 * m68k-dis.c (print_insn_arg, case 'J'): Handle buscr and pcr
537 * configure.in: Add ARC support.
538 * disassemble.c: Likewise.
539 * arc-dis.c, arc-opc.c: New files.
544 * sh-opc.h (mov.l gbr): Get direction right.
545 * sh-dis.c (print_insn_shx): New function.
546 (print_insn_shl, print_insn_sh): Call print_insn_shx to
547 print opcodes with right byte order.
551 * ns32k-dis.c (struct ns32k_option): Renamed from struct option,
552 to avoid conflicts with getopt.
556 * hppa-dis.c (print_insn_hppa): Read the instruction using
557 bfd_getb32, so that it works on a little endian or 64 bit host.
558 Remove unused local variable op.
562 * mips-opc.c: Use or instead of addu for pseudo-op move, since
563 addu does not work correctly if -mips3.
567 * a29k-dis.c (print_special): Add special register names defined
568 on 29030, 29040 and 29050.
569 (print_insn): Handle new operand type 'I'.
573 * Makefile.in (INSTALL): Use top level install.sh script.
577 * sparc-dis.c: Rewrite to use bitfields, rather than a union, so
578 that it works on a little endian host.
582 * configure.in: Use ${config_shell} when running config.bfd.
586 * mips-opc.c (mips_opcodes): "dabs" is only available with -mips3.
590 * a29k-dis.c (print_insn): Print the opcode.
594 * mips-opc.c (mips_opcodes): Set WR_t for sc and scd.
598 * hppa-dis.c (reg_names): Use r26-r23 for arg0-arg3.
602 * mips-opc.c: Set INSN_STORE_MEMORY flag for all instructions
603 which store a value into memory.
607 * configure.in, Makefile.in, disassemble.c: Add support for the ARM.
608 * arm-dis.c, arm-opc.h: New files.
612 * Makefile.in (ns32k-dis.o): Add dependency.
613 * ns32k-dis.c (print_insn_arg): Declare initialized local as
614 string, not as array of chars.
618 * sparc-dis.c (print_insn_sparc): Handle new operand type 'x'.
620 * sparc-opc.c: Added sparclite extended FP operations, and
621 versions of v9 impdep* instructions permitting specification of
626 * i960-dis.c (reg_names): Now const.
627 (struct sparse_tabent): New type, copied from array type in mem
629 (ctrl): Local static array ctrl_tab now const.
630 (cobr): Local static array cobr_tab now const.
631 (mem): Local variables reg1, reg2, reg3 now point to const. Local
632 static variable mem_tab no longer explicitly initialized. Changed
633 mem_init to const array of struct sparse_tabent.
634 (reg): Local static variable reg_tab no longer explicitly
635 initialized. Changed reg_init to const array of struct
637 (ea): Local static array scale_tab now const.
639 start-sanitize-i960xl
640 * i960-dis.c (reg): Added i960XL instructions to reg_init table.
646 * configure.bat: the disassember needs to be enabled for
647 "objdump -d" to work in djgpp.
651 * ns32k-dis.c: Deleted all code in "#ifdef GDB".
652 (invalid_float): Enabled general version, doesn't require running
653 on ns32k host. Changed to take char* argument, and test for
654 explicitly specified sizes, instead of using sizeof() on host CPU
656 (INVALID_FLOAT): Cast first argument.
657 (opt_u, opt_U, opt_O, opt_C, opt_S, list_P532, list_M532,
658 list_P032, list_M032): Now const.
659 (optlist, list_search): Made appropriate arguments now point to
661 (print_insn_arg): Changed static array of one-character-string
662 pointers into a static const array of characters; fixed sprintf
663 statement accordingly.
667 * opcodes/ns32k-dis.c: Semi-new file. Had apparently been dropped
668 from distribution. A ns32k-dis.c from a previous distribution has
669 been brought up to date and supports the new interface.
671 * disassemble.c: define ARCH_ns32k and add case bfd_arch_ns32k.
673 * configure.in: add bfd_ns32k_arch target support.
675 * Makefile.in: add ns32k-dis.o to ALL_MACHINES.
676 Add ns32k-dis.c to CFILES. Add dependencies for ns32k-dis.o.
680 * h8300-dis.c (bfd_h8_disassemble): Get 16bit branch
685 * h8300-dis.c, mips-dis.c: Don't use true and false.
689 * configure.in: Change --with-targets to --enable-targets.
693 * mips-dis.c (_print_insn_mips): Build a static hash table mapping
694 opcodes to the first instruction with that opcode, to speed
700 * Makefile.in (mostlyclean): Fix typo (was mostyclean).
704 * configure.bat: update to latest makefile.in
708 * a29k-dis.c (print_insn): Print 'x' type operand in hex.
709 * h8300-dis.c (bfd_h8_disassemble): Print 16bit rels correctly.
710 * sh-dis.c (print_insn_sh): Don't recur endlessly if delay
711 slot insn is in a delay slot.
712 * z8k-opc.h: (resflg): Fix patterns.
713 * h8500-opc.h Fix CR insn patterns.
717 * ppc-opc.c (powerpc_opcodes): Put PowerPC versions of "cmp" and
718 "cmpl" before POWER versions, so that gas -many uses them.
722 * disassemble.c: New file.
723 * Makefile.in (OFILES): Add disassemble.o.
724 (disassemble.o): Provide dependencies; compile with $(ARCHDEFS).
725 * configure.in: Define ARCHDEFS in Makefile. Code taken from
726 binutils/configure.in.
728 * m68k-dis.c (print_insn_m68k): If F_ALIAS flag is set, skip the
729 opcode being examined.
733 * ppc-opc.c (powerpc_operands): Added RAL, RAM and RAS.
734 (insert_ral, insert_ram, insert_ras): New functions.
735 (powerpc_opcodes): Use RAL for load with update, RAM for lmw, and
736 RAS for store with update.
740 * ppc-opc.c (powerpc_opcodes): Correct fcir. From David Edelsohn
745 * mips-opc.c (mips_opcodes): Correct operands of "nor" with an
750 * sparc-opc.c (sparc_opcodes): Fix "rd %fprs,%l0".
754 * ppc-opc.c (powerpc_operands): The signedp field has been
755 removed, so don't initialize it. Set the PPC_OPERAND_SIGNED flag
756 instead. Add new operand SISIGNOPT.
757 (powerpc_opcodes): For lis, liu, addis, and cau use SISIGNOPT.
759 * ppc-dis.c (print_insn_powerpc): Check PPC_OPERAND_SIGNED rather
764 * i386-dis.c (struct private): Renamed to dis_private. `private'
765 is a reserved word for dynix cc.
769 * configure.in: Change error message to refer to bfd/config.bfd
770 rather than bfd/configure.in.
774 * ppc-opc.c: Define POWER2 as short alias flag.
775 (powerpc_opcodes): Add POWER/2 opcodes lfq*, stfq*, fcir[z], and
780 * i960-dis.c (print_insn_i960): Don't read a second word for
781 opcodes 0, 1, 2 and 3.
785 * configure.in: Don't build m68881-ext.o for bfd_m68k_arch.
789 * m68881-ext.c: Removed; no longer used.
790 * Makefile.in: Changed accordingly.
792 * m68k-dis.c (ext_format_68881): Don't declare.
793 (print_insn_m68k): If an instruction uses place 'i', it uses at
794 least four fixed bytes.
795 (print_insn_arg): Don't bump p by 2 for case 'I', place 'i'. For
796 extended float, convert to double using floatformat_to_double, not
797 ieee_extended_to_double, and fetch the data before converting it.
801 * mips-opc.c: It's sqrt.s, not sqrt.w. From
806 * ppc-opc.c (powerpc_opcodes): The POWER uses bdn[l][a] where the
807 PowerPC uses bdnz[l][a].
811 * dis-buf.c, i386-dis.c: Include sysdep.h.
815 * configure.in (bfd_powerpc_arch): Use ppc-dis.o and ppc-opc.o.
817 * ppc-opc.c (powerpc_opcodes): Mark POWER instructions supported
818 by Motorola PowerPC 601 with PPC_OPCODE_601.
819 * ppc-dis.c (print_insn_big_powerpc, print_insn_little_powerpc):
820 Disassemble Motorola PowerPC 601 instructions as well as normal
821 PowerPC instructions.
825 * i960-dis.c (reg, mem): Just use a static array instead of
830 * hppa-dis.c (print_insn_hppa): For '?' and '@' only adjust the
831 condition name index if this is for a negated condition.
833 * hppa-dis.c (print_insn_hppa): No space before 'H' operand.
834 Floating point format for 'H' operand is backwards from normal
835 case (0 == double, 1 == single). For '4', '6', '7', '9', and '8'
836 operands (fmpyadd and fmpysub), handle bizarre register
837 translation correctly for single precision format.
839 * hppa-dis.c (print_insn_hppa): Do not emit a space after 'F'
840 or 'I' operands if the next format specifier is 'M' (fcmp
841 condition completer).
845 * ppc-opc.c (powerpc_operands): New operand type MBE to handle a
846 single number giving a bitmask for the MB and ME fields of an M
847 form instruction. Change NB to accept 32, and turn it into 0;
848 also turn 0 into 32 when disassembling. Seperated SH from NB.
849 (insert_mbe, extract_mbe): New functions.
850 (insert_nb, extract_nb): New functions.
851 (SC_MASK): Mask out SA and LK bits.
852 (powerpc_opcodes): Change "cal" to use RT, D, RA rather than RT,
853 RA, SI. Change "liu" and "cau" to use UI rather than SI. Mark
854 "bctr" and "bctrl" as accepted by POWER. Change "rlwimi",
855 "rlimi", "rlwimi.", "rlimi.", "rlwinm", "rlinm", "rlwinm.",
856 "rlinm.", "rlmi", "rlmi.", "rlwnm", "rlnm", "rlwnm.", "rlnm." to
857 use MBE rather than MB. Add "mfmq" and "mtmq" POWER instructions.
858 (powerpc_macros): Define table of macro definitions.
859 (powerpc_num_macros): Define.
861 * ppc-dis.c (print_insn_powerpc): Don't skip optional operands
862 if PPC_OPERAND_NEXT is set.
866 * i960-dis.c (print_insn_i960): Make buffer bfd_byte instead of
867 char. Retrieve contents using bfd_getl32 instead of shifting.
871 * ppc-opc.c: New file. Opcode table for PowerPC, including
872 opcodes for POWER (RS/6000).
873 * ppc-dis.c: New file. PowerPC and Power (RS/6000) disassembler.
874 * Makefile.in (ALL_MACHINES): Add ppc-dis.o and ppc-opc.o.
875 (CFILES): Add ppc-dis.c.
876 (ppc-dis.o, ppc-opc.o): New targets.
877 * configure.in: Build ppc-dis.o and ppc-opc.o for bfd_rs6000_arch.
881 * hppa-dis.c (print_insn_hppa): Handle 'N' in assembler template.
882 No space before 'u', 'f', or 'N'.
886 * i386-dis.c (print_insn_i386): Add FIXME comment regarding reading
887 farther than we should.
889 * i386-dis.c (dis386): Use Yb and Yv for scasb and scasS.
893 * sparc-dis.c m68k-dis.c alpha-dis.c a29k-dis.c: Fix comments.
897 * i960-dis.c (print_insn_i960): Only read word2 if the instruction
898 needs it, to prevent reading past the end of a section.
902 * mips-opc.h: Use macro for j instruction, to support SVR4 PIC.
903 Removed t,A case for la; always use t,A(b) case.
908 * mips-dis.c (print_insn_arg): Handle 'k'.
909 * mips-opc.c: Make cache use k, not t.
913 * alpha-opc.h, alpha-dis.c (print_insn_alpha): Add
914 FLOAT_MEMORY_FORMAT_CODE, FLOAT_BRANCH_FORMAT_CODE, correct
915 FLOAT_FORMAT_CODE to put out floating point register names.
919 * mips-opc.c: Use macros for jal variants, to support SVR4 PIC.
923 * a29k-dis.c (print_insn): Use 0x%08x, not 0x%8x.
927 * mips-opc.c (dsll, dsra, dsrl): Added '>' cases for shift counts
928 larger than 32. Moved dsxx32 variants first for disassembler.
932 * z8kgen.c, z8k-opc.h: Add full lda information.
936 * hppa-dis.c (print_insn_hppa): Do not emit a space after
937 movb instructions. Any necessary space will be emitted by
938 the code to handle nullification completers.
942 * mips-opc.c: Moved l.d down so that it disassembles as ldc1.
946 * alpha-opc.h: Add ldl_l, fix typo for ldq_u.
947 * alpha-dis.c (print_insn_alpha): Add code for PAL_FORMAT_CODE.
951 * mips-opc.c: Correct lwu opcode value (book had it wrong).
955 * z8k-dis.c (FETCH_DATA): get just the right amount of data.
956 (unpack_instr): Cope with ARG_IMM4M1 type instructions.
960 * m88k-dis.c (m88kdis): comment change. Remove space after
962 (printop): handle new arg types DEC and XREG for m88110.
966 * hppa-dis.c (print_insn_hppa): Handle 'z' operand
967 type for absolute branch addresses. Delete special
968 "ble" and "be" code in 'W' operand code.
972 * mips-opc.c: Set hazard information correctly for branch
977 * alpha-dis.c (print_insn_alpha), alpha-opc.h: Fix bugs, use
978 info->fprintf_func for printing and info->print_address_func for
983 * mips-opc.c: Set INSN_TRAP for tXX instructions.
988 Corrected second case of "b" for disassembler.
992 * mips-dis.c, m88k-dis.c: Don't include libbfd.h. Changed calls
993 to BFD swapping routines to correspond to BFD name changes.
997 * mips-opc.c: Change div machine instruction to be z,s,t rather
998 than s,t. Change div macro to be d,v,t rather than d,s,t.
999 Likewise for divu, ddiv, ddivu. Added z,s,t case for drem, dremu,
1000 rem and remu which generates only the corresponding div
1001 instruction. This is for compatibility with the MIPS assembler,
1002 which only generates the simple machine instruction when an
1003 explicit destination of $0 is used.
1004 * mips-dis.c (print_insn_arg): Handle 'z' (always register zero).
1009 WR_31 hazard for bal, bgezal, bltzal.
1013 * hppa-dis.c (print_insn_hppa): Use print function
1014 from within the disassemble_info, not fprintf_filtered.
1018 * hppa-dis.c (print_insn_hppa): Handle '|' like '>'. (From Jeff
1023 * mips-opc.c ("absu"): Removed.
1028 * mips-opc.c: Added r6000 and r4000 instructions and macros.
1029 Changed hazard information to distinguish between memory load
1030 delays and coprocessor load delays.
1034 * mips-opc.c: li.d uses "T,L", not "S,F". Added li.s.
1038 * configure.in: Don't pass cpu to config.bfd.
1042 * m88k-dis.c (m88kdis): Make class unsigned.
1046 * alpha-dis.c (print_insn_alpha): One branch format case was
1047 missing the instruction name.
1051 * Makefile.in (ALL_MACHINES): Renamed from DIS_LIBS.
1052 Add the arch-specific auxiliary files.
1053 (OFILES): Remove the arch-specific auxiliary files
1054 and use BFD_MACHINES instead of DIS_LIBS.
1055 * configure.in: Set BFD_MACHINES based on --with-targets option.
1059 * mips-opc.c: Added lwc1 E,A(b) to go with lwc1 T,A(b). Similarly
1064 * sparc-opc.c: Change CONST to const to deal with gcc
1065 -Dconst=__const -traditional.
1070 coprocessor instructions out of #if 0, and made them use new
1075 * sparc-dis.c: Include ansidecl.h before opcodes/sparc.h.
1079 * sparc-opc.c: Add F_JSR, F_UNBR, or F_CONDBR flags to each branch
1080 instruction, for use by the disassembler.
1082 * sparc-dis.c (SEX): Add sign extension macro. Replace many
1083 hand-coded sign extensions that depended on 32-bit host ints.
1084 FIXME, we still depend on big-endian host bitfield ordering.
1085 (sparc_print_insn): Set the insn_info_valid field, and the
1086 other fields that describe the instruction being printed.
1090 * sparc-opc.c (call): Accept all 6 addressing modes valid for
1091 `jmp' instead of just one of them.
1095 * hppa-dis.c: Move floating registers from reg_names to fp_reg_names.
1096 (fput_fp_reg_r): Renamed from fput_reg_r.
1097 (fput_fp_reg): New function.
1098 (print_insn_hppa): Use fput_fp_reg{,_r} where appropriate.
1100 * hppa-dis.c (print_insn_hppa, cases 'a', 'd'): Print space afterwards.
1102 * hppa-dis.c (print_insn_hppa, case 'd'): Use GET_COND not GET_FIELD.
1106 * hppa-dis.c (print_insn_hppa): Use extract_5r_store for 'r'.
1108 * hppa-dis.c (print_insn_hppa, case '>'): If next character is 'n',
1109 don't output a space.
1111 * hppa-dis.c (float_format_names): 10 is undefined, and 11 is quad.
1115 * mips-opc.c: New file, containing opcode table from
1116 ../include/opcode/mips.h.
1117 * Makefile.in: Add it.
1121 * m88k-dis.c: New file, moved in from gdb and changed to use the
1122 new dis-asm.h disassembler interface.
1123 * Makefile.in (DIS_LIBS): Added m88k-dis.o.
1124 (m88k-dis.o): New target.
1128 * mips-dis.c (print_insn_arg, _print_insn_mips): Made pointer to
1129 argument string const char * to correspond to opcode/mips.h.
1133 * mips-dis.c: Updated to account for name changes in new version
1135 * Makefile.in: Added header file dependencies.
1139 * h8300-dis.c (bfd_h8_disassemble): Correct fetching of instruction.
1143 * m68k-dis.c (NEXTWORD, NEXTLONG): Use ((x) ^ 0x8000) - 0x8000 to sign
1144 extend, rather than shifts.
1148 * Makefile.in: Undo 15 June change.
1152 * m68k-dis.c (print_insn_arg): Change return value to byte count
1154 * m68k-dis.c: Re-write to detect invalid operands before
1155 printing anything, so we can handle this the same way we
1156 handle invalid opcodes.
1160 * sh-dis.c, sh-opc.h: Understand some more opcodes.
1164 * hppa-dis.c: Include <ansidecl.h> and sysdep.h before other
1169 * sparc-dis.c: Don't declare qsort, since sysdep.h might.
1171 * configure.in: Do make sysdep.h link.
1172 * Makefile.in: Search ../include. Don't search ../bfd.
1177 * hppa-dis.c: Fix typo. 'a' and 'd' were reversed.
1178 Do not print a space before the completers specified by
1183 * mips-dis.c: No longer need to bomb out if HOST_64_BIT is
1184 defined, since gdb has been fixed.
1187 * hppa-dis.c (print_insn_hppa): Last argument to fput_reg,
1188 fput_reg_r, fput_creg, fput_const, and fputs_filtered should
1189 be a *disassemble_info, not a *FILE.
1190 * hppa-dis.c: Support 'd', '!', and 'a'.
1191 * hppa-dis.c: Support 's' to extract a 2 bit space register.
1192 * hppa-dis.c: Delete cases which are no longer needed.
1196 * m68k-dis.c (print_insn_{m68k,arg}): Add MMU codes.
1200 * h8300-dis.c: New file, removed from bfd/cpu-h8300.c, with
1205 * Makefile.in (CSEARCH): Add -I../bfd for sysdep.h and bfd.h.
1206 * configure.in: No longer need to configure to get sysdep.h.
1211 * hppa-dis.c: Support 'I', 'J', and 'K' in output
1212 templates for 1.1 FP computational instructions.
1216 * h8500-dis.c (print_insn_h8500): Address argument is type
1218 * z8k-dis.c (print_insn_z8k, print_insn_z8001, print_insn_z8002):
1221 * h8500-opc.h (addr_class_type): No comma at end of enumerator.
1222 * sh-opc.h (sh_nibble_type, sh_arg_type): Ditto.
1224 * sparc-dis.c (compare_opcodes): Move static declaration to
1229 * sparc-dis.c (print_insn_sparc): Implement 'n' argument for unimp
1230 instruction, remove unimp hack from 'l' argument.
1234 * z8k-dis.c (fetch_data): Use unsigned char to make ancient gcc's
1240 * mips-dis.c (print_insn_arg): Handle 'C' for general coprocessor
1245 * hppa-dis.c: Include dis-asm.h before sysdep.h. Changed some
1246 arrays of string pointers to 2-d arrays of chars, to save
1251 * a29k-dis.c, alpha-dis.c, i960-dis.c, sparc-dis.c, z8k-dis.c:
1252 Cast second arg to read_memory_func to "bfd_byte *", as necessary.
1256 * hppa-dis.c: New file from Utah, adapted to new disassembler
1258 * Makefile.in: Include it.
1262 * sh-dis.c, sh-opc.h: New files.
1266 * alpha-dis.c, alpha-opc.h: New files.
1270 * mips-dis.c: Sign extend 'j' and 'b' arguments, delta is a signed
1275 * sparc-dis.c: Make "ta" the default trap instruction, "t" the alias.
1279 * a29k-dis.c, sparc-dis.c, sparc-opc.c: Use CONST rather than
1284 * sparc-dis.c: Use fprintf_func a few places where I forgot,
1285 and double percent signs a few places.
1287 * a29k-dis.c, i960-dis.c: New, merged from gdb and binutils.
1289 * i386-dis.c, m68k-dis.c, mips-dis.c, sparc-dis.c:
1290 Use info->print_address_func not print_address.
1292 * dis-buf.c (generic_print_address): New function.
1296 * Makefile.in: Add sparc-dis.c.
1297 sparc-dis.c: New file, merges binutils and gdb versions as follows:
1299 Add `add' instruction to the set that get checked
1300 for a preceding `sethi' in order to print an absolute address.
1301 * (print_insn): Disassembly prefers real instructions.
1302 (is_delayed_branch): Speed up.
1303 * sparc-opcode.h: Add ALIAS bit to aliases. Fix up opcode tables.
1304 Still missing some float ops, and needs testing.
1305 * sparc-pinsn.c (print_insn): Eliminate 'set' test, subsumed by
1306 F_ALIAS. Use printf, not fprintf, when not passing a file
1308 (compare_opcodes): Check that identical instructions have
1309 identical opcodes, complain otherwise.
1312 * Include reg_names.
1314 Use dis-asm.h/read_memory_func interface.
1318 * h8500-dis.c, i386-dis.c, m68k-dis.c, z8k-dis.c (fetch_data):
1319 deliberately return non-zero to setjmp from longjmp. Otherwise
1320 this code fails to compile.
1324 * m68k-dis.c: Fix prototype for fetch_arg().
1328 * dis-buf.c: New file, for new read_memory_func interface.
1329 Makefile.in (OFILES): Include it.
1330 m68k-dis.c, i386-dis.c, h8500-dis.c, mips-dis.c, z8k-dis.c:
1331 Use new read_memory_func interface.
1335 * h8500-dis.c (print_insn_h8500): Get sign of fp offsets right.
1336 * h8500-opc.h: Fix couple of opcodes.
1338 Wed Mar 24 02:03:36 1993 david d `zoo' zuhn (zoo at poseidon.cygnus.com)
1340 * Makefile.in: add dvi & installcheck targets
1344 * Makefile.in: Update for h8500-dis.c.
1348 * h8500-dis.c, h8500-opc.h: New files
1352 * mips-dis.c, z8k-dis.c: Converted to use interface defined in
1353 ../include/dis-asm.h.
1354 * m68k-dis.c: New file (merge of ../binutils/m68k-pinsn.c
1355 and ../gdb/m68k-pinsn.c).
1356 * i386-dis.c: New file (merge of ../binutils/i386-pinsn.c
1357 and ../gdb/i386-pinsn.c).
1358 * m68881-ext.c: New file. Moved definition of
1359 ext_format ext_format_68881 from ../gdb/m68k-tdep.c.
1360 * Makefile.in: Adjust for new files.
1362 * m68k-dis.c: Recognize '9' placement code, so (say) pflush
1363 can be dis-assembled.
1367 * mips-dis.c (print_insn_arg): Now returns void.
1371 * mips-dis.c (ansidecl.h): Include for benefit of sysdep.h
1372 files that use the macros.
1376 * mips-dis.c: New file, from gdb/mips-pinsn.c.
1377 * Makefile.in (DIS_LIBS): Added mips-dis.o.
1378 (CFILES): Added mips-dis.c.
1382 * z8k-dis.c (print_insn_z8001, print_insn_z8002): new routines
1383 * z8kgen.c, z8k-opc.h: fix sizes of some shifts.
1387 * Makefile.in: Improve *clean rules.
1388 * configure.in: Allow a default host.
1390 Tue Nov 17 19:53:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1392 * Makefile.in: also use -I$(srcdir)/../bfd, since some sysdep
1393 files include other sysdep files
1397 * z8k-dis.c z8k-opc.h z8kgen.c: checkpoint
1401 * configure.in: For host support, use ../bfd/configure.host
1402 so it stays in sync with the ../bfd/hosts database.
1404 Thu Oct 1 23:38:54 1992 david d `zoo' zuhn (zoo at cirdan.cygnus.com)
1406 * configure.in: use cpu-vendor-os triple instead of nested cases
1410 * z8k-dis.c (unparse_instr): fix bug where opcode returned was
1411 *always* the wrong one.
1415 * z8kgen.c: added copyright info
1419 * z8k-dis.c (unparse_instr): prettier tabs
1420 * z8kgen.c -> z8k-opc.h: bug fixes in tables
1422 Fri Sep 25 12:50:32 1992 Stu Grossman (grossman at cygnus.com)
1424 * configure.in: Add ncr* configuration.
1425 * z8k-dis.c (struct instr_data_s): Make instr_asmsrc char to make
1426 picayune ANSI compilers happy.
1430 * configure.in (i386): Make i386 and i486 synonymous for now.
1431 * configure.in (i[34]86-*-sysv4): Add my_host definition.
1435 * Makefile.in (install): Fix typo.
1439 * Makefile.in (make): Remove obsolete crud.
1440 (sparc-opc.o): Avoid Sun Make VPATH bug.
1444 * Makefile.in: since there are no SUBDIRS, remove rule and
1445 references of subdir_do.
1449 * Makefile.in (install): Get the library name right here too.
1450 Don't install bfd.h, since it's unrelated to this library. No
1451 subdirs to recurse into, either.
1452 (CFILES): The source file has a .c suffix, not .o.
1454 * sparc-opc.c: New file, moved from BFD.
1455 * Makefile.in (OFILES): Build it.
1459 * z8k-dis.c: fixed forward refferences of some declarations.
1463 * Makefile.in: get the name of the library right
1467 * z8k-dis.c: knows how to disassemble z8k stuff
1468 * z8k-opc.h: new file full of z8000 opcodes
1472 version-control: never